LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate multi analog waveform simultaneously.

Solved!
Go to solution

I use the Gen Relay Full.vi to generate one waveform.

I want to generate another waveform and start simultanously.

 

Any suggestion?

0 Kudos
Message 1 of 2
(2,422 Views)
Solution
Accepted by topic author alex.

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.

 

 

Best regards,
Vern Yew
Applications Engineer
0 Kudos
Message 2 of 2
(2,398 Views)