Page 1 of 1

Error in FC 10 when requesting an input

Posted: Fri Feb 21, 2025 7:46 pm
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.

Re: Error in FC 10 when requesting an input

Posted: Fri Feb 21, 2025 7:53 pm
by Billduck1302
I think I see now. I can not create a float variable. Ir should be an Int variable

Re: Error in FC 10 when requesting an input

Posted: Fri Feb 21, 2025 8:15 pm
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.