08-22-2022 07:20 AM
08-22-2022 07:56 AM
08-22-2022 10:49 AM
I did the same before. im using visa read and write operation in each case so im getting error if cases are running in parallel so im asking the same question
08-22-2022 10:49 AM
2 options:
1.) Take your n Booleans and convert them into a number, for thee Booleans this is manageable but for for large numbers of permutations becomes difficult. Cases = 2^n where n is # of Booleans.
2.) Have n separate cases, one for each Boolean. Gets big on your code block if each case is complex.
08-22-2022 10:59 AM - edited 08-22-2022 11:03 AM
Hi jeet,
@User002 wrote:
I did the same before. im using visa read and write operation in each case so im getting error if cases are running in parallel
It's the first time you mention "VISA read" in this thread, so don't blame us for insufficient advice!
Why do you need to place several VISARead calls in parallel? Just create the strings/commands you want to send to your device in all those cases/ case structures, build an array of those strings and use a FOR loop to send all strings one after the other!
Why do you insist on "running in parallel" when you already learned you cannot run those VISA calls in parallel?
Why don't you attach your VI so we can inspect your code and provide better help? (This would atleast help with interpreting your question as you tend to hide important information from us…)
08-22-2022 11:01 AM - edited 08-22-2022 11:04 AM
@paul_cardinale wrote:
@User002 wrote:
how to select mutiple cases at time? i have some cases such as case 0 case 1 case 2. i want to select some time indusually, some time 0,1 or 0,2 or 1,2 etc or all three at t time.. is it possible?
You should never select anything "indusually"; that's way too cromulent.
Actually it's not cromulent at all!
08-22-2022 12:51 PM
im attaching the Vis. in that in want to select all three cases at once or 1,2 or 2,3, or 3,1 (all combinations possible). i tried to make it(cases) parallel but getting error about visa read, sometimes getting same output or not any output for all the channels.
looking forward to help. thanks
08-22-2022 12:57 PM
@User002 wrote:
im attaching the Vis. in that in want to select all three cases at once or 1,2 or 2,3, or 3,1 (all combinations possible). i tried to make it(cases) parallel but getting error about visa read, sometimes getting same output or not any output for all the channels.
looking forward to help. thanks
Unfortunately, not many of us are using LV2021 or 2022 yet, please convert the VIs to LV2019
08-22-2022 01:06 PM
converted to 2019..
08-22-2022 01:17 PM - edited 08-22-2022 01:26 PM
Hi jeet,
@User002 wrote:
converted to 2019..
Finally some code…
Suggestion:
All code, that is the same in all cases, does not belong into those cases! Move "constant code" out of the case structure! (This will reduce your cases 1,2,3 a lot…)
Then we can discuss about your other/original problem: what is the difference between those 3 cases!?
For me they look the same, even their input clusters have the same values…
More suggestions:
