LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform data to graph in report

Hello Fellow LabView users:
I have an application which produces waveform files. When it comes time to produce a report of these waveforms I grab the data from the waveform file, then take a reference that was passed from the calling vi that has the waveform graph control to call the report vi append image to report.
My problem is, the graph control's axis are only scaled a certain way for every waveform that I get. Is there a way to get the waveform data from the file and know how that graph was scaled?

Mike
0 Kudos
Message 1 of 4
(2,930 Views)
Not sure I understood your question.
If your problem is that you have plots with different scales, you could fix the scale and disable the autoscale mode in your sub-vi. This can be done either by hand or programatically, using a property node, since you already have a reference to the graph. Of course, the same properties can be read to find the scale values.
Trying to help...

CC

Message Edited by chilly charly on 04-22-2005 07:56 AM

Chilly Charly    (aka CC)
0 Kudos
Message 2 of 4
(2,926 Views)
Hi:
As I re-read my post I understand your confusion, let me try again:

My parent app will produce waveforms and the user has the ability to turn on/off the autoscale feature of the waveform graph control that they see the waveform result. That result is stored in a waveform file.

Later, when the user wants to create a report based on those waveform data files, I run a vi that takes in a reference to the waveform graph control, loops through the selected waveform files, grabs the waveform data ands puts it to the value property of the waveform graph reference then sends that ref to the report vi that appends the jpeg tot he report.

The problem: The scale of each axis is not known each time I put a different waveform data set to the graph. If I set the waveform graph contols property NOT to autoscale then the data may or may not be in range.

I hope that clears it up. Thanks for your help.
Mike
0 Kudos
Message 3 of 4
(2,911 Views)

@HTMike wrote:
Hi:
If I set the waveform graph contols property NOT to autoscale then the data may or may not be in rangehr>


So the solution could be to set the autoscale property to "Autoscale once now" (properties>Yscale>Scale fit>Autoscale once now), immediately after having entered the values in the graph. Same thing for the X scale

CC

Message Edited by chilly charly on 04-22-2005 03:20 PM

Chilly Charly    (aka CC)
0 Kudos
Message 4 of 4
(2,906 Views)