LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Concurrent multiple external executables and DAQ in LabVIEW

Dear LabVIEW Users,

I am using LabVIEW 2009 with USB 6008 for DAQ from accelerometers. Besides, DAQ from the accelerometers, I have couple of other external executables which triggers the two different process (data write). By using System Exec.vi, I can trigger these external executables. But the external executables data writing starts at different time, as an example, say exe1 takes 1 second long to start writing data to a text file, where as exe2 takes 20 seconds long to initialize and to start writing data.

Therefore, is there any way even I trigger multiple external exe files, and I can start data write from all of them at the same instance along with DAQ from accelerometers.

Thank you and much appreciated for your help

With Regards,
Paghalaya
0 Kudos
Message 1 of 3
(2,392 Views)

Hello,

You could try to speed up the execution of the 2nd VI through code optimization, but is there any way you can combine the VI's? Starting a simultaneous task would be much easier. Is there any reason for using multiple VI's?

0 Kudos
Message 2 of 3
(2,366 Views)

Hi Eric,

 

Thanks for the reply. Infact, I am using LabVIEW to trigger multiple external executables of depth camera, RGB camera and GPS system which are from different vendors and API too. At the same time, LabVIEW, DAQ-mx will assist me to read and write the data LVDT, accelerometers or other voltage output devices (somtimes even I may send digital/analog input to LVDT). So this was the first option came to my mind when I just started learing the LabVIEW.

 

Secondly, when I did some homework on this kind of problems. I was enlightned by Google searches that concurrent program, threads,  processes and other OS related programming tools can be implemented to overcome this problem. But I am not sure whether this can be easily and successfully implemented (since my background is civil engineering, but I am familiar with C/C++) in a month or so. I also came to know that NI-DAQ C examples are already provided by NI.

 

In a nut shell, I am planning to take the leverage of NI examples.  In other words, planning to make up a master program which incudes all the headers, main program and collectively seperate programs for RGB, depth and other hardwares. Therefore, is it possible to build a program something similar to my plan using OS promming tools efficiently? Are there any cool resources for that?

 

 

Thank you,

With Regards,
Paghalaya
0 Kudos
Message 3 of 3
(2,358 Views)