LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Construct 6 waveform graphs from 1 DAQ

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.

 

0 Kudos
Message 1 of 8
(3,602 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 8
(3,576 Views)

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. 

0 Kudos
Message 3 of 8
(3,567 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 8
(3,560 Views)

 

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.

0 Kudos
Message 5 of 8
(3,556 Views)

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.

0 Kudos
Message 6 of 8
(3,540 Views)

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)?

0 Kudos
Message 7 of 8
(3,537 Views)

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

 

 

0 Kudos
Message 8 of 8
(3,512 Views)