Component Label and Value

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
mimiyum
Posts: 94
Joined: Wed Jul 16, 2008 4:39 pm
Location: Philippines
Been thanked: 1 time
Contact:

Component Label and Value

Post by mimiyum »

Hello,

Sorry if these might be stupid questions...I simply can't find how to label components. For example, I have a PWM component which I want to label SPEED. How is this possible? This also goes to ADC components or maybe switches.

Another question is how do we make the value of ADC component appear during simulation?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Component Label and Value

Post by Benj »

Hello,
I have a PWM component which I want to label SPEED. How is this possible?
Select the PWM component on the panel, In the Properties window click onto the text next to the item Handle, Change the text to Speed. All references to the PWM component are now updated to be referenced to the Speed component.

Comments can be added to the dashboard panel using the T item from the sidebar menu. Comments can be added to the system panel by clicking the 3D button and then using the T item from the sidebar menu.
how do we make the value of ADC component appear during simulation?
The analogue inputs window available from the View menu should show you the values from the ADC inputs during simulation.

This could also be done by adding a text item to the panel and then changing the value of the text by using a sim icon as part of your program to force in a new property value. We could build something like this into the ADC component itself if it would help.

mimiyum
Posts: 94
Joined: Wed Jul 16, 2008 4:39 pm
Location: Philippines
Been thanked: 1 time
Contact:

Re: Component Label and Value

Post by mimiyum »

Actually I have two PWM and I was able to rename one of them but I couldn't change the other one. It just goes back to PWM1.

I enjoyed the ADC Value appearing on the panel itself right under the ADC knob in Flowcode 4. It would be great to see it without having to look at another panel during simulation. I happen to be looking at the values and the PWM during simulation. It's easier to simulate that way rather than get confused coz of using more than 1 ADC and more than 1 PWM.

Otherwise, I can live with the Analog inputs panel.

Thanks!

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: Component Label and Value

Post by JonnyW »

Hi. What are you adding into the 'handle' part?

This must be a variable name, the same rules apply to this as a global variable. This is so Flowcode programs can reference components during simulation.

What this means is no spaces, no use of a name that already exists and only alphanumeric characters. If you type a name in and the background goes light blue, hover the mouse over the text field and it should give a tool-tip as to what is wrong.

Cheers,

Jonny

mimiyum
Posts: 94
Joined: Wed Jul 16, 2008 4:39 pm
Location: Philippines
Been thanked: 1 time
Contact:

Re: Component Label and Value

Post by mimiyum »

I know now! It was because I use "Speed" as a variable name and I guess the system doesn't allow me to use it as a PWM name. I just made the name "Speed1" and it worked! :D

Post Reply