Proper use of the "Closing" primitive

For general discussion related FlowStone
Post Reply
bryan20miles
Posts: 10
Joined: Thu Oct 07, 2010 4:24 pm

Proper use of the "Closing" primitive

Post by bryan20miles »

Hello fellow FlowStone users!

Simple question, with a simple answer I hope.

Program I'm writing opens serial comm port to send data (repeatedly, for testing). Using pushbuttons to Open/Close the comm port. However, I want to make sure the comm port is closed before exiting the program. I'm trying to use the "Closing" primitive but I don't think I understand how it is supposed to work, and how to correctly use it in my program. I'd appreciate any help from developers/users on this.

Thank you in advance!

BTW, I support a 64-bit version of FlowStone; it just makes sense.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Proper use of the "Closing" primitive

Post by tulamide »

Here's a demonstration. After downloading, open the fsm, look inside the module and whenever you like close the schematic. Then have a look into the folder where you saved the schematic. Hope it helps :)
Attachments
abouttoclose.fsm
(373 Bytes) Downloaded 768 times
"There lies the dog buried" (German saying translated literally)
Post Reply