LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make waaveform chart cmpatible to access cluster of data

I am new to LV.. and the concept of Clusters..

I have one sample program of two channel oscilloscope..

The waveform control is having pink border...but when I am trying to do same thing..my control is coming with orange border..

What property do I need to change to make my waveform control  compatible to a access cluster of input signals.

 

 

 

0 Kudos
Message 1 of 3
(3,864 Views)
Many of the scope drivers have an example that uses a waveform graph - an indicator and not a control. When the data returned is a an initial x, an x increment, and a waveform array, you bundle them in that order. To display a single waveform, you just wire the output of the bundle to the graph. To display both, you have a bundle for each and wire the outputs to a Build Array. The output of that gets wired to the graph. A graph will accept various datatypes and the color will change when you've wired it. The default color is for the default datatype of a 1D array.
Message 2 of 3
(3,853 Views)

The color of a wire/control/indicator is indicative of the data type.

The pink color you are seeing means that your data is in a cluster.

The orange color you see means your control is either double or single precision float.

 

A cluster of data can be sent to an XY graph, but not a waveform chart/graph.

To use a cluster for an XY graph, you should have a 1D array of X data clustered with a 1D array of Y data.

I'm assuming this is not what your cluster is right now.

 

You probably have a cluster with both channels of data from your oscilloscope.

Use the 'unbundle' function to extract both arrays of data.

 

Then build an array of each of the two 1D arrays. Pass this newly created 2D array to a waveform chart, and you should be all set.

 

 graph.png

Cory K
0 Kudos
Message 3 of 3
(3,827 Views)