LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting zero level

Hello !

I have a continous data acquisition going on (chart) and I want to
determine a new zero level by using the horizontal cursor . So I have to
reduce the cursor value from all the data values. Any hints or examples
how to implement that ?
0 Kudos
Message 1 of 3
(2,817 Views)
Jack;

To obtain the value of the horizontal value of the cursor, create a property node of the graph and select Cursor.PosY. Once with that value, you can manipulate the data as you want.

Attached is an example that create a waveform and then reposition it depending on the position of the cursor. Press the Offset button to recalculate. I hope the example is of help.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 3
(2,817 Views)
Jack Donalds wrote:
> Hello !
>
> I have a continous data acquisition going on (chart) and I want to
> determine a new zero level by using the horizontal cursor . So I have to
> reduce the cursor value from all the data values. Any hints or examples
> how to implement that ?
>
>

Hi,
can you be a bit more specific about what you want to happen between the
data and the chart. Is the chart to be re-written completely as you move
the cursor or you want to take the data out of the chart subtract the
offset and put the data somewhere else. Is this "thing" to happen
continiously during the test or statically at some other time?
Also are you dealing with a waveform data type or a scalar data type in
the chart. With a bit more clarity of the problem we might be better
placed.
Whatever your requirement I would guess it is likely to involve some
property nodes to read the cursor position and the history data from the
chart and subtracting one from the other or maybe just set the
cursor value as an Y scale offset. Please supply some more info.
0 Kudos
Message 3 of 3
(2,817 Views)