LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control (or know) the iteration speed of While Loops?

Solved!
Go to solution

Consider using the Timed Loop Structure (on the Structure palette) -- it is designed for producing (not necessarily measuring) timed loops.  It also has code to let you know if you "missed" a clock tick (because you spent too much time inside the loop "doing something important").  It also serves as a mnemonic that "This is Timed Code!".

 

Bob Schor

0 Kudos
Message 11 of 13
(1,786 Views)
The demux is a demultiplexing of four analog signals coming from the analog input of the ni mydaq. I am using the audio input of the mydaq.

I need to demultiplex all of those four audio signals coming from a hardware multiplexer
The scheme is like this:

4 microphones -> multiplexer -> mydaq -> demux in labview

I initially want to mimic the multiplexer in labview by also creating a bit counter there so that i can use the relay vi to alternately open and close the line. With correct timing i can demux those four signals
0 Kudos
Message 12 of 13
(1,782 Views)
Solution
Accepted by FalseHope
Since you only have software timed digital I/O, you cannot precisely time the signals to the mux. I don't see where you even need any precision. The muxing and acquisition would be a simple problem of data flow. Send a digital output, read the analog input, repeat. You'll get an array of measurements of you put the code inside a for loop. You would just use the index array to get individual measurements.
0 Kudos
Message 13 of 13
(1,756 Views)