Write value

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
josem-mp
Flowcode v5 User
Posts: 34
Joined: Sun May 26, 2013 3:51 pm
Been thanked: 1 time
Contact:

Write value

Post by josem-mp »

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

User avatar
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

Post by DavidA »

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

josem-mp
Flowcode v5 User
Posts: 34
Joined: Sun May 26, 2013 3:51 pm
Been thanked: 1 time
Contact:

Re: Write value

Post by josem-mp »

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

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Write value

Post by jgu1 »

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 :D

Jorgen
Attachments
SaveReadAnalog.fcf
(20.75 KiB) Downloaded 320 times

josem-mp
Flowcode v5 User
Posts: 34
Joined: Sun May 26, 2013 3:51 pm
Been thanked: 1 time
Contact:

Re: Write value

Post by josem-mp »

Ok,

Thanks

Post Reply