06-23-2019 07:12 PM
I guess my explanation was not enough.
I have attached a temperature sensor in the room and I want to save the time and value whenever the value of this sensor exceeds a certain value.
In order to do that, I am creating code that plots data when I exceed 1 as a simple example.
06-23-2019 09:13 PM
But what do you want to do with the data when it is not above the value? What do you want to plot in it's place?
When you are working with waveforms, that means the data is evenly spaced.
Perhaps you want to use an XY graph?
06-24-2019 12:56 AM
Hi Yoon-soo,
please don't create duplicate threads on the very same topic, when you don't get an instant answer over the weekend! (I merged your threads.)
All you need to do is to implement my snippet before your case structure. You don't need that case sturcture…
06-24-2019 08:24 PM
Thank you GerdW and all the friendly guys.
I succeeded in this way.
I failed on the weekend but succeeded when I did it again today.
I have not yet understood why this is happening, but I will study hard.
I will share my successful code.↓↓↓↓
06-25-2019 12:54 AM
06-25-2019 03:45 AM
Thank you for the end.
I will write additional code based on this.
Please help me when I have another question 🙂
06-25-2019 03:59 AM
Hi RavensFan, Thanks for your interest in my writing.
What I want to do is write code like 'If the data received from the temperature sensor is higher than a certain temperature, turn on the air conditioner'.
To do that, I'm working on filtering the data I want from all the real-time data.
06-25-2019 04:30 AM
Hi Yoon-soo,
What I want to do is write code like 'If the data received from the temperature sensor is higher than a certain temperature, turn on the air conditioner'.
To do that,
you need tro follow the suggestion given in message #7!