I am trying to create a case structure that allows me to select which set of data I would like to graph (I have 3 sets). I am graphing 3 separate signals of degrees of rotation on the x-axis, and 1 torque signal on the y axis. My problem is I cant seem to create a control to switch between the three cases, I can only find a control to switch between two cases. I am using LabVIEW 8.6 and am relatively new to labview so I appologize if this is a simple question.
Thanks for the help!
Solved! Go to Solution.
You are going to have to provide some details. What exactly do you have wired to the case selector. As already noted, the case structure will adapt to the datatype of the case selector. The 'names' will vary. And, if you have a boolean wired to the selector, you cannot have more than 2 cases. Why don't you at least post an image of what you have done?
You might also check out the labVIEW tutorials. Case structures are pretty basic.
I would recommend the book "LabVIEW for Everyone" for someone starting out. Even an earlier cheaper addition would be of benefit to you.
Here is my VI. The area in question is at the very bottom center. there is a case structure with the cases: D/P, I/E, and A/A. This case structure spits out a data that goes to the XY Graph. When I right click on the ? on the case structure and say create control, all it gives me is a boolean control.
Hopefully this will clerify.
you don't need a case structure here... See attachment! (I just made an enum constant instead of a control, change to your needs...)
The rest of the code is somewhat... eehh... - I would use more arrays instead of all those wires and same casestructures...