LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring frequency, software multiplexing

This is an actual example I got from NI. I reduced the number of freq. lines from 9 to 2. I have no idea why this code is so slow, could it possibly be just an aspect of measuring a frequency. The frequency that we are measuring is no higher than 50 khz.
0 Kudos
Message 1 of 6
(3,207 Views)
You've attached the main VI but not the subVI that does the actual frequency measurement. To attach everything, what you need to do is go to save with options and choose Development Distribution. This will create a .llb file with the main VI and all subVIs.
0 Kudos
Message 2 of 6
(3,207 Views)
Sorry about that here is the new library. Also the frequency being measured has also changed, it is 20HZ to 3500Hz.
0 Kudos
Message 3 of 6
(3,207 Views)
Christian;

You need to attach the SubVI as well. I can see the problem by looking at the main VI only.
Regards
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,207 Views)
Sorry about that it seems I'm learning every day. The library is attached. If I was measuring only one frequency (3 khz) would I use the same subvi?
0 Kudos
Message 5 of 6
(3,207 Views)
Hello;

Thanks for the SubVI.
Since the VI is Software timed (there is a wait.vi inside the loop), the operation becomes system dependent; meaning that the VI will execute depending on how fast the OS can handle the task.

To have a completely system independent VI, you need to come up with a VI that doesn't rely on any Software time operations.

Regards
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,207 Views)