LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting Data after Bad Point

Hello,

In the program/photo below I am trying to filter the data to be "in band" as shown at the inlet temperature reading it must be between 75 and 85 degrees, if the data goes "out of band" I want to delete all the data points before and restart taking measurements after the "out of band" or "bad" data point. The indicator is there to show on the front panel when it goes out of band, but I need it to erase all the information before the bad data point from both the table and the graph. I want it to keep recording the data after the bad point and then again delete if it goes out of band and restart the acquisition Is this possible? 

Thanks

Download All
0 Kudos
Message 1 of 6
(1,538 Views)

Hi Sam,

 


@sambpk wrote:

I want it to keep recording the data after the bad point and then again delete if it goes out of band and restart the acquisition Is this possible?


Yes, sure! You just need to program it…

 

Suggestion:

Learn about the PtByPt-BooleanCrossing function: you want to detect a boolean to change from TRUE ("in band") to FALSE ("out of band").

In case you detect that boolean crossing you can delete the data in the shift register using a case structure (or Select function).

 

I don't see any "graph" in your image (and can't open the VI due to it's LabVIEW version).

  • Graphs usually only show the data you wire to it, so you only need to clear the data wired to the graph.
  • I guess you are using a chart: clear its history using a property node of the chart…

 

Btw. there is a "In range and coerce" function: no need for two comparison functions followed by AND…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(1,534 Views)

@GerdW wrote:

Hi Sam,

 


@sambpk wrote:

I want it to keep recording the data after the bad point and then again delete if it goes out of band and restart the acquisition Is this possible?


Yes, sure! You just need to program it…

 

Suggestion:

Learn about the PtByPt-BooleanCrossing function: you want to detect a boolean to change from TRUE ("in band") to FALSE ("out of band").

In case you detect that boolean crossing you can delete the data in the shift register using a case structure (or Select function).

 

I don't see any "graph" in your image (and can't open the VI due to it's LabVIEW version).

  • Graphs usually only show the data you wire to it, so you only need to clear the data wired to the graph.
  • I guess you are using a chart: clear its history using a property node of the chart…

 

Btw. there is a "In range and coerce" function: no need for two comparison functions followed by AND…


Wow awesome. Thanks for your help!

0 Kudos
Message 3 of 6
(1,518 Views)

@GerdW wrote:

Hi Sam,

 


@sambpk wrote:

I want it to keep recording the data after the bad point and then again delete if it goes out of band and restart the acquisition Is this possible?


Yes, sure! You just need to program it…

 

Suggestion:

Learn about the PtByPt-BooleanCrossing function: you want to detect a boolean to change from TRUE ("in band") to FALSE ("out of band").

In case you detect that boolean crossing you can delete the data in the shift register using a case structure (or Select function).

 

I don't see any "graph" in your image (and can't open the VI due to it's LabVIEW version).

  • Graphs usually only show the data you wire to it, so you only need to clear the data wired to the graph.
  • I guess you are using a chart: clear its history using a property node of the chart…

 

Btw. there is a "In range and coerce" function: no need for two comparison functions followed by AND…


Also, I am using a table on the front panel as well as writing to a delimited spreadsheet is there a way to clear these both in the case function? I used a property node for the table, but I'm not sure exactly which one will clear all the data.

0 Kudos
Message 4 of 6
(1,511 Views)

Hi Sam,

 

you need to learn THINK DATAFLOW!

 


@sambpk wrote:

Also, I am using a table on the front panel as well as writing to a delimited spreadsheet is there a way to clear these both in the case function? I used a property node for the table, but I'm not sure exactly which one will clear all the data.

The table just displays the data in the wire going to its terminal. To "delete" the table (aka clear its displayed data) you need to delete the data from the wire. Again: use a case structure or a Select node…

 

When data is saved to a file then you need to delete the file to delete the saved data…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(1,507 Views)

I don't want to delete the entire file because then the program stops running then when it's out of band because it has no where to write to... I want it to remove the previous data and start over without completely stopping the program. I was successful in using the case structure to not include the "bad data" in the table, but it just deletes the file and stops the program when I do as you suggested. I'm asking how to wipe the spreadsheet/table and start over without restarting the whole program.

0 Kudos
Message 6 of 6
(1,471 Views)