Hello all,
I am trying to name a couple momentary switches, I seem to be able to make text, but not add it to my panel.
I don't know where it is going, if anywhere.
One other question for stepping through programs, Is there a way to step through, and press one of the buttons as well?
This way I can see the result of the button press as I step through.
Thanks in advance!
MAGA= Morons Are Governing America.
Is there a Macro to stop Trumps tweets? (Rhetorical Question, unless of course there is)
ADDING TEXT, AND A STEP THROUGH BUTTON QUERY
Moderator: Benj
- E*2Engineer
- Posts: 35
- Joined: Wed Dec 25, 2013 6:54 pm
- Has thanked: 12 times
- Been thanked: 6 times
- Contact:
ADDING TEXT, AND A STEP THROUGH BUTTON QUERY
- Attachments
-
- SHEEP COUNT TEXT WOES 7 11 17 0251.fcfx
- Sorry so stupid, 0320 and going to bed.
- (8.25 KiB) Downloaded 234 times
- 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: ADDING TEXT, AND A STEP THROUGH BUTTON QUERY
Hello,
You have created text properties in your project so unless you are specifically referencing these variable in your code then these won't do much.
You can rename the switch components to make it more obvious in the program which switch you are calling.
Any component macros referencing the component will be updated.
In the Shapes component tool bar you will find a Label component which allows you to add text objects to the panel.
The text value is set via one of the component properties.
Key mapping is one way to simulate the button press by holding down a key on the keyboard.
Another way might be to set a breakpoint in the program to pause the program when the switch is pressed, allowing you to step beyond the switch press event.
You have created text properties in your project so unless you are specifically referencing these variable in your code then these won't do much.
You can rename the switch components to make it more obvious in the program which switch you are calling.
Any component macros referencing the component will be updated.
In the Shapes component tool bar you will find a Label component which allows you to add text objects to the panel.
The text value is set via one of the component properties.
The easiest way is probably to change the switch type from momentary to latching.One other question for stepping through programs, Is there a way to step through, and press one of the buttons as well?
This way I can see the result of the button press as I step through.
Key mapping is one way to simulate the button press by holding down a key on the keyboard.
Another way might be to set a breakpoint in the program to pause the program when the switch is pressed, allowing you to step beyond the switch press event.
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