switches will not activate when clicked
Moderator: Benj
switches will not activate when clicked
I apologize for asking what is probably a really basic question. I have just started using flowcode 6 and started the matrix tutorial on "introduction to microcontrollers." For one of the simple introduction programs there is an array of switches connected to a bank of LED's via the MC. However when I try and activate a switch with my mouse on the system panel nothing happens either to the switch graphic nor LED response. What am I doing wrong? Apologies again for the basic nature of my question.
- 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: switches will not activate when clicked
Hello,
You need the simulation to be running for your mouse clicks to be detected by the switch component, when the simulation is stopped you can re-position the component on the panel or scale it.
It could be you don't have a loop in your program so when you click the run button the program ends before it really starts. If this is the case then you can add a while loop to your program and this will allow the program to keep running allowing you to press the switch.
You need the simulation to be running for your mouse clicks to be detected by the switch component, when the simulation is stopped you can re-position the component on the panel or scale it.
It could be you don't have a loop in your program so when you click the run button the program ends before it really starts. If this is the case then you can add a while loop to your program and this will allow the program to keep running allowing you to press the switch.
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