03-31-2021 11:06 PM
Hi I was wondering if anyone could help I have the issue that when I run my program it writes multiple strings into the file where I only want one. I know it has something to do with the loops I'm using but I thought I negated that via a case structure. If anyone could offer advice I would be grateful.
03-31-2021 11:12 PM
Oh I forgot additionally I was wondering if you would suggest why there are such vast spaces between my numbers and how I might go about removing them thank you in advanced
03-31-2021 11:43 PM - edited 04-01-2021 01:26 AM
I recommend to go back to the tutorials.
03-31-2021 11:57 PM
Maybe simplify your code? Here's one possibility:
(You can easily add your file IO. with a simple case structure connected to a latch action boolean. In the next iteration, use an event structure so it only recalculates when the numeric changes or one of the buttons is pressed).
04-01-2021 12:18 AM
thank you I completely see what you mean about the single constant I had definitely overlooked that. I have been playing with the mechanical actions as obviously I only want the boolean to change for one iteration of the loop per press but as you said the computer seems to be looping multiple times in the time it takes for that one press. I also had not noticed the coercion dots i will have to see if i can identify what they are signaling. thank you. I will post again when i come across the next issue or if i still struggle to solve this.
04-01-2021 01:24 AM
The correct mechanical action is "latch when released". Latch action reverts the button after it is read once by the code.