start/stop timeplot and save file with new name each cycle
Posted: Sun Jun 13, 2021 4:14 am
Hello,
I am trying to figure out whether MegunoLink can do what I need. I have designed a TimePlot UI with MegunoLink which is graphing sensor data acquired with an Arduino - that has undergone some mathematical operations. I have a text box that displays the current value, and I have a message logger and message monitor to capture the data. All of which is great.
I would like to be able to start and stop the TimePlot (e.g. the data recording) and upon starting the TimePlot each time prompt the user to name the file that the data is saved to. As the goal is to have the systems at multiple locations running multiple tests each day- it makes sense to be able to name the files upon commencing recording. Of course the Arduino will be incessantly looping which is for all intents and purposes irrelevant to us.
Currently I have it so that it starts logging automatically upon connection and I am using the date (hours/minutes) as the file name; I disconnect when done and reconnect each time I start a "run". This is workable , but makes the data labeling less useful than we would like. I am probably simply missing the forest for the trees here - but I didn't see a mechanism by which to start and stop MegunoLink nor to put a command/prompt to name the file. Any and all help greatly appreciated!
MS
I am trying to figure out whether MegunoLink can do what I need. I have designed a TimePlot UI with MegunoLink which is graphing sensor data acquired with an Arduino - that has undergone some mathematical operations. I have a text box that displays the current value, and I have a message logger and message monitor to capture the data. All of which is great.
I would like to be able to start and stop the TimePlot (e.g. the data recording) and upon starting the TimePlot each time prompt the user to name the file that the data is saved to. As the goal is to have the systems at multiple locations running multiple tests each day- it makes sense to be able to name the files upon commencing recording. Of course the Arduino will be incessantly looping which is for all intents and purposes irrelevant to us.
Currently I have it so that it starts logging automatically upon connection and I am using the date (hours/minutes) as the file name; I disconnect when done and reconnect each time I start a "run". This is workable , but makes the data labeling less useful than we would like. I am probably simply missing the forest for the trees here - but I didn't see a mechanism by which to start and stop MegunoLink nor to put a command/prompt to name the file. Any and all help greatly appreciated!
MS