03-30-2022 10:28 AM
@gilmaor1 wrote:
What did, Is to remove all inner loop. and create case structure, where I control the their indexes.. and thus I creating "Loops" and loops within loops.
It is very difficult to imagine what all this even means... 😮
(What's the difference between a loop and a "loop"? Case structures don't have "indexes"..., etc.)
03-30-2022 10:57 PM
Similar to my feelings about semaphores, if you need to unlock the front panel for your code to work, you probably need to consider re-architecting your code.
04-03-2022 02:04 AM
Hello All,
What I failed to mention is that the code outside the event structure has loops which call for events.
Surley this is the issue....
I have solved this by creataing a "psuedo loop"
I run my code in the main loop, and manage the itterations manually using case structure, So after each event I will return to the correct place of the code.
04-03-2022 09:38 AM
@gilmaor1 wrote:I have solved this by creataing a "psuedo loop"
I run my code in the main loop, and manage the itterations manually using case structure, So after each event I will return to the correct place of the code.
Nobody here will be able to make sense of your description. Once you show us your VI, we can comment and offer suggestions.
04-03-2022 09:48 AM
@altenbach wrote:
@gilmaor1 wrote:I have solved this by creataing a "psuedo loop"
I run my code in the main loop, and manage the itterations manually using case structure, So after each event I will return to the correct place of the code.
Nobody here will be able to make sense of your description. Once you show us your VI, we can comment and offer suggestions.
Aztec programmers probably think it's beautiful 😍
04-03-2022 10:53 AM
@JÞB wrote:
@altenbach wrote:
@gilmaor1 wrote:I have solved this by creataing a "psuedo loop"
I run my code in the main loop, and manage the itterations manually using case structure, So after each event I will return to the correct place of the code.
Nobody here will be able to make sense of your description. Once you show us your VI, we can comment and offer suggestions.
Aztec programmers probably think it's beautiful 😍
😄
04-04-2022 02:23 AM
Hello,
This is my code.
04-04-2022 09:20 AM - edited 04-04-2022 09:46 AM
@gilmaor1 wrote:
This is my code.
Well I never had to test an algorythm 😋, but I would clean up quite a bit.
Even if you get that to work without cleaning up, you're not doing yourself any favors. Asynchronous processes call for asynchronous loops.
04-04-2022 09:45 AM
@gilmaor1 wrote:This is my code.
By only rearranging things for 5 minutes, it looks like this:
For reference:
04-04-2022 10:24 AM
@gilmaor1 wrote:
This is my code.
Ah, what a mess.
I will refrain from more comments, because it is not even clear what the VI is supposed to do. Whatever it is, I am sure it can be done with 20% of the current code.