05-19-2017 06:43 AM
I am collecting data from 6 sources. I am using multiplexer.
I am using one DAQ (output) to control the multiplexer, and a for loop to iterate every 5 seconds.
My problem is that I want to use another DAQ (input) to read these 6 data sets. Is there a way to build 6 waveforms out of 1 DAQ.
05-19-2017 07:08 AM
Why not just have the signals go straight into the DAQ? Then you only have to create a task for the 6 signals and read the data.
05-19-2017 07:46 AM
thanks for your reply.
Do you mean get the signals into 6 DAQs?
If yes...I cannot because it is one source, but the multiplexer takes the output from different parts of the circuit.
05-19-2017 08:06 AM
abdAllaHefny wrote: but the multiplexer takes the output from different parts of the circuit.
Why do you need the MUX? Just wire these outputs from the circuit to 6 different channels in your DAQ.
05-19-2017 08:13 AM
I noticed I was not so accurate.
The MUX will take each reading individually to ONLY ONE circuit for signal processing. Originally, I should have used more (repeated copies) signal processing circuits, but I want to use only one, and that is my point of using the MUX.
05-19-2017 09:01 AM
Initialize an array of waveforms. For each iteration of the For Loop, index out a waveform, add the new element to the end, and index the waveform back in.
See attached VI.
Should that 5 second wait be in the For Loop? Seems like it should be outside of it.
You will need to add some timing or waits between the setting of the multiplexer and the reading of the analog input.
05-19-2017 09:20 AM
Thanks for your help. Can you please clarify for me:
1- I put the 5 seconds in the for loop, because I want the MUX to take each reading for seconds.
2- where should I connect the DAQ input?
3- After doing your procedure, can I get 6 independent graphs (not replacing each other)?
05-22-2017 08:34 AM
Do you see where I put a random number generator and called it "Analog Input" ? .........
Use Index Array and you can break out each of the 6 graphs.
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours