switches will not activate when clicked

A collection of posts and articles on getting started in Flowcode v6

Moderator: Benj

Post Reply
lchj
Posts: 1
Joined: Mon Apr 11, 2016 4:33 pm

switches will not activate when clicked

Post by lchj »

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.

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: switches will not activate when clicked

Post by Benj »

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.

Post Reply