08-28-2009 05:52 PM
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
Solved! Go to Solution.
08-28-2009 06:13 PM
08-28-2009 08:05 PM
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.
08-31-2009 04:38 PM
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.
08-31-2009 05:02 PM
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.
08-31-2009 05:39 PM