LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

X initial value strip chart

I need to plot a data streaming that is syncronized by an external clock. So, sometimes, the plot starts in a time, different than 0. Is it possible to set the initiaI value for the X axis? Which function or technich shold I have to use to do it?

Thank you in advance.
0 Kudos
Message 1 of 2
(2,907 Views)
Gustavo,

You should use:

    SetCtrlAttribute (..., ATTR_XAXIS_OFFSET, ...)
;

Also, if you're plotting time data, you can change the display format of the chart accordingly. You do that with the following call:

    SetCtrlAttribute (..., ATTR_XFORMAT, VAL_RELATIVE_TIME_FORMAT);

You would then use SetAxisTimeFormat to configure exactly how the axis should be formatted.

By the way. you also can configure these options in the UI editor, as opposed to programmatically, if you prefer.

Luis
0 Kudos
Message 2 of 2
(2,896 Views)