What happens if several consumers - whose architecture SW should I use?

There are several models of VI and documentation on the producers/consumers type aqrchitectures

I have some experience with LV, but limited experience with multi-threading programs and events.

My question is what happens if the consumer also produced data? ... the tutorials do not really extend to it.

In my application, I have 3 USB CAN transmitters and a NOR-DAQ.

I intend to have loops or threads for each multiple hardware device at the lower level.

There will be a loop of the UI (producer) and a "test step sequencer" interpret the activity of the façade and send commands to the hardware devices to take action or perform a measurement.

My main problem is what is the best method/practice of transmission of data to the 'test step sequencer' material once the acquisition is completed?

Do you use the same queue to pass data back (for evaluation of success/failure analysis and test) or any other method.

This might work.

A difference between the Registrant and the queues is that with queues, you can be sure that the loop of consumer gets the message (assuming that there is no problem with the producer generating and sending).  Even if the consumer is busy doing other things, the message waits in "inbox" of the consumer until he is ready to read.

A notifier, there is no guarantee that every piece of code that expects a notification will get all messages.  Think that the declarant is a whiteboard.  A message to put out there for anyone interested to read.  But when a new message to be sent, the sender is declined, clears the Board and writes the new message.  If someone who is interested in messages has been busy and you can't go to the Commission while the first message is there, it will never see the message.

If you want to ensure that each loop gets all their messages, then just a queue for each loop that behaves like an Inbox.  If you need to send the same message to several loops, then queue the data in multiple queues.  If you get a message back, enqueue sending loops reference to queue in the data (self-addressed stamped envelope).  (you can also put a Boolean value in the cluster that could be an indicator as to whether the 2nd loop should send something again or not.)  If you need the first loop to wait for the return data before you go, then he's waiting in the queue.  But you can use the time-out function so that it is not wait forever for something that never comes back and integrate logic into your program so that it can handle this situation (doing nothing, resend the message, open a session, or displays an error message...)

Tags: NI Software

Similar Questions

  • What happened to the arrows bar header that you could use to move forward or backward several previous screens (as is currently seen on Safari)? Can the arrows or the old format be restored? If this is not the case, how can I return to a screen, I used

    Please consider easy on the language of tech. I'm 70 and not too tech savvy!

    Ah, I thought you were just missing "Spend several pages" or "Go back several pages" feature.

    Y at - toolbars off the power (in the "View-> toolbars" menu)? Especially the Navigation bar?

    You can also try going to view-> toolbars-> customize... and see if the arrows are available for drag and drop on a visible toolbar.

  • MS Search forrums and help need a filter added. such as dates. last errors of windows 7 do not show information. What happens is several years old information. He needs filtered by dates. because without old responses that come back will solve the problem

    Windows Update on biostar 7150-um7 win7 winupdate attempted to install an embedded video update but failed. could not see any problem in dev mgr or otherwise. update installs.

    Despite your way off-topic subject, chances are the computer Win7 brand-new doesn't have the embedded video update. Run Windows Update manually and "hide". ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • What happened to the history & the window tab private I used to have and used

    When you updated my browser you deleted the firefox tab in the upper left corner of the screen. This tab had links to history, bookmarks, private window and more. Now the tab disappeared and is no longer, I can access these features. I have used these features and they want to come back.

    Hello mushroomhunter, 29 firefox comes with a new design - the menu is now on the right side of the toolbar on all platforms.

    Learn more about the design of the new Firefox version 29

  • What happens if my default printer is not the printer used for printing from LR?

    Hello

    I use an Epson Stylus Pro 3800 for photographic printing, but is not the default printer on my system (and it won't). How I setup LR do use the default 3800? I tried a "default printer" option in the preferences but could not find it. Or have I missed something? I can't imagine there is no way to solve this problem.

    Thanks in advance.

    --

    Patrick

    Are you aware that you can save the printer model in print templates with page size, printer profile, etc.? Once the printer model is saved in the model, you must only select the model FRO Lightroom to automatically choose the correct printer.

    The steps are:

    1. start Lightroom

    2 go to the print module

    3. create a new print template and give it a name meaningful (for example model of printer - A4 landscape)

    4. click on Page layout (it would be more logical if he actually read the Print Setup)

    5. choose the model of the printer (for example Epson 3800) in list menu dropdown name printer - paper set size and orientation

    6. click on the properties button and configure the driver Epson as required (for example Page Size, the printer settings, etc.), and then click OK twice to close the properties of the printer and the print dialog settings

    7. right click on the model that you created in step 3 above

    8. choose update with current settings from the popup menu

    If you define profiles of specific printer that they can also be saved to the model

  • What is the purpose of VTEncoderXPCService and why should I use so much CPU?

    As you can see in the image as an attachment, it consumes about 300% of the power of my CPU:

    This causes in turn my MacBook Pro CPU to heat and speed up the rotation of the fan.

    What is the purpose of this process? Why is it so CPU intensive even if the Photos app is sitting idle in the background?

    Thank you.

    Why is it so CPU intensive even if the Photos app is sitting idle in the background?

    As you probably know, the conditioned XPCservices which can access the sandbox of a request and securely communicate with him. When you import new media or migrate a photo library, it will create thumbnails and previews of media in the library.  'S done it by background processes began to take photos. These will be run and is same photo is apparently inactive. After the importation of the new media, it is best to keep the pictures running overnight to get background processing as long as you don't need a mac for other tasks.

    VTEncoderXPCService and VTDeoderXPCService convert your videos. If one of them is hogging all processing power, this may mean that you have a lot of videos in your library requiring a conversion or one of your videos is damaged or uses a codec that cannot be treated by pictures. Have you recently to import new videos or migrate a library with videos?

    If a video cannot be treated, remove it from your photo library.  To find the culprit, try to read your videos into pictures.

  • What data access component download Oracle 64-bit should I use?

    Hello

    I have Visual Studio 2013 and I would use the latest data access components Oracle with Entity Framework 6.  There are three 64-bit downloads.  What one do need me?

    • ODP.NET_Managed121020.zip
    • ODAC121021Xcopy_x64.zip
    • ODAC121021_x64.zip

    There is a notice if you want to use DTC Entity Framework features, then the 32-bit Oracle Developer Tools for Visual Studio download is necessary. Okay, I like to use the design-time features, but does that mean I can use the 64-bit versions?

    Thank you

    Peter

    If you use Visual Studio data designers (first model EF or first database, for example) or the Configuration Wizard of TableAdapter, you must install Oracle Developer Tools for Visual Studio, which is 32-bit. This "ODTwithODAC" package includes both the unmanaged driver 32 bit as the ODP.NET ODP.NET, successful pilot.

    So, the first thing you need to decide is if you use ODP.NET, managed driver or ODP.NET, pilot managed. If you choose to use the successful pilot, or the driver for 32-bit unmanaged (at least during development) you can stop here, you have no need of anything else. Note that the successful pilot lacks a few features that the unmanaged driver has. On the other hand, the successful pilot is much easier to deploy.

    If you want to target the ODP.NET 64 - bit unmanaged pilot at design time, you also need to install a 64 bit choice.  At the time of the design, for the sake of simplicity, I would just use the version of installer of Oracle based, not the version of Xcopy. Note that your installation of 32-bit and 64-bit facilities cannot reside in the same Oracle home (directory).

    Versions of Xcopy are there to facilitate the deployment with pilot unmanaged. It allows you to integrate the pilot unmanaged with your application.

    Coming shortly is the version of the successful pilot Nuget. However, this gets you any time tools design and use so it is limited to the work "coding only" or deployment scenarios.

  • LR6 is no where on my MAC, I did a search, he said that it was put in my applications folder, what happened?

    After downloading and installing LR6, I've updated libraries as requested, it then opend LR5 and LR6 is no where on my MAC, I did a search, he said that it was put in my applications folder, what happened?

    Hi Ross,

    It should be there in your Applications folder with the name Adobe Lightroom.

    Search with goodness, Adobe Lightroom app.

  • What happened cold Clone?

    Hello

    I'm using Converter 4.3 build but having no chance hot cloining.

    What happened to the old function Clone cold, I usually use?  I find in Vcenter converter.

    Thank you in advance,

    If you have an agreement with VMware SnS, you can download the stand-alone version of the company which has the coldclone.iso.  You will find in the vCenter for U2 download

    http://downloads.VMware.com/d/details/vc40u2/ZHcqYmRoZXRiZHR3dA==

    VMware vCenter Converter BootCD

    A Zip file that includes the VMware vCenter Converter BootCD (to perform conversions of cold clone of physical machines into virtual machines) and the peTool utility.

  • What should I use: Stand by or hibernation mode?

    What is the general Council concerning power options - should I use (default) stand-by, hibernation or shutdown. This could be for 1 hour or overnight.

    I just used stand-by but sometimes all night I hear the hard disk activity.

    I was wondering the general consensus.

    Thank you

    Hello

    Something this two modes:

    Sleep and modes extended recording the State of the computer when it off s. The next time the unit is turn on, the data will be retrieved and the computer's User Interface will appear exactly how it was when it was turned off.

    The difference between the standby and Hibernation mode is the method of saving the State of the system data:
    -in standby mode, the RAM is used to save the State of the data, and therefore, the RAM is always fed in order to maintain the saved state.
    -in hibernation mode, the State of data is saved on the hard disk, in a special file called Toshiber.dat.

    Standby mode keeps the saved state of the computer for only a few days, that is until the battery is empty.
    Hibernation can persist the State of the data indefinitely, but start and stop times are longer than with the Standby mode and require more energy while saving and recovery of State data.

  • What field / class should I use to create a mobile rectangle?

    Hello

    I want to create a rectangle that people can focus on, and when it's to the point, people can scroll to the left or right to move the rectangle left and right. What field or the object or the class should I use?

    Thank you!

    I noticed that too.  However, since the BB is double buffered, I'm not sure you save anything in fact.  As you move your rectangle, you would have to redraw where it was anyway.

    This treatment is all done in the paint of the screen method so effectively treats the screen as a large Bitmap.

    If you have created a field for yourself, you could add that field to a Manager, then use this Manager to place this field on the screen and then move.  In fact, it would be fairly simple.  But to do this, you must create a manager who knew how to move the field, then move the field whenever you wanted to move.  Then painting everything would be done by another person (i.e. the Manager and the field.)  In my opinion, costs, overhead and complication just to draw a rectangle of mobile, is excessive.  However if you plan to put different data in the Rectangle, such as text and therefore might want to use a real field of BB to help with its interior design.  To help you with this, I suggest you only consider these three KB articles:

    What is - BlackBerry UI hierarchy
    Article number: DB-00111
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...
     
    -How to create a custom handler for a screen presentation
    Article number: DB-00117
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/...

    -Creating custom fields
    Article number: DB-00120
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

  • What happened to the access of the button "back" to several pages past?

    What happened to the access of the button "back" to several pages past?

    The arrow to open the history tab of the previous buttons and following was removed in Firefox 4.

    Use one of the following methods to open the tab history list:

    • Right-click on the back or next button
    • Press and hold the left button of the mouse on the active back or forward button until the list opens

    You can watch this extension:

  • What happened to the button on the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? I use it all the time and it is not on FF4.

    What happened to the button on the left end of the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? You can look at the drop down window of pages and just choose whatever you want. I use it all the time and it is not on FF4. I want to go back to the old FF.

    If you right click on your back button, or click and hold down the mouse button, it will display the list. (I prefer a click-right, because sometimes my fingers slide when I try to click and hold)

  • What happens to my iPad 2 after iOS 10 release?

    We have several iPad 2 to my company. We had to factory reset some of them when they run into problems. My question is: what happens when iOS 10 comes out? When we their factory reset, they reboot with iOS 6. If both Apple iOS signature 10:09 is released and our ipads cannot update to 10 are they just glued to 6?

    If you need to restore the iPads, they will restore with the later, compatible software, in this case 9.3.5.

  • What happened to the consolidated version 24.5 Inbox?

    I have several e-mail accounts. In earlier versions of 24.5 there was an Inbox consolidated, sent, trash, drafts, junk, archives. Below them were real accounts. Now, each account is listed with its own Inbox, etc.

    What happened to the consolidated Inbox, etc. ?

    View (Alt + V) menu > folders > unified

Maybe you are looking for