Error in FC 10 when requesting an input

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Billduck1302
Posts: 14
http://meble-kuchenne.info.pl
Joined: Fri Dec 06, 2024 4:41 pm
Has thanked: 1 time

Error in FC 10 when requesting an input

Post by Billduck1302 »

I created a float variable. And requested an "Input", on an UNO, for AN1. Tried it on FC V9 and V10.
When I assign the input to the Float variable, the error message is
Can not convert to type " .
Any suggestions? I have included the FV V9 Program.
Attachments
FC type variable error.fcfx
(6.28 KiB) Downloaded 28 times

Billduck1302
Posts: 14
Joined: Fri Dec 06, 2024 4:41 pm
Has thanked: 1 time

Re: Error in FC 10 when requesting an input

Post by Billduck1302 »

I think I see now. I can not create a float variable. Ir should be an Int variable

medelec35
Matrix Staff
Posts: 1956
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 626 times
Been thanked: 657 times

Re: Error in FC 10 when requesting an input

Post by medelec35 »

Hello.
Cannot convert to tyoe message, just states it is the wrong type of variable you are trying to assign.
For single pin inputs, you can use bool, byte, int, unint long, ulong.
The smaller the variable type you can get away with then the less memory used and the faster the calculations will be etc.
I have moved from Bugs section as this is not a bug.
Martin

Post Reply