Com Port

For general discussion related FlowStone
Post Reply
Saylus
Posts: 1
Joined: Tue May 03, 2011 2:52 am

Com Port

Post by Saylus »

I am new to Flowstone, just downloaded the demo version to test it out. I'am hoping this will be an easy way to interface my microcontroller projects to a PC for monitoring and control applications.

I'am having success at opening/closing a serial port, setting the baud rate, ect.

I can not figure out how to send actual data. I'am just trying to send a simple on/off command from Flowstone to the microcontroller, either 00, ff, 00, 01 ........... anything. The attached program sends fafa hex when the "switch" is toggled, then it sends cccc hex when it is toggled again, not exactly what i was expecting.

I would really like to learn how to use Flowstone but, i'am at loss atm on how to proceed on learning it.
Attachments
ComPortTest.fsm
(10.32 KiB) Downloaded 1632 times
fixstuff555
Posts: 151
Joined: Thu Oct 21, 2010 3:24 pm

Re: Com Port

Post by fixstuff555 »

Use a trigger for your opening and closing port inputs. Sometimes Flowstone will hang the port if you open and close it that way. I got your switches to work if you load the schematic with both off. If the port ever hangs, you have to close that schematic to release it. Also use a string for your data - you have a switch- that never worked. I had to switch it over to a string. I always use "After Load" for the open - as long as you don't want to change the port number. Flowstone com port control can be a bit flaky at times - not sure if its Flowstone or WIndows, but there it is.
Post Reply