[solved] RS232 - Char receive type

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
dbasnett
Posts: 125
Joined: Mon Aug 15, 2011 1:54 pm
Has thanked: 8 times
Been thanked: 11 times

[solved] RS232 - Char receive type

Post by dbasnett »

I thought when you set "Char receive type" to "Int (extended data)" that if there was not a character available (timeout), the return value would be greater than 256? See attached please. This is running on an 18F4580. This fails on the simulator and the EB006.

This must be a simple mistake or misunderstanding.
Attachments
RS232Test.fcf
(5.5 KiB) Downloaded 265 times
Last edited by dbasnett on Thu Sep 08, 2011 9:33 pm, edited 1 time in total.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: RS232 - Char receive type

Post by Benj »

Hello,

I'm unsure if the new return type is available on the simulator. This could explain the simulation issues. What happens when you send your program to the EB006?

dbasnett
Posts: 125
Joined: Mon Aug 15, 2011 1:54 pm
Has thanked: 8 times
Been thanked: 11 times

Re: RS232 - Char receive type

Post by dbasnett »

Same thing. BTW - I have the RS232 board on Port C.

dbasnett
Posts: 125
Joined: Mon Aug 15, 2011 1:54 pm
Has thanked: 8 times
Been thanked: 11 times

Re: RS232 - Char receive type

Post by dbasnett »

So I came home from school and re-tested and now no problems with the EB006...

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: [solved] RS232 - Char receive type

Post by Benj »

Great thanks for letting us know, Was surprised when you said it was also happening on the EB006 because I know we gave the code a good test before releasing it.

dbasnett
Posts: 125
Joined: Mon Aug 15, 2011 1:54 pm
Has thanked: 8 times
Been thanked: 11 times

Re: [solved] RS232 - Char receive type

Post by dbasnett »

It was strange to say the least and I was surprised that it was happening. Just glad that it isn't.

Operator malfunction ;) I think.

Post Reply