04-09-2024 07:08 AM
@VinnyAstro wrote:
Yet the OP should know about autoindexing, since a FOR loop automatically creates one when you input an array... So that means that they've disabled it on purpose 🤔
Or they started with a While loop and r-clicked and changed it to For. 🙂
06-05-2024 12:58 PM
In a nutshell, we basically have a 2D boolean array to be turned into a single boolean according to some rules.
I have that nagging feeling that this could be simplified somewhat. 😄 (seen here)
06-06-2024 06:07 AM - edited 06-06-2024 06:44 AM
@altenbach wrote:
In a nutshell, we basically have a 2D boolean array to be turned into a single boolean according to some rules.
I have that nagging feeling that this could be simplified somewhat. 😄 (seen here)
shiftregisters and one OR 🙂 just keep the boolean information (edit: first SR init to false 😉 )
or concentrate the arrays followed by OR-array , boolean array to number is max 64 bit (more will be truncated, so I assume each loop run 64 times max). Who cares for 16k memory nowadays 😄
06-06-2024 08:45 AM
@Henrik_Volkers wrote:
@altenbach wrote:
In a nutshell, we basically have a 2D boolean array to be turned into a single boolean according to some rules.
I have that nagging feeling that this could be simplified somewhat. 😄 (seen here)
shiftregisters and one OR 🙂 just keep the boolean information (edit: first SR init to false 😉 )
Put the indexing on Last Value, and make it conditional:
06-21-2024 06:20 AM
@Broken_Arrow wrote:
Saw this today:
If an outer while loop contains an event and another inner while loop and both the event and inner while loop are separate, then is there any possibilty that the execution comes out of the inner while loop when the event occurs and after executing the event it comes back to the inner while loop where it was previously executing,
just for the sake of curiosity
06-21-2024 08:02 AM
@alexderjuengere wrote:
@Broken_Arrow wrote:
Saw this today:
If an outer while loop contains an event and another inner while loop and both the event and inner while loop are separate, then is there any possibilty that the execution comes out of the inner while loop when the event occurs and after executing the event it comes back to the inner while loop where it was previously executing,
just for the sake of curiosity
Did you turn off the "Lock Front Panel Until Event Is Handled" for both of those controls? It looks like an extra button press is locking the front panel since the Event Structure is not being handled due to the extra loop inside of the loop.
06-21-2024 08:56 AM - edited 06-21-2024 08:57 AM
@crossrulz wrote:
Did you turn off the "Lock Front Panel Until Event Is Handled" for both of those controls? It looks like an extra button press is locking the front panel since the Event Structure is not being handled due to the extra loop inside of the loop.
no, I didn't uncheck Lock Panel, which is checked by default (scenario 1)
when unchecking that flag AND saving the .vi (scenario 2)
06-21-2024 01:54 PM
Why aren't the buttons latch action?
Why is the an timeout case that can never happen?
Why is the inner loop greedy?
Why is there a sequence structure?
06-22-2024 06:56 AM - edited 06-22-2024 07:02 AM
Why aren't the buttons latch action?
- because you can't use local variabels with that mechanical action
Why is the an timeout case that can never happen?
- because, I don't want any timeout effects, can it be removed?
Why is the inner loop greedy?
- because it was suggested by the OP
Why is there a sequence structure?
- because I use local variabels, and want them to be executed first
06-22-2024 06:57 AM
back to topic 😛