Dear,
I'm doing a small project and I need to read an analog input and record the value in a variable.
After this recorded value I need to compare it with the analog input after a while.
Could someone tell me how.
Thank you
Write value
Moderator: Benj
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: Write value
Hello,
Reading a variable from an analogue input is fairly straightforward.
Check this section of the online Flowcode course on how to do inputs:
http://www.matrixtsl.com/courses/itm/in ... italInputs
Reading a variable from an analogue input is fairly straightforward.
Check this section of the online Flowcode course on how to do inputs:
http://www.matrixtsl.com/courses/itm/in ... italInputs
Re: Write value
Dear David,
I have no trouble reading the analog input.
I need to store the read value in the analog input and save it.
this value can not be cleared by removing the feeding.
I need to read the value that is stored when feeding back.
Thanks
I have no trouble reading the analog input.
I need to store the read value in the analog input and save it.
this value can not be cleared by removing the feeding.
I need to read the value that is stored when feeding back.
Thanks
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
Re: Write value
Hi Josem!
I don´t know if it this you mean. But I have tryed to make a simple program wich can store and read a value when you want, and even save it in an EEprom.
Maybe you can use it or something of it. I have not tested it "realworld" but it Work in simulation.
Good luck
Jorgen
I don´t know if it this you mean. But I have tryed to make a simple program wich can store and read a value when you want, and even save it in an EEprom.
Maybe you can use it or something of it. I have not tested it "realworld" but it Work in simulation.
Good luck

Jorgen
- Attachments
-
- SaveReadAnalog.fcf
- (20.75 KiB) Downloaded 350 times