02-26-2009 02:12 AM
I use the Gen Relay Full.vi to generate one waveform.
I want to generate another waveform and start simultanously.
Any suggestion?
Solved! Go to Solution.
02-26-2009 08:23 PM
Hi turbot,
The simplest way to make two tasks run simultaneously is to have two copies of that task in your block diagram. In LabVIEW, any subVI or function that has all its inputs ready will run "simultaneously", so no real extra steps need to be taken to make them simultaneous. However, you must make sure that all inputs to all your VIs that are to run simultaneously are ready at the same time (meaning one set of functions that generate the waveform must not need any input from the other). This is what is called the dataflow paradigm in LabVIEW. Read this for more info:http://zone.ni.com/devzone/cda/tut/p/id/6098#toc0
I'd suggest using a different subVI for opening and reading from your file (as well as use a different file for each Read Relay Txt subVI). Alternatively, make your subVI re-entrant. For more information on re-entrant VIs, refer to this link: http://digital.ni.com/public.nsf/allkb/98847B4E4C715E6D86256C59006B57CC
I'd also suggest that you pass the path to the file from your main VI using a control in your subVI, as opposed to using the constant like you have now.