01-12-2021 08:26 AM
Hello labview experts
If i make a case structure with 3 different numbers, how do i store the data from each case? Look at my attached program. When i swap between the cases, the 2 "inactive" cases' value just goes to 0. How do i store the data from all cases at once?
Solved! Go to Solution.
01-12-2021 08:32 AM
Hi Ignocia,
@Ignocia wrote:
How do i store the data from all cases at once?
There can be only one case selected (aka "active"), so you cannot handle "all cases at once"!
Generic answers/hints:
01-12-2021 08:35 AM
I understand that only one case can be active at a time. My question is - how do i store data from a case before i go to the next case?
I've tried using shift registers, but i dont see them as a solution to my problem.
What do you mean by wiring data across the cases?
01-12-2021 08:47 AM
Hi Ignocia,
@Ignocia wrote:
I've tried using shift registers, but i dont see them as a solution to my problem.
What do you mean by wiring data across the cases?
Shift registers are the solution when your case structure is called multiple times in a loop!
"Wiring across the cases" means to wire all data through each case. Case structures also allow the "linked tunnels" feature to easily setup proper wire connections in ALL cases…
01-12-2021 11:52 AM - edited 01-12-2021 11:53 AM
You already have shift registers, so just wire across the case in all cases where you don't modify the data. You are good once all the output tunnels are solid colored. (i.e. no longer hollow!)
Of course you have significant problems in general and I recommend to go back to the tutorials:
01-13-2021 01:35 AM - edited 01-13-2021 02:06 AM
Thanks for your response Altenbach
I know that it would work pulling the data outside the case. But i need it to be inside the case. I made a program that takes a lot of measurements automatically from 1 source (a DMM). So each case represents a specific test. I attached the program im talking about.
Wiring the switch registers in a loop for the inactive cases worked, thanks a lot!
I will look into some of the points you mentioned