RS232 Serial

For general Flowcode discussion that does not belong in the other sections.
Post Reply
alanwms
Posts: 145
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 26 times
Been thanked: 7 times

RS232 Serial

Post by alanwms »

I'm having a tough time with FC9 finding the terminal that allows me to see serial commands - I had this in previous FC versions? I do have the test and debug add on.
Let me know where I'm going wrong.

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 701 times

Re: RS232 Serial

Post by medelec35 »

Hi alanwms,
The option for UART to be displayed with the console is off by default.
Select the UART(RS232) component in the panel.
Right click and select properties.
Select Yes for the Console data option.
Martin

alanwms
Posts: 145
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 26 times
Been thanked: 7 times

Re: RS232 Serial

Post by alanwms »

I see - I did have that enabled but sending a serial_string[11] did nothing. I changed the send function to a simple word "HELLO" and that worked. Any idea why my string variable names serial_string does not work? The initial value is "HELLO"

alanwms
Posts: 145
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 26 times
Been thanked: 7 times

Re: RS232 Serial

Post by alanwms »

Now I see the issue - The initial value assigned to the string is not working. I used the calculation box to assign "Hello" to the variable "serial_string" and that worked.

Is the initial variable value not working?

Just one more request - When I was referring to the serial console of the past - It seems that I could type in a response in simulation. Is that possible?

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 701 times

Re: RS232 Serial

Post by medelec35 »

alanwms wrote:
Tue Feb 02, 2021 4:31 pm
Is the initial variable value not working?
I have an issue like that which was down to silicon with PIC18F27K40
I will see if it happens on a different chip and get back to you.
alanwms wrote:
Tue Feb 02, 2021 4:31 pm
Just one more request - When I was referring to the serial console of the past - It seems that I could type in a response in simulation. Is that possible?
Yes you can.
You will need to go to the component menu and under API, select Injector (Human Interface)
Martin

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 701 times

Re: RS232 Serial

Post by medelec35 »

Working fine with Arduino Uno.
What target device do you have?
Martin

alanwms
Posts: 145
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 26 times
Been thanked: 7 times

Re: RS232 Serial

Post by alanwms »

My target is PIC24FJ64GB002

Thanks for the human interface pointer Martin - You are the man!

Post Reply