Sending/receiving data through the COM port

Discuss Control Systems here
Post Reply
sporter
Posts: 2
Joined: Sun Nov 01, 2015 6:37 am

Sending/receiving data through the COM port

Post by sporter »

Hi,

New Flowstone user here. I am working on a project to use Arduino to control an actuator and read the position on Flowstone so it can be plotted real-time, and also the computer sends data to the Arduino to tell the actuator where it needs to go.

I have simplified and isolated this part of the program on the attached MWE.

What I need help with:
1) I have a string module connected to the Data input on the COM port module. When I type something and press enter I should be sending data, but nothing comes up in the log. What am I doing wrong?

2) On the output "In" bubble, Flowstone receives a string. I converted the string to a float since I'll need to make some calculations with it, but nothing shows up on the float box. What am I doing wrong?


Much thanks in advance!

Moderator comment:
The schematic is made in an alpha or beta version of FlowStone. If it’s made in an alpha from the Slack group, please post there, in the Help channel. If it’s made in the beta version from this site you should be aware that the 2 versions available are very broken. Please have a look at this topic:
viewtopic.php?f=2&t=11635
Attachments
MWE.fsm
(26.31 KiB) Downloaded 2422 times
sporter
Posts: 2
Joined: Sun Nov 01, 2015 6:37 am

Re: Sending/receiving data through the COM port

Post by sporter »

Hi,

I used version 3.0.9 to create the schematic. From the post you sent it seems I will need to start from scratch, is that it?
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Sending/receiving data through the COM port

Post by Spogg »

sporter wrote:Hi,

I used version 3.0.9 to create the schematic. From the post you sent it seems I will need to start from scratch, is that it?

Unfortunately yes :(
Post Reply