Are AI single scan and counter control wait incompatible??

System: LabVIEW RT on 8175 controller with 6052E PXI DAQ card. LabVIEW 6.1 on Win 2000 as the development environment.
I have an application requiring GPS synchronized hardware loop timing for the time critical thread. The loop controls a variety of functions including analog output, simple event counting and analog inputs from several channels. Analog output and counter sub-vis work great in this type of loop.
However, implementing AI single scan in a loop using counter control wait disrupts the loop timing counter. The loop completes only one iteration and then generates a timeout error. The attached vi represents a simple implementation that I think should work, but doesn't. Can anyone tell m
e what I'm doing wrong?? I haven't yet located any specific information on this topic in the discussion forum.
Thanks.
Attachments:
CntrCntrl_AI_LoopTest.vi ‏100 KB

Thanks for your comments. Unfortunately, I can't open your attachment since it's version 7 and I only have version 6.1. But I know what you're saying.
I'd really like to know why the test vi I submitted doesn't work. It crashes my system every time with a timeout error on the counter. Remove the AI single scan node and the loop runs fine. And of course, AI single scan works fine in a different loop using something like "wait till next ms multiple" timing. But when I put the two together they crash.
I didn't mention much about the GPS sync, but you're correct that I'm using a disciplined 10 kHz pulse signal from my GPS timecode generator as the source for the loop control counter. I also have a 6608 counter card with a real time clock synched to I
RIG-B providing timestamps for each loop iteration. Besides AI, other tasks which must occur within the loop are setting an analog output and reading/resetting an event counter. Everything except the AI works fine.
I suppose I can use the same pulse train driving the loop timing for the AI scan clock. I'll give that a try and see what happens. It's just that the AI single scan seemed like an easier implementation.
Maybe someone at NI can tell me why the AI and counter wait aren't working?? Do I have a hardware/driver problem or is this a fundamental incompatibility??
Thanks again.

Similar Messages

  • What are the equivalents to AI single scan and AO single update (from v. 6.1) in version 8.2?

    I just recently upgraded my labview program from version 6.1 to version 8.2 and now I'm converting over some of my VIs from the previous version.  I'm looking for equivalent VIs to AI single scan and AO single update.

    The functions are available if you install traditional DAQ as well as DAQmx but since the traditional DAQ driver is no longer getting updates, you'll want to transition to DAQmx. You should check the references that Abhinav T mentions in this post. A DAQmx Read is used for acquisition and a DAQmx Write is used for output.

  • Counter issues with 2D raster scan and count acquisitio​n

    I am building a confocal laser scanning microscope and am currently attempting to develop labview controls for it. I have a fast steering mirror (FSM) which takes analog voltage inputs to control it's x and y angle and I have an avalanche photo diode (APD) which sends a TTL pulse for each photon detection event. For now, I am trying to create a program which will send out two analog signals to create a 2d raster scan with the FSM and count the number of pulses from the APD per pixel. I have been trying to make the program from https://decibel.ni.com/content/docs/DOC-5779 work, but I keep running into counter issues. I am using a generated pulse train from the other counter on my device (NI 6011E) as the period.term input, but I get a "Two consecutive input signals occurred without a counter timebase edge" error if I increase the frequency of the pulse train too high. Unfortunately, the number of pixels I can acquire seems to be limited to twice the frequency of the counter, so I cannot just use a lower frequency train. I believe that the error is occurring because the count rate from the APD is very low and that there are simply no photons hitting the detector in the time period between pulses.This is not a problem, but I would like to know how to simply record a 0 and continue with the scan, rather than have the entire program exit with an error.
    Alternatively, if this does not seem like the correct way to accomplish what I am trying to do, I am open to new directions.

    So simply ignoring the error did not work, because the DAQmx subroutine stops collection when the error is detected. I think I may need to come up with a different approach to synchronize the counting of TTL pulses with an analog output. Attached below is the code I have been working with.
    Attachments:
    Raster_2DOutput_wCounter_82.vi ‏45 KB

  • My iPod automatically synced alot of apps and then i canceled but all the app icons are on my iPod and it says "Waiting"!!

    My iPod automatically synced alot of apps and then i canceled but all the app icons are on my iPod and they
    are all waiting. They aren't taking andy byte!

    Try syncing the iPod to  to computer and then delete the apps. Next would be to restore from backup

  • 2d raster scan photon counting optimizati​on

    I have written a VI for a 2-D raster scan and counting TTL pulses from a photon counter at every pixel.
    It seems to be working fine and is serving its purpose for the time being. However there are a couple of thing I want to improve
    Currently, I have 2 loops, on within the other for each of the axes (x and y) for the scan. Then within the inner loop, I am counting the pulses. Now, the problem I am facing is that I have not figured out how to start the counter from 0 at every iteration. Instead, what I am doing is running the counter twice in a for loop and outputting the difference between these two iterations using shift registers.
    What I would like to do is avoid having to count twice for each iteration. I tried the start task and stop task vi but they seem to be doing nothing. 
    The other thing that would be nice is to avoid having the loops. I have heard that it is "expensive" to use the loops and they cause some overhead time in the program. I don't really think it is bothering me at this point but I think if I have to do faster scanning rates then it might. Currently I am scanning at >100ms per pixel. 
    (And also, just FYI, my raster wavefrom is slightly different in that in is a "triangle"instead of sawtooth. i.e. it goes to the end of the fast axis, then starts the next line from the end rather than the beginning to avoid sudden jerks to my hardware.)
    I have attached my VI. thanks
    Aditi
    Attachments:
    Galvo_Scan_Image 5.vi ‏92 KB

    I cannot help with your counter issues.
    The loops do have some overhead. It is on the order of a few nanoseconds. While loops are probably slightly slower than for loops because of the extra testing. Compared to your DAQ timing the loop time is completely negligible. Look at the test program below.
    Since you know (or can calculate) the number of steps, for loops are probably the better choice. I think the conditional for loop is available in LV 2011.
    You should probably move the AO Create channels VIs and associated Clear Task VIs outside the loops. Connect the task ID wires via shift register so that the value will be passed in the event someone enters start and end values which result in zero iterations of the loops.
    Generally to speed things up you want to move any calculations and any displays (indicators) outside the loops when it can be done without adverse impact on functionality.  For example the divide by two can be moved to the outer loop; the inputs do not change within the inner loop.  If you do not need to see every update immediately, reducing the number of writes to the Intensity graph amy speed things up a bit.
    Avoid right to left wires and wires behind other objects. These have no effect on program performance but they make it much harder to understand what is going on and to fine problems. I have attached a cleaned up version of your program.
    Lynn
    Attachments:
    Loop times.vi ‏12 KB
    Galvo_Scan_Image 5.2.vi ‏74 KB

  • Unable to scan and install windows updates on Win 2008 R2 server

    I've encountered some of my win 2008 servers are unable to scan and receive windows updates from SCCM 2012. Browse through the logs and found some error code related to
    0x80244023. Excerpt from the WindowsUpdate and WUAHandler is as below. Searched the net and found some workaround which is to rename the registry key
    WinHTTPSettings to WinHTTPSettingsx (by adding x at the end of the string)
    under HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> CurrentVersion -> Internet Settings -> Connections.
    I've did just that on the effected servers and after running again the Software Update Scan Cycle action, it is now able to scan and install the updates. My questions is, based on you guys experience, is there any repercussion (apart from enable to install
    software updates) that I could encounter in changing the registry key value WinHTTPSettings?
    WUAHandler
    <![LOG[Scan results will include all superseded updates.]LOG]!><time="04:04:40.982-480" date="09-20-2014" component="WUAHandler" context="" type="1" thread="872" file="cwuahandler.cpp:2913">
    <![LOG[Search Criteria is (DeploymentAction=* AND Type='Software') OR (DeploymentAction=* AND Type='Driver')]LOG]!><time="04:04:40.982-480" date="09-20-2014" component="WUAHandler" context="" type="1"
    thread="872" file="cwuahandler.cpp:2916">
    <![LOG[Async searching of updates using WUAgent started.]LOG]!><time="04:04:40.988-480" date="09-20-2014" component="WUAHandler" context="" type="1" thread="872" file="cwuahandler.cpp:579">
    <![LOG[Async searching completed.]LOG]!><time="04:05:06.262-480" date="09-20-2014" component="WUAHandler" context="" type="1" thread="8112" file="cwuahandler.cpp:2068">
    <![LOG[OnSearchComplete - Failed to end search job. Error = 0x80244023.]LOG]!><time="04:05:06.263-480" date="09-20-2014" component="WUAHandler" context="" type="3"
    thread="872" file="cwuahandler.cpp:3064">
    <![LOG[Scan failed with error = 0x80244023.]LOG]!><time="04:05:06.263-480" date="09-20-2014" component="WUAHandler" context="" type="3" thread="872" file="cwuahandler.cpp:3520">
    WindowsUpdate
    2014-09-20 06:04:03:506  552 634 PT +++++++++++  PT: Synchronizing server updates  +++++++++++
    2014-09-20 06:04:03:506  552 634 PT   + ServiceId = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7}, Server URL =
    http://"SCCM Server":8530/ClientWebService/client.asmx
    2014-09-20 06:04:25:166  552 634 PT WARNING:
    GetConfig failure, error = 0x80244023, soap client error = 10, soap error code = 0, HTTP status code = 504
    2014-09-20 06:04:25:166  552 634 PT WARNING:
    PTError: 0x80244023
    2014-09-20 06:04:25:166  552 634 PT WARNING:
    GetConfig_WithRecovery failed: 0x80244023
    2014-09-20 06:04:25:166  552 634 PT WARNING: RefreshConfig failed: 0x80244023
    2014-09-20 06:04:25:166  552 634 PT WARNING: RefreshPTState failed: 0x80244023
    2014-09-20 06:04:25:166  552 634 PT WARNING: Sync of Updates: 0x80244023
    2014-09-20 06:04:25:166  552 634 PT WARNING: SyncServerUpdatesInternal failed: 0x80244023
    2014-09-20 06:04:25:166  552 634 Agent   * WARNING:
    Failed to synchronize, error = 0x80244023
    2014-09-20 06:04:25:170  552 634 Agent   * WARNING: Exit code = 0x80244023
    2014-09-20 06:04:25:170  552 634 Agent *********
    2014-09-20 06:04:25:170  552 634 Agent **  END  **  Agent: Finding updates [CallerId = CcmExec]
    2014-09-20 06:04:25:170  552 634 Agent *************
    2014-09-20 06:04:25:170  552 634 Agent WARNING:
    WU client failed Searching for update with error 0x80244023
    2014-09-20 06:04:25:171 5752 de4 COMAPI >>--  RESUMED  -- COMAPI: Search [ClientId = CcmExec]
    2014-09-20 06:04:25:172 5752 de4 COMAPI   - Updates found = 0
    2014-09-20 06:04:25:172 5752 de4 COMAPI   - WARNING: Exit code = 0x00000000, Result code = 0x80244023
    2014-09-20 06:04:25:172 5752 de4 COMAPI ---------
    2014-09-20 06:04:25:172 5752 de4 COMAPI --  END  --  COMAPI: Search [ClientId = CcmExec]
    2014-09-20 06:04:25:172 5752 de4 COMAPI -------------
    2014-09-20 06:04:25:172 5752 de4 COMAPI WARNING: Operation failed due to earlier error, hr=80244023
    2014-09-20 06:04:25:172 5752 de4 COMAPI FATAL:
    Unable to complete asynchronous search. (hr=80244023)
    2014-09-20 06:04:30:171  552 634 Report REPORT EVENT: {37DD5321-4FD5-4024-9C84-1FB9C04D4A5A} 2014-09-20 06:04:25:169+0800 1 148 101 {00000000-0000-0000-0000-000000000000} 0 80244023 CcmExec Failure Software
    Synchronization Windows Update Client failed to detect with error 0x80244023.

    Hi
    If SCCM is setup correctly and your boundaries are correct then once you deploy updates the agents will pick them up.
    Also make sure you SUP role has the FQDN set. Lastly if you are using port 8530 make sure it is open.
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Air vs Air 2 Lens and Volume Controls Placement

    Are the camera lens and volume control positions slightly different between the original iPad Air and the iPad Air 2? The reason I'm asking is that I just purchased the Air 2 with Smart Case and the holes in the case for the camera lens and volume controls don't line up with the lens and volume controls on the Air 2. The lens us partially covered by the case and the area for the volume controls are off some as well. I'm wondering if I was accidentally sold a case for the original iPad Air?

    Also asked by you and answered here:
    iPad Air 2 Smart Cover

  • Find and count all in house users?

    Hello
    what would be the best way to retrieve a list of users  that are  OUT of OFFICE
    and count how many that are in house. this is for our reception desk. 
    so some kind of rapport?
    we use Exchange 2010 and outlook 2010 and SharePoint 2010
    "Carpe Diem" does not mean "fish of the day."

    okay this works
    $a.ToShortDateString()
    $VarDateStr = (Get-Date).ToString()
    C:\scripts>Get-Mailbox | Get-MailboxAutoReplyConfiguration | Where-Object { $_.AutoReplyState -eq "scheduled"-and $_.StartTime -le $VarDateStr }|fl Identity
    But the fact is, that users can be OUT of Office and stille be "online"
    so a "who is in house" repport cant be uses this way any ideas?
    "Carpe Diem" does not mean "fish of the day."

  • I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me?

    I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me? The final result would be a spreadsheet telling there were 8 people from 20 to 39 years old, 14 peolple from 40 to 59 and so on...

    jpqcampos wrote:
    This appears to be an 'input form' using 'Radio Buttons' to select the category. Neither of these features are supported in Numbers '09.
    You can input the data on one table and summarize it on a second table, but the input table will continue to hold data for each event.
    And by using the Reorganize button, you can hide all but two rows of that table to approximate the appearance and performance of an input form.
    Here are the two tables, Data on the left and Summary on the right. Notes below.
    The grey-filled columns in both tables are 'working' columns, and may be hidden (as shown in the image below).
    Data table:
    D1 contains the word "TRUE" (in capital letters). (This row is always shown.)
    D2 is empty, or may contain any value except "TRUE" (This row is always hidden under the Reorganize rule.)The rest of Row 2 of this table requires the data shown: a number outside the range to be counted (999), and two checkboxes, both checked.
    D3 (and filled down the rest of column D):   =AND(OR(B2,C2),NOT(OR(B3,C3)))
    The formula returns TRUE only for the first unused row in the table (ie. the first row for which neither checkbox has been checked)
    Summary table:
    Column A contains labels for the age ranges to be counted.
    Column B contains the same information in the form necessary for the formulas in columns C and D. They need a numeric value, and that value must be the largest acceptable value in the range to be counted.
    C2 (and filled right to column D, then both filled down to row 5):
        =COUNTIFS(Data :: $A,"<="&$B,Data :: B,TRUE)-SUM(C$1:C1)
    Two changes from the previous example:
    COUNTIFS is used to separate the Native and Foreign counts as well as the age range to be counted.
    The amount subtracted from each result is the SUM of the earlier results, and includes the text value in the first cell of the column (which is interpreted by SUM as a zero).
    See note below regarding my earlier formula.
    When the greyed columns are hidden and the checkbox in the Reorganize pane is checked, the two tables will appear as shown below:
    Close the reorganize pane, and the 'data entry form' is ready to use.
    To use, enter the age first, then check one of the boxes.
    As soon as one box is checked, the row will be hidden, and the next (unused) row will be shown.
    Regards,
    Barry
    Note regarding formula in my earlier post:
    The earlier formula will give erroneous results as it subtracts only the count directly above it from its count of persons in the age range 0-n.
    In E2 of that table, replace "-E1" with "-SUM(E1:E$1)
    Fill down to E8.
    Ignore the instructions (in that post) following "Fill down to E8."
    B

  • Changing controlling area from single company code to cross company code

    Hi,
    Due to my client requirement, in the middle of the year, we need to change the controlling area from being same as company code to cross company code controlling area. Although the currency is same. We are going to create a new company code. Is the changing controlling area settings possible to do? what are the precautions and changes need to be taken?
    One more question, we need to change the company code when the new company code is created in the system in Cost Center Masters in the middle of the year. Is this possible after changing controlling area from single company code to cross company code. Right now company code is not appearing in the cost center master.
    Thanks & Regards,
    Saidarao

    Hi,
          If both companies having transaction data its not possible,Normally before defining Organisational Strucutre only we have to deside both companies is assigning same controlling are or have to maitain separately for this we have to compare the Fiscal year,Operating chart of accounts ,if both having same then we will assign both the company codes to one controlling area if these two companies having different currencies also its not a problem.When we creating Controlling Area we have to choose option of controlling area as same company code (if one company code one controlling Area) for example if you assigning two companies then we have to use cross company code cost accounting.If u need any further information let me know.
    Regards,
    Satya

  • Functional area and Credit Control area

    HI
    Dear Guru's
    Kindly explain me the ,the differenec between Functional area and credit control
    area, with examples.
    with regards
    Arun Kumar

    Hi Arun Kumar,
    Functional Area :
    It organize your business for cost of sales accounting.  It allow you to segregate and classify different types of costs within one expense account.  For e.g. a single labour account to determine what amount of labour is spent directly on production as compare to sales or hr.
    OKBD - Maintain Functional Area
    Credit control area:
    An organisational unit that represents an area responsible for granting and monitoring credit.
    outstanding recievables can spoil the business process. to
    control credit limits in sap system we can configure credit
    control area.
    one company code can hav one credit control area only
    but one credit control area can hav many company codes
    i.e. u can assign one credit control area to many company
    codes.
    the relationship is one to many.
    Regards,
    Haribabu

  • Assignment of multiple credit control areas to single company code

    Hi Friends,
    Is it possible to assign multiple credit control areas to single company code?  If possible please explain
    me how it is possible. Any help will be highly appreciated.
    Thanks a lot in advance.

    Dear Ramesh,
    It is not possible to assign multiple credit control areas to the single company code but you can assign single credit control area to the multiple company codes.
    Relation bet ween company code and credit control area is
    Many  to One
    But not
    One  to Many
    I hope this will help you,
    Regards,
    Murali.

  • Difference Between Controllin area and Credit Control area

    hi.
    can u pls tell  me the difference  Controllin area and Credit Control area....?
    is there any FM is available for CreditControlAreaGetList........?
    regards
    Guru

    Hi Bojja,
    Controlling Area:
    Controlling provides you with information for management decision-making. It facilitates coordination, monitoring and optimization of all processes in an organization. This involves recording both the consumption of production factors and the services provided by an organization.
    As well as documenting actual events, the main task of controlling is planning. You can determine variances by comparing actual data with plan data. These variance calculations enable you to control business flows.
    Income statements such as, contribution margin accounting, are used to control the cost efficiency of individual areas of an organization, as well as the entire organization.
    CCA(Credit Control Area)
    An organizational unit that represents the area where customer credit is awarded and monitored.
    This organizational unit can either be a single or several company codes, if credit control is performed across several company codes. One credit control area contains credit control information for each customer.
    Thanks,
    Rewrd If Helpful.

  • There are two transactions ZJPVCS303 and ZJPVCS303_US for one single Report

    When run as a batch program, (currently this is the case), or withT-Code ZJPVCS303 the selection screen is unchanged (except for additional sales area above)
    - When run as T-Code ZJPVCS303_UL (UL stands for Upload) the selection screen is changed.  The unix file option is no longer available, and the user is able to upload a local file (in the same format as the current unix file, but tab delimited) to the program for processing.
    Requirements:
    There are two transactions ZJPVCS303 and ZJPVCS303_US for one single Report.
    ->When ZJPVCS303 Transaction is executed, the file is uploaded from the Application
      server to SAP R/3. The selection screen parameters would be:
      Logical Filename:
      Sales Organization:
      Distribution Channel:
      Division:
    ->When ZJPVCS303_US Transaction is executed, the file is uploaded from the Presentation Server
      to SAP R/3. When this transaction is executed, it should not have the 'Logical
      Filename' parameter anymore on the selection-screen. Instead it should only have
      Local File name on the presentation server:
      Sales Organization:
      Distribution Channel:
      Division:
        The same thing is applicable for the other transaction ZJPVCS303. When transaction ZJPVCS303
    is executed, it should not have the 'Local Filename' parameter anymore on the selection-screen. Instead it should only have
    Logical Filename:
    Sales Organization:
    Distribution Channel:
    Division:
    So how should I make these parameters invisible depending on the transaction codes execution.
    I have an idea of using MODIF ID, LOOPING AT SCREEN...MODIFY SCREEN.
    I have an idea of using SY-TCODE.
    EX:
    AT SELECTION-SCREEN OUTPUT.
    IF SY-TCODE = 'ZJPVCS303'.
    LOOP AT SCREEN.
    IF SCREEN-GROUPID = 'GRP'.
       SCREEN-INPUT   = 0.
       SCREEN-INVISIBLE = 1.
       MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ELSEIF SY-TCODE = 'ZJPVCS303_US'.
    LOOP AT SCREEN.
    IF .....
    ENDLOOP.
    ENDIF.
    ENDIF.
    But I am not able to get the output which I require. Please help me out.

    Hello Rani
    Basically the transaction determines whether upload starts from application server (AS) or presentation server (PC). Thus, you will have the following parameter:
    PARAMETERS:
      p_as_fil          TYPE filename   MODIF ID unx,  " e.g. Unix server
      p_pc_fil          TYPE filename   MODIF ID wnd.  " e.g. Windows PC
    AT SELECTION-SCREEN OUTPUT.
      CASE syst-tcode.
    *   transaction(s) for upload from server (AS)
        WHEN 'ZJPVCS303.
          LOOP AT screen.
            IF ( screen-group1 = 'UNX' ).
              screen-input = 0.
              screen-invisible = 1.
              MODIFY screen.
            ENDIF.
          ENDLOOP.
    *   transaction(s) for upload from local PC (PC)
        WHEN 'ZJPVCS303_US.
          LOOP AT screen.
            IF ( screen-group1 = 'WND' ).
              screen-input = 0.
              screen-invisible = 1.
              MODIFY screen.
            ENDIF.
          ENDLOOP.
       WHEN others.
       ENDCASE.
    Regards
      Uwe

  • What is a quick alternative to launching an enterprise DPS app if Apple Store rejects the App? We are under a major deadline and can't wait for Apple. We want to host the app elsewhere. How do we host our DPS app on our client's website?

    What is a quick alternative to launching an enterprise DPS app if Apple Store rejects the App? We are under a major deadline and can't wait for Apple to approve. We want to host the app elsewhere. How do we host our DPS app on our client's website? Thanks.

    Unless I misunderstand the question, you can't do what you're asking to do. Apple doesn't allow you to bypass their store and host public apps on a website. The exception is an enterprise app, which requires an Enterprise account with both Apple and Adobe. This type of enterprise app can be distributed only within the company. If that's what you want to do, you can learn more here:
    Digital Publishing Suite Help | Creating viewer apps for private distribution
    Distributing enterprise iOS viewer applications with Digital Publishing Suite | Adobe Developer Connection
    Another option is to add the development app to several devices and use those for your demo.

Maybe you are looking for