LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform chart missing some point data when using subVI

Solved!
Go to solution

I am facing timing issue (delay) / (some data point are missed), while scaling my values in volts to respective ranges (bar). 

 

In project file, test.vi has delay issue and test no delay.vi  has no delay issue. 

 

How can I avoid this delay problem.

 

The objective of the code is to scale voltage value received through DAQ channel with respect to the configuration table.

0 Kudos
Message 1 of 2
(1,308 Views)
Solution
Accepted by topic author msabah38

There are many improvements that can be done to your code. The first thing I would try is to remove the "Strings[]" property node linked to "Input Channel Names 2" outside of the For loop in Range value extract.vi. It's a bad idea to use implicit property nodes inside subVIs with front panel not shown. They are slow and cause the front panel to be in memory.

You can also remove the Wait function inside your consumer loop - rate of the loop will be controlled by the Dequeue function so by the producer loop. No waiting is needed here.

PN outside loop.png

Lucian
CLA
0 Kudos
Message 2 of 2
(1,272 Views)