LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Strip Chart Delete Buffer

Hi,

 

I'm using the Strip Chart to show data, coming from the serial interface. After a while the data visualization is slowing down. If I close the serial connection, it takes a while until it closes. Which problem can it be?

 

Maybe the strip chart buffer is getting too big? How can I deactivate or delete the buffer?

 

Any suggestions???

 

Cheers

 

0 Kudos
Message 1 of 3
(3,367 Views)

I would be surprised if the strip chart was causing the slow down. How much memory is your application using when it slows down. You could use the Resource Tracker in CVI to see if you have any memory leaks.

 

To clear the strip chart, you can use the ClearStripChart function, but that will erase all of your strip char data. How many data points are you plotting?

National Instruments
0 Kudos
Message 2 of 3
(3,359 Views)

The Strip Chart is not the problem. It works properly now. But closing the serial interface tooks alot time. Memory usage of the application is 30mb...

 

 

This is how I close the serial interface:

 

GetCtrlVal (panelHandle, PANEL_COMPORT, &comport);
RS232Error = CloseCom (comport);

0 Kudos
Message 3 of 3
(3,339 Views)