LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph - X Axis Time value

Hi folks! I am in trouble ploting some graphs.

I plot a graph and it is configured to have 500 points per screen.

I set some graph option using these commands:
    SetCtrlAttribute(panel, control, ATTR_XAXIS_OFFSET, startTime);
    SetCtrlAttribute(panel, control, ATTR_XFORMAT, VAL_RELATIVE_TIME_FORMAT);

To plot I use this command:
    PlotStripChart (panelID, controlID, pValue, NofTraces, 0, 0, VAL_DOUBLE);

The configuration of the strip chart is:
Scrool mode: Sweep

The problem is that CVI assumes by itself that the frequency that is receive the data is 1Hz. I would like to know if does CVI Strip Chart work with relative time.

For example, it has its internal clock. If my chart receives 10 samples in the first second all of this samples will be plotted in the time slice between 0s to 1s. If I receive 5 samples during the another second, all these data must plotted during the period that is was reveived.

Could anyone help me?

Thank you in advance.
0 Kudos
Message 1 of 2
(2,947 Views)
Duplicate post
Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(2,935 Views)