I am sampling the ADC into an Int, and need to send this over RS232 to a PC.
The RS232 Macro has SendRS232Char which looks to take a byte. Will it send an Int?
How will the data be seen on the other side?
How does FLowCode send an Int via RS232?
How does FLowCode send an Int via RS232?
If you're reading this then my post was too short or did not get to the point.
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
You have 2 options:
1) Turn the INT into 2 BYTE variables (high and low bytes) and send these.
In this case, the raw value of the data will be seen on the PC.
2) Turn the INT into a string representing the number.
This is probably how you need to do it. You will need to use the "ToString$" function in a "string manipulation" icon to convert your number to a string.
1) Turn the INT into 2 BYTE variables (high and low bytes) and send these.
In this case, the raw value of the data will be seen on the PC.
2) Turn the INT into a string representing the number.
This is probably how you need to do it. You will need to use the "ToString$" function in a "string manipulation" icon to convert your number to a string.