07-08-2020 08:44 AM
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
07-08-2020 09:01 AM - edited 07-08-2020 09:03 AM
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).
Btw. there is a "In range and coerce" function: no need for two comparison functions followed by AND…
07-08-2020 09:12 AM
@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!
07-08-2020 09:32 AM
@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.
07-08-2020 09:41 AM
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…
07-08-2020 12:46 PM
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.