LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView is very slow, after useing a timer (wait a 500 seconds) for a loop in a SupVI

Hello
 
I want to messure a frequenzy with a Fieldpoint counter. For this I wirte a small Vi. In the Vi there is a while loop with a timer wating for 500 ms every loop. The Vi is working well alone. But when I integrate the Vi in my programm, it become very slow. The reason, I think, is LabView is waiting for the loop in the subVI.
 
Can I manage, that the Main Vi and the Sub Vi are running indepentent for each other.
 
Thanks!
 
ps: Ist is not possibe to messure the freqency with this Fieldpoint counter (FP-CTR-502) direkt. I can only messure the counts per a second for example.
 
0 Kudos
Message 1 of 2
(2,511 Views)
If I understand correctly, you want your main vi to continue and not wait for your subvi to finish.  This does not follow the data flow concept but can be accompished with the use of the application control VIs.  Instead of placing your subvi on your block diagram you will need to open a reference to it with "Open VI Reference.vi".  You can then execute it with the method run and set the bollean input "wait until done" to false.  If you are not fimilar with the application control palet vi check out some of the examples available.
 
 
0 Kudos
Message 2 of 2
(2,494 Views)