LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting multiple graphs on one waveform chart with dynamic data types

Solved!
Go to solution

I'm trying to put multiple graphs on one waveform chart and having data agreement errors. I'm wondering if it has anything to do with the fact that dynamic data is being used (I've had no problems with other datatypes in the past). Does anyone know how to correct this problem? I've attached the following .VI. There will be plenty of .VIs on the bottom that won't load, but they are not consequential for this problem.

 

Thanks!

Brian

0 Kudos
Message 1 of 6
(5,871 Views)
you could use stacked plots by right clicking on the chart and clicking on the stacked plots and than on the front panek you can put a bundle function on the FP and hook your signals up
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 6
(5,864 Views)

If each dynamic data wire contains the data for one plot, you just need to cluster the dynamic data.


The way you are currently doing it is incorrect.

You are bundling an array to a single value.

You should be bundling a bunch of arrays together, or in your case, dynamic data.

 

Personally, I don't like using Express VI's because of the dynamic data output.

This causes unneccessary data coercions way too often.

 

Where are the other plots coming from?
I only see one 1D array.

Cory K
0 Kudos
Message 3 of 6
(5,851 Views)

Is there a way to bring in data from a DAQ without using an express vi? I'm having issues with the dynamic data type when trying to use an in-range and coerce function as well.

 

The only other plot I need is the 1-D array. Basically, I want to track the setpoint and see how the system responds to changes in it.

0 Kudos
Message 4 of 6
(5,802 Views)
Solution
Accepted by topic author bcglaxer

I don't know what you are doing now but part of your origianl code is just silly. Your DAQ assistant is taking a single point. You are converting that to an array. If you had converted it to a scalar (which it is) in the first place, your chart update would have been fine.

 

If you want to drop the DAQ Assistant, then select Generate DAQmx code. You'll be a little closer though it seems it generates an NChan 1Samp DAQmx Read instead of a 1Chan 1Samp DAQmx Read.

Message 5 of 6
(5,797 Views)
Gotcha. Converting to a single scalar works. Thanks all!
0 Kudos
Message 6 of 6
(5,785 Views)