LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

setting waveform chart range

I am using a waveform chart to plot current consumption from a power supply. This data is also included in a table that is exported as an excel file. There are only certain regions of the graph that contain important data after each trial.  Is there a way that I can set vertical bounds after a trial consequently selecting only of certain range of obtained data in my chart?

 

In other words, I basically need to highlight a region of the graph and have the corresponding data points in the table selected so that I only analyze those.

 

Attached is my current project. 

0 Kudos
Message 1 of 15
(4,320 Views)

You can manually change the X scale of the graph to just show the data of interest:

 

graph scaling.PNG

 

.. or you could use two vertical cursors to hightlight your area of interest.

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 15
(4,306 Views)
pardon my ignorance, but how do it do that?
0 Kudos
Message 3 of 15
(4,299 Views)

Right click on the graph and create a property node.  I created two controls to set the min/max, but it might be better to do it programmatically.

 

graph scaling2.PNG

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 4 of 15
(4,287 Views)
Cool. And how do I use the cursors to do that?
0 Kudos
Message 5 of 15
(4,280 Views)
I figured out how to use the cursors but for some reason I can't use graphs with this instrument I/O assistant, only charts.  And cursors only work for graphs.  Also, I added the property node and connected it to the error out but nothing happens differently when I run it. Not sure what to do.
0 Kudos
Message 6 of 15
(4,257 Views)

Charts accept only scalar values.  Graphs accept arrays, waveforms, etc.

 

One more thing:  you also need to set the XScale.ScaleFit = 0 to turn off autoscale. 

 

 

scalefit.PNG 

 

 

Post your updated code to the forum so we can take a look at it.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 7 of 15
(4,219 Views)
Beyond this point, I'm not really sure what to do.
0 Kudos
Message 8 of 15
(4,191 Views)

All you need to do is right-click on the property node and select "change all to write".  Then wire up the correct values.  I don't know what your program is doing, so I don't know the logic to decide what the min/max should be.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 9 of 15
(4,176 Views)
The way it works is, I run the program, and obtain data for the whole test.  Only a certain range of that data is statistically significant.  I need to mark off that range after I have obtained the data from the test.  Obviously, the range is different for every test, but I know how to identify it based on the waveform.
0 Kudos
Message 10 of 15
(4,167 Views)