loop of two producers for quick DAQmx and the user controls?

Hello

Sorry if my question is maybe a bit too general (I don't have a VI implementation yet).

I think about the solutions for a Structure of producer-consumer with event loop in the part of the producer.

So far, if I had to do a project with DAQ, data analysis, data recording and enter the user controls, I've followed usually this kind of approach:

I used the producer part to capture interactions with the user, and I also had a state machine in the part of the producer, with registry change. I also buy (any faster then 10ms) DAQmx device data in the part of the timeout of the structure of the event in the loop of the producer. I have several consumer loops down, such as data analysis, data recording, etc... I send the data measured in a cluster with the enumerations of the State of the loop from producer to consumer with queue loop.

I'm not happy with my approach for the following reasons:

1,

If I need device acqure faster DAQmx data that the operating system clock can handle (like 1 MHz), so I can't put it in the part of time out of the structure of the event of the producer loop, because here I can go through the while loop with minimum 1 ms.

2,

If I put this part DAQ in a loop for quick consumption, it is not admissible for orders from the QUEUE line after that it starts to run (assuming that I use the standard structure of producer-consumer, so consumer loop every time iterates once, when a package comes from the Dequeue).

Then say, how can I control a young (timed by DAQmx device internal clock) loop of data acquisition of the structure of the producer of the event loop? As loop DAQ to start, stop, restart, etc...

Thank you very much for the advice!

You can certainly have several loops of producer.  Have a User Interface, loop driven events to send commands and a separate data acquisition loop to send data are not a problem.  Each loop has a separate queue. (You might be able to make it work with a single, but using two queues avoids many problems).  Often, I used a system of three loops long before that everyone was talking about calling it a producer/consumer.

Lynn

Tags: NI Software

Similar Questions

  • Sharing of inconsistency between the API and the user interface for catalog

    In the vCloud Director UI, you can go to the properties of a catalog and share TWO everyone in read-only AND specific users/groups to have full control of the value. The API seems to allow to BE ReadOnly value all or specific users/groups to full control. Even when I put the two in the UI, when I do a GET with the API, if IsSharedToEveryone is set to true, the individual user/group access control settings are not displayed. They are mutually exclusive?

    So who is correct? the API or the UI?

    If the user interface is correct, how can I get the same result with the API?

    What I want to achieve, is to allow full control to a specific group of users and read-only for everyone.

    The workaround is to have a group set for total control and another with everyone in the org in a different group of read-only value.

    Hello

    This is a limitation of v1.0 of the vCD REST API. It is already fixed and will be available in the next version.

    In this case, the user interface is correct.

    Kind regards

    Todor Todorov

  • I made a new music video for a song, and the music is not in time with the film, how I put in time?

    I made a new music video for a song, and the music is not in time with the film, how I put in time?
    Oh and I'm using WIndows Movie Maker. One.

    Please repost in Windows Live Solution Center.
    Forum on Windows Live Movie maker:
    http://windowslivehelp.com/forums.aspx?ProductID=5

  • I just bought a new laptop with Windows 8 is installed. When I try to install my printer, I get an error saying that there is no driver. Where can I download a driver for this printer and the OS from?

    I just bought a new laptop with Windows 8 is installed. When I try to install my printer, I get an error saying that there is no driver. Where can I download a driver for this printer and the OS from?

    Also, where can I find a list of compatible printers?

    I just bought a new laptop with Windows 8 is installed. When I try to install my printer, I get an error saying that there is no driver. Where can I download a driver for this printer and the OS from?

    Also, where can I find a list of compatible printers?

    Hello

    You can use the Windows 8 Compatibility Center to find out if a device is compatible.

    Windows Compatibility Center: find updates, drivers, & downloads for Windows 8, Windows RT:
    http://www.Microsoft.com/en-us/Windows/compatibility/WinRT/CompatCenter/home

    FAQ - Windows Compatibility Center:

    http://www.Microsoft.com/en-us/Windows/compatibility/WIN8/CompatCenter/FAQ

    Concerning

  • Hello. Where can I get documentation for HP Capture and the road? As a user/administrator's guide?

    Hello. Where can I get documentation for HP Capture and the road? As a user/administrator's guide? I recently installed a trial version, but he did not come all documentation.

    little late? ;-)

    Seems many is research. Look at

    http://h20000.www2.HP.com/bizsupport/TechSupport/DocumentIndex.jsp?ContentType=SupportManual&lang=en&cc=us&docIndexId=64179&TaskID=135&prodTypeId=457757&prodSeriesId=5260445

  • How can I download videos from my DSLR Sony DHV for later editing and the creation of a DVD?  I just installed Adobe software today and can't find anything about it.

    How can I download videos from my camera Sony HDV for later editing and the creation of a DVD?  I just installed Adobe software today and can't find anything about it.

    I am very familiar with Pinnacle, but I've been disillusioned about their support.

    Ian

    First you connect your device to your computer using your Firewire port, then press F1 and search for capture

    http://helpx.Adobe.com/Premiere-Pro/KB/cant-capture-DV-HDV-video.html

    - and more info on Windows http://forums.adobe.com/message/4708997

    -Legacy driver http://www.studio1productions.com/Articles/Firewire-1.htm

    -All versions of Windows from 7 to 10 need legacy driver!

    This is old, but still a good place to start - CS5-thru-CC body/Encore tutorial list http://forums.adobe.com/thread/1448923 has many links to help learn... including how to still get to create a DVD

  • I only use CC a year. Can I subscribe for a month and the following year again for a month? (So I don't have to spend so much money..)

    I only use CC a year. Can I subscribe for a month and the following year again for a month? (So I don't have to spend so much money..) I'm talking abozt Dreamweaver CC because I need to renew the site once a year. THX.

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    You can subscribe to DW for one month per year if you wish.

    Simple subscription App, monthly Plan

  • How can I 'include' a file different php depending on time? Work on a 'Happening Now' page for an event and the need to plan a different content to load as the day continues. Thank you!

    Work on a 'Happening Now' page for an event and the need to plan a different content to load as the day continues. Thank you!

    The event has class sessions all day (3 days). I would like the page happening now to show what classes are going on right now and what is coming up next. I was hoping just to separate configuration files and load them when necessary, but open to all suggestions.

    PHP has a powerful set of date and time functions.

    To do this is to create a DateTime object and then use conditional logic to include the files you want. A better way would be to keep the details in a database and use the time to retrieve and display the details you want.

    A DateTime object using:

    $now = new DateTime();

    $hour = $now-> format ('G'); This gives you time to the 24 hour clock.

    If ($hour == 13) {}

    It is between 13:00 and 14:00

    } else if ($hour == 14) {}

    It is between 14:00 and 15:00

    } ....

  • I have two computers 1 an IMac and the other a lenovo pc...

    I have two computers 1 an IMac and the other a lenovo pc... installed IMac after effects with no problems, but when I registered the PC I install failure then he said something about my visual C++ is not updated when it is.

    Errors ' Exit Code: 6, "" Exit Code: 7 ".

    Mylenium

  • I'm paying for telephone folios and the 1800 number that is advertised on the shopping cart is not correct - what number I ring in Sydney, Australia

    I'm paying for telephone folios and the 1800 number that is advertised on the shopping cart is not correct - what number I ring in Sydney, Australia

    Do you mean you want to buy downloads additional folio? If so you are a Pro user or company, connect to your DPS dashboard and click on the "Contact Support" link at the bottom left

  • I'm trying to refresh for CS6 bridge and the dialog box always tells me to close the bridge first even if the bridge is not open

    I'm trying to refresh for CS6 bridge and the dialog box always tells me to close the bridge first even if the bridge is not open

    Bridge is probably running in the background.

    Error "Setup cannot continue until...". Adobe Bridge is closed. Installation | CS5

  • Is required for high availability and the DRS Vmware-AAM service? Has it been renamed with ESX3.5 U3?

    Hello Tech community.

    Is required for high availability and the DRS Vmware-AAM service? Has it been renamed with ESX3.5 U3?

    On one of our ESX 3.5 U3 infrastructure, VMware Ha and DRS work very well, and the following list of services are started, view VMware-AAM

    Here is an exit of an ESX 3.5 U3 system

    1. service - status-all | grep running

    crond (pid 1900) is running...

    gpm (pid 1851) is running...

    VMware-pass (pid 1942) is running...

    ntpd (pid 1842) is running...

    cimserver (pid 2452) is running...

    snmpd (pid 1557) is running...

    sshd (pid 4074 4037 1566) is running...

    syslogd (pid 1321) is running...

    klogd (pid 1325) is running...

    At least a virtual machine is still running.

    VMware-aam is running

    VMware VMkernel authorization daemon is running (pid 1911).

    VMware-vpxa is running

    webAccess (pid 1880) is running...

    openwsmand (pid 2534) is running...

    xinetd (1827 pid) is running...

    Now on our production VMware MCC cluster ESX 3.5 Update 2 we do not find "vmware-aam" this service but HA and DRS work very well, and the logs in/var/log/vmware/MAA indicate that everything is fine.

    1. service - status-all | grep running

    crond (pid 2033) is running...

    gpm (pid 1882) is running...

    hpasmd is running...

    cmathreshd is running...

    cmahostd is running...

    cmapeerd is running...

    cmastdeqd is running...

    cmahealthd is running...

    cmaperfd is running...

    cmaeventd is running...

    cmaidad is running...

    cmafcad is running...

    cmaided is running...

    cmascsid is running...

    cmasasd is running...

    cmanicd (pid 2703) is running...

    cmasm2d is running... [OK]

    hpsmhd (1986 1955 pid) is running...

    VMware-pass (pid 3502) is running...

    ntpd (pid 1873) is running...

    USE: Departure from OVCtrl | stop | restart | START | STOP | activate | Disable

    USE: Departure from OVTrcSrv | stop | restart

    cimserver (pid 3536) is running...

    Ramchecker is not running

    snmpd (pid 1745) is running...

    sshd (pid 1861 1447 1754) is running...

    syslogd (pid 1684) is running...

    klogd (pid 1688) is running...

    At least a virtual machine is still running.

    VMware VMkernel authorization daemon is running (pid 3472).

    VMware-vpxa is running

    webAccess (pid 1984) is running...

    openwsmand (pid 3642) is running...

    xinetd (pid 1854) is running...

    I did a few Google queries and couldn't find a definitive answer

    The service of AAM is required for HA - it is not required for DTH

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • I have problems keeping records and files of the administrator and the user separate in my laptop (HP Pavilion dv6700) under Windows Vista Home Premium.

    I have problems separating records and files of the administrator and the user. My computer is a laptop (HP Pavilion dv6700), used as a home computer only by myself, I like to keep the two distinct roles, but am unable to as Vista seems to be considered as one and the same. This scenario has arisen as follows:

    Initially, when I bought the laptop - approx. 18 months back - Windows Vista Home Premium was preinstalled, with the name 'Administrator' as an administrator. To customize the operating system and to use safely, I installed a user 'Renault', as a Standard account user.

    After awhile, I changed the name of the Director of "Renault", for reasons I have can not remember now. This caused Vista to combine folders and files of the two "users" in one, I found difficult to deal with, that I could not operate my laptop as just a Standard user, but is still considered the "administrator." On the one hand, this greatly increased spam in my email accounts. So I tried to reset the name of the administrator as 'Administrator' itself and keep my user name as "Renault", as originally the case.  But Vista me has failed to create a new user under the name "Administrator". So I created a new user under the name "System administrator", with administrative privileges. This has been accepted by Vista.

    But I forgot to change the user account for 'Renault', on the Standard account, so there was BOTH administrator accounts at the same time on my laptop! I realized that now only. The net result was that all the files that I created under the system administrator user were still being displayed under the user account of Renault. A few days back, I realized this and tried to separate the files correctly, but it has not been possible. No matter what I copied the account of the user in the files under the system administrator account, the files have been copied on account of the user himself.

    I tried to fix this by changing the name of the user account in something very different, AND as a Standard user. but this also does not work, as all folders and files under the administrator account system shows it as being under the user account of "Renault" only!

    Then, I deleted the user 'Renault' from the list of the user, but he was not yet of any help. Whenever I tried to create a new file under the system administrator, Vista responds with the message, "C:\user\Rajaram folder is not present. Will I create a new? ", which defeat the same purpose of my tent to isolate the administrator account and the user account.

    SOMEONE HELP ME PLEASE WITH A SOLUTION, - OTHER THAN REFORMATTING MY C:\ DISK AND REINSTALL VISTA AGAIN - TO GET OUT OF THIS MESS, IT SEEMS TO ME YOU HAVE CREATED AND HELP ME TO HAVE AN ADMINISTRATOR ACCOUNT AND OTHER UNIQUE STANDARD USER ACCOUNTS PROPERLY ISOLATED.

    I would be always grateful for a quick and helpful response.
    Thanks in advance.

    -RAJARAM77
     
    Thanks for your reply. It was very helpful / sorry your proposed solution has not solved my problem. Kind regards. -Rajaram77

    Better to delete the user account except the one that was built in the administrator account that you renamed. Before this backup all your data files of these user accounts.
    Then rename the buil into account administrator as 'administrator '. Then you create another administrator account and use it and never the user built in Administrator account and leave it alone.

  • Device and the user does not add security to the family account

    First post.

    Win8 running on a laptop. He was previously a partner in a family safety account, that I had put in place. I removed the unit and the user to try to resolve a problem with a web page. However, the account will now add the user or the device back to when clicking on many user form accounts for managing issues online.

    Family safety account is under my email address. laptop user is my child, who is defined as a child with a separate e-mail account. The security account for the family is still working and control another portable under win7 under a separate connection.

    Help!

    I managed to solve my problem.

    I created a new administrator account on the laptop under different parents email address.

    Logged in under that account, I was able to edit on behalf of a child who then it adds the new parental control under the new e-mail address of the parent.

    Only problem I have now is a child under a security account for the parental family and one under the other, but I can live with that...

    Steve

  • Screen saver turns on (Windows XP SP3) and lock the computer and the user cannot log back with their credentials without administrative rights

    When the screen saver is used and the user returns to open a session.

    they get...

    This workstation is in use and has been locked.
    The workstation can only be unlocked by user123 or an administrator.
    Press CTRL + ALT + DELETE to unlock this workstation.

    user123 cannot log back in. unless he made a system admin an administrator connections or user must reboot the machine to reconnect.

    Hello

    -Is the computer connected to a network domain?

    Please follow the steps mentioned below and get back to us with the results.

    Cannot lock a "locked" computer administrator.

    http://support.Microsoft.com/kb/242917

    Registry warning

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/)

    How to back up and restore the registry in Windows

    For more information, see the link below.

    Information about unlocking a workstation

    http://support.Microsoft.com/kb/281250

    If the computer is connected to a domain, I suggest you to post your questions in the TechNet forums.

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

    I hope that helps!

Maybe you are looking for

  • My laptop does not start IE boot up

    Salvation of the peep Fello Forum Here is my situation this morning I went as normal that you make after yesterday, I used only to watch something on youtube... and I got this: WINDOWS ERROR RECOVERY Windows doesn't have start.a recent hardwareor sof

  • Need help to download and use MovieMaker

    Need help to download and use MovieMaker.  I have XP Home Edition Version 2002 SP 3.  Could not locate moviemaker. Read somewhere that it was in SP2. How can I go about it? Since it puts I have SP3, I have to add SP2 or how do I go about this? THX

  • Como criar outra senha conteudo supervisor?

    Como criar outra senha para conteudo supervisor?

  • Is there a list of additional characters for my keyboard. MS XP.

    I XP MS and I want to be able to type additional characters does not appear is not on my keyboard. EX: Cents sign. Is there a list of additional characters/symbols, that I can access? Is there a list of additional symbols illustrating the keys I have

  • 'Fatal error 65' when you try to update the firmware of the printer

    The printer firmware update fails with 'error 65' displayed on the screen of the printer. I have the HP LaserJet Pro 200 M276nw MFP color, just one month outside the window of the guarantee. Downloaded the latest version of the driver M270_colorMFP_S