LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

execution timing LV4

Hi I am having problems with execution timing of my main vi.
 
Details:
Win2000
Labview 4.01
 
The problem lies in the execution of a for loop and the use of a AI multipoint vi for obtaining 2 waveforms. The analog input and the first structure within the for loop are contained within sub vi's.
 
When run, the for loop must wait to be executed AFTER the analog input has fully completed. This defeats the entire purpose of what I am trying to do.
 
The for loop is used to communicate with a serial device using NI-VISA, and all the inputs for the loop are ready prior to the execution of the data aquisition.
 
any ideas how I can get analog input and the for loop and the data acquisition vi to start simultaneously????
 
Stuart
 
 
 
 
0 Kudos
Message 1 of 4
(2,812 Views)
Stuart,

Parallel execution of code in LV has been available from the earliest versions. It sounds as though you have some data dependency between the nodes or you do not have a Wait function in each loop. Post your code and someone will probably be able to help.

Lynn
0 Kudos
Message 2 of 4
(2,799 Views)

I am certain there is no data dependency between the two strucutres. I tried a wait function but it didn't seem to have any effect. I also tried a while loop in place of the for loop. Still no change.

The main vi which call the sub vi's and the sub vi's themselves are attached. They are programmed in LV4.01

 

Download All
0 Kudos
Message 3 of 4
(2,790 Views)

other necessary sub vi's to run LV4 version: manyservostring.vi

working version of the code programmed in LV7.1 student edition: sinusoidalampvelocityMainVI.vi

 

Download All
0 Kudos
Message 4 of 4
(2,787 Views)