COM Port - Setting Port and Baud within App

Discuss PC Developer and Web Developer projects and features here.
Post Reply
jay_dee
Posts: 236
http://meble-kuchenne.info.pl
Joined: Sun Dec 20, 2020 6:06 pm
Has thanked: 96 times
Been thanked: 65 times

COM Port - Setting Port and Baud within App

Post by jay_dee »

Hi,
I have an App Developer program which recieves Serial Data from a PIC, this is working well.

But how can I Refresh COM Port, Change Port and Change Baud Rate from within a deployed/Running App?
I tried to make the properties visible but could not make this work. A Running app wont set focus on the COM Icon

However,
Is there a way to set buttons and Text boxes, calling and setting properties of the Component?
This could be a cleaner method for an end user.
But I get quickly lost with the 'Built-In Function' components :)

Project so far...
RecieveDiagnositicValues_V7.fcsx
(67.49 KiB) Downloaded 5 times

BenR
Matrix Staff
Posts: 1971
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 519 times
Been thanked: 703 times

Re: COM Port - Setting Port and Baud within App

Post by BenR »

Hello,

In the source project simply right click any properties you want access to and select Expose to top level.

This basically copies the property as a root property in the project. You can see the root properties by clicking on an empty area of the panel or by selecting the Root component from the drop down menu at the top of the properties window.

You can add categories by right clicking on Properties and selecting New category and then drag the properties around to better organise as needed.

For example here is one of our apps.
Screenshot 2025-10-02 101255.png
Screenshot 2025-10-02 101255.png (20.15 KiB) Viewed 52 times

Post Reply