LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I show a Waveform using the Labview Report Generation Toolkit?

I am using LV 6.0.2 & have charts that consist of Waveform array type data - how do I break this down properly to using in Easy Graph.vi for the report generation tool kit which accepts on 2D arrays ?
0 Kudos
Message 1 of 2
(2,477 Views)
It looks to me like you want to use the Get Waveform Components VI in the Waveform Subpalette on the Functions Palette. The Waveform data type is a cluster of three elements, one of which is the data array. Because you have an array of Waveforms you will want to extract the data from each waveform in the array and build a 2D array of data for the Report Generation VI. The easiest way to do this would be auto-indexing into a for loop. The for loop should have the Get Waveform Components VI in it and then each data array (1D array) will be added to a 2D array using auto-indexing on the way out of the for loop as well.

Hopefully my description was able to help out. I am including a bit of code which isn't really useful other than illustrating the code I des
cribed above. It simply takes an array of waveforms, extracts the data and creates a 2D array of data.

As a side note, I find the Context Help Window extremely useful when using new data types. This is especially true when using Graph and Charts

Good luck!
-scraggs99
0 Kudos
Message 2 of 2
(2,477 Views)