LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear charts and arrays?

Hi, I'm using LabVIEW NXG and I'm trying to figure out how to either automatically clear arrays and charts, or have the user be able to control when they are cleared by clicking a button.  (The latter is preferable). 

 

Is this possible in LabVIEW NXG?  I saw a solution for LabVIEW 2017 that involved creating a property node, but it seems that this is not a feature available in NXG.  

 

Follow up question: Are there enough features missing from NXG that it might be wise to switch over to 2017? Any thoughts on this would be greatly appreciated. 

0 Kudos
Message 1 of 5
(2,956 Views)

For the array, you can duplicate a terminal and write to it. (assuming it is a control. If it is an indicator, just wire an empty array).

 

A chart maintains an internal buffer. In classic LabVIEW, you would clear the history using a property node. NXG has a tool in the panel manipulation palette, here's a simple example:

 

ClearChartNXG.png

 


@michelleann wrote:

Follow up question: Are there enough features missing from NXG that it might be wise to switch over to 2017? Any thoughts on this would be greatly appreciated. 


What exactly are you planning to do with it?

0 Kudos
Message 2 of 5
(2,939 Views)

Thanks, I feel like there should be an equivalent way to clear the chart buffer also but ... (EDIT I see you have found a solution - thank you!!!)

 

Here's a brief description of the project I'm working on and the reason I'm wondering if I should have chosen to work with LabVIEW 2017: 

Our company manufactures monitoring devices with several sensors that need to be calibrated.  We communicate with them over a serial connection.  Right now we do the calibration procedure one at a time using a handful of Python scripts, and we'd like to use LabVIEW instead to automate the process (and calibrate more than one at a time).  

I am new to LabVIEW, and began building the program in NXG (not a deliberate choice, just the first LabVIEW application I saw in my start menu).   It would be a considerable pain in the butt to move everything I've done so far over to LabVIEW 2017, but if there are more resources, features and support available - maybe that would be worth it (especially for a newbie like myself)?  

 

Thanks again for your help!

 

0 Kudos
Message 3 of 5
(2,900 Views)

Thanks so much!

 

I just replied but for some reason it got marked as spam and deleted - trying again -

 

Here's a brief description of the project I'm working on and why I'm wondering if I should switch to LabVIEW 2017: 

Our company designs monitoring devices that have several sensors that need to be calibrated over a serial connection. We've been doing this one at a time with a handful of Python scripts but we'd like to automate it with LabVIEW (and calibrate more than one at a time).  I started working with NXG (not a deliberate choice, just the first labview application I saw in my start menu), but now I'm wondering if there might be more resources, features and support available for LabVIEW 2017.  It would be a huge pain to transfer everything over, but since I'm a newbie, maybe it would be worth it?     

0 Kudos
Message 4 of 5
(2,913 Views)

@michelleann wrote:

 

I just replied but for some reason it got marked as spam and deleted - trying again -

 


Yes, the system is not perfect, but it seems the marked post appeared now. 

 

It is difficult to tell what your project involves in detail, but there is a much larger community that can help you with 2017.

0 Kudos
Message 5 of 5
(2,895 Views)