LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw a horizontal line on a stripchart

Hi,

I have a stripchar, Y-axis range is 2 ~ 5, X-axis is -60 ~ 20,  I'd like to draw a horizontal line with Y = 3,

what's simplest way to do that? Any example is available?

 

Thanks

0 Kudos
Message 1 of 4
(4,371 Views)

You could add a point with a constant value...

0 Kudos
Message 2 of 4
(4,368 Views)

Could you give me an example? The line could be in anywhere within the range.

 

Thanks

0 Kudos
Message 3 of 4
(4,256 Views)

Something along the lines of:

 

char array[80];
int i;
for(i = 0; i<80; i++){
       array[i] = 23;
}
PlotStripChart (panel, PANEL_STRIPCHART, array, 80, 0, 0, 0);

 

Will produce a line that is 80 points long (-60 to 20)

0 Kudos
Message 4 of 4
(4,231 Views)