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?
Component Label and Value
Moderator: Benj
- 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
Hello,
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.
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.
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.I have a PWM component which I want to label SPEED. How is this possible?
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.
The analogue inputs window available from the View menu should show you the values from the ADC inputs during simulation.how do we make the value of ADC component appear 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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 94
- Joined: Wed Jul 16, 2008 4:39 pm
- Location: Philippines
- Been thanked: 1 time
- Contact:
Re: Component Label and Value
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!
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!
- 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
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
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
-
- Posts: 94
- Joined: Wed Jul 16, 2008 4:39 pm
- Location: Philippines
- Been thanked: 1 time
- Contact:
Re: Component Label and Value
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! 
