Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I plot dynamic data that I obtain from a DAQ device against each other?

Solved!
Go to solution

Hello everyone,

 

I'm trying to acquire voltage and current data from DAQ devices. My goal is plot current against votlagein a continous plot. As the votlage is increased in 1 Volt intervals every second I want to see how the current is changing. However, these are dynamic data and I need help figuring out how to plot them in a single graph. Any thoughts as to how to plot two different dynamic data against each other in the same graph?

You're help will be very much appreciated.

Thanks

0 Kudos
Message 1 of 6
(7,909 Views)

You probably want to use the XY graph.  The XY graph takes an array of clusters.  Each cluster contains two arrays of values.

 

There are a couple different ways to get there from the dynamic data type:  Use the Build XY Graph Express VI, or you can convert the dynamic data and bundle everything up yourself (both methods shown in image below).

 

Hope this helps!

 

19395iE8B91EC4ABE2FC8D

0 Kudos
Message 2 of 6
(7,907 Views)

Thank you Alan, that was very useful. However, since I am using dynamic data from a DAQ device, the plot is not continuous. When I have the data acquisition set to on demand I don't see anything on the XY graph. When the setting is set to N samples where I have a given number of samples at a given rate I get small segments of the data. Is there a way to get the data as the voltage is increasing. In other words, when I run the VI, is there a way to how the data is changing in realtime?

0 Kudos
Message 3 of 6
(7,902 Views)
Solution
Accepted by topic author fermi5

If I understand what you are saying, it sounds like you want to have the XY graph update with each new data point (or points) acquired, but also want to retain the previous data on the XY graph.  If this is what you are after, I'll build on my previous example.  For the method of using the Build XY Graph express VI, you can simply double click on it and uncheck "Clear data on each call".  For the other method of building the array of clusters, you will need to add a couple shift registers to maintain the array values from previous itterations.  Here's the updated image:

 

19417i71A3044D18B34D5B

Message 4 of 6
(7,898 Views)

Thank you again. That is exactly what I needed to know. I'm sorry that my question was not as clear as I had intended for it to be.

0 Kudos
Message 5 of 6
(7,887 Views)

No problem.  Best of luck with your project.

 

-alan

0 Kudos
Message 6 of 6
(7,876 Views)