LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot an XY graph for two analog input channels

Hi,

 

I want to measure temperature and strain, and then plot them in one XY graph. Here are my questions. 

 

1. The sample rate range for the thermocouple is much slower than the one for the strain gauge. Should these two channels be sampled in the same rate? How to do it?

 

2. The attached is my first tried VI. I used DAQ Assist instead of DAQmx. The sample rates for the two DAQ Assists are set to be the same. Is it the correct way to do it?

 

3. The XY plot is updated every several seconds (depending on the delay time I set). How to display the plot for the entire time history?

 

Thanks in advance for the help.

 

Bei

0 Kudos
Message 1 of 8
(4,297 Views)

You have to use a single DAQ Assistant configured to capture both channels. Open one and click on "Add Channels".

0 Kudos
Message 2 of 8
(4,281 Views)

I tried to use one DAQ Assistant and to add the second channel. But there is an error. It is said:

 

One task cannot contain multiple independent devices. Create one task for each independent device.

 

We have two DAQs, one for thermocouple, and the other for strain gauge. How to use one DAQ Assistant to create two independent tasks?

 

Thanks, Bei

0 Kudos
Message 3 of 8
(4,267 Views)

Did not realize you are using two different DAQ devices. That sort of information is hidden when you use the DAQ Assistant. In that case, as long as you use the same sample rate, your XY Graph should work just fine when you don't do a reset with each iteration.

0 Kudos
Message 4 of 8
(4,260 Views)

Here is a more efficient way

 

 

20747i415F1AE13EBF3A35

Tim
GHSP
0 Kudos
Message 5 of 8
(4,251 Views)

The reset input of the Express XY Graph still needs to be set to false in order to display all data as was in the op's original post.

0 Kudos
Message 6 of 8
(4,246 Views)

 


@Dennis Knutson wrote:

The reset input of the Express XY Graph still needs to be set to false in order to display all data as was in the op's original post.


Just trying to show the more correct way of doing it. I would still do it differently but this was quick and dirty for what he was try to do and I was trying to show concept. I expected that the OP would have to add or change things to make it work for himself.

 

Tim
GHSP
0 Kudos
Message 7 of 8
(4,238 Views)

It has already started.  Postings in LV2010 while I still have LV2009.  I would say time to upgrade, but my company may not let me.  We have to standardize on one version to be compatible with others who work here.  LV2010 is too new to standardize on.  I guess I will have to run both to keep up with the new forum posts.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 8 of 8
(4,234 Views)