Hallo together
My problem:
"in macro" read in flowcode simulation 00
on my bord:
"in macro" read in flowcode simulation ff
so i have a big problem to simulate,because alltime i must changing the value of my read.
Is there a way to changing the read value only in flowcode simulation?
Regards wolfgang
in Macro
-
- Posts: 714
- Joined: Wed Jan 31, 2007 12:41 pm
- Has thanked: 1 time
- Been thanked: 26 times
- Contact:
-
- Valued Contributor
- Posts: 548
- Joined: Tue Jun 26, 2007 11:23 am
- Has thanked: 6 times
- Been thanked: 44 times
- Contact:
Re: in Macro
Hello Wolfgang,
You can set the values read by simulated inputs by adding switch components to your flowchart and configuring the connection settings for the correct ports and pins. In the switch properties, set the 'Switch Type' to 'Toggle'. This will allow any input pattern to be set permanently.
The switch setting can be read directly by the "in_macro" (you do not need to use switch component functions to read the values).
You can set the values read by simulated inputs by adding switch components to your flowchart and configuring the connection settings for the correct ports and pins. In the switch properties, set the 'Switch Type' to 'Toggle'. This will allow any input pattern to be set permanently.
The switch setting can be read directly by the "in_macro" (you do not need to use switch component functions to read the values).
-
- Posts: 714
- Joined: Wed Jan 31, 2007 12:41 pm
- Has thanked: 1 time
- Been thanked: 26 times
- Contact:
Re: in Macro
Hallo Sean
The tip work but if i send data to the port,in simulate mode the led`s connect to the port have a other reaction.
regards wolfgang
The tip work but if i send data to the port,in simulate mode the led`s connect to the port have a other reaction.
regards wolfgang
- 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: in Macro
Hello Wolfgang
If you are outputting values on the ports then the LEDs will not behaive the same as the switches in simulation and on hardware. This is because the LED resistors are much smaller then the switch resistors allowing the LEDs to reflect the I/O pin status rather then the switch status. You can use the masking option if you need to leave pins as inputs when performing output writes etc.
If you are outputting values on the ports then the LEDs will not behaive the same as the switches in simulation and on hardware. This is because the LED resistors are much smaller then the switch resistors allowing the LEDs to reflect the I/O pin status rather then the switch status. You can use the masking option if you need to leave pins as inputs when performing output writes etc.
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