09-08-2025 07:44 AM
Hi,
In my VI I have many different cases, each one represent a particular setting for a channel of a measure device. So each of the 12 cases contains a specific VI with its own input. How can I manage so many variables in my VI (without creating too many clusters)? I am trying to find a way to display and manage only the wanted input for that casein an automatic and friendly way?
Thank you for the help!
Best Regards,
Zuc
Solved! Go to Solution.
09-08-2025 12:14 PM
Start by attaching your VI. (Do a save fore previous, 2020 or below).
09-08-2025 04:52 PM - edited 09-08-2025 04:53 PM
Well you could start by naming all your cases something human readable rather than 1,2,3,4...
Also you are going to have to accept that a "universal" program to cover many different settings and variations is going to be complex.
09-09-2025 02:11 AM
Hi,
Here the VI. I know that a "universal" VI can be quite complicated, but this is what I have to do, so my aim is to have a VI that manage different options for configuring a LXI 34980A channels automatically. Yesterday, while going around the web I found interesting the Subpanel idea. Unfortunately it remains the problem of managing the different cluster input since ConfigureChannelMeasure.vi will be introduced in another VI.
Thank you for the help.
Best Regards,
Zuc
09-09-2025 02:17 AM
Hi Zuc,
@Zuc_lab2 wrote:
Unfortunately it remains the problem of managing the different cluster input since ConfigureChannelMeasure.vi will be introduced in another VI.
Two options:
09-09-2025 02:42 AM
Hi GerdW,
so you mean creating a cluster of clusters, and extract only what i need? but ho i can present to the user only the controls that he/she have to change? Is there any way by python or some code to manage that?
Best Regards,
Zuc
09-09-2025 02:58 AM
Hi Zuc,
@Zuc_lab2 wrote:
so you mean creating a cluster of clusters, and extract only what i need?
I would use a (more or less) flat cluster, no need for cluster of clusters…
@Zuc_lab2 wrote:
but ho i can present to the user only the controls that he/she have to change?
Is there any way by … some code to manage that?
In general (and as mentioned before) there is a way: write the code needed to fulfill your requirement!
(There is some complexity in your requirement and you need to handle that!)
09-09-2025 03:17 AM
Hi GerdW,
while studying the different VIs for the Channels configuration i have noticed that some Parameters have the same name, so putting toghether in the same container can create caos. I suppose I will use a spreadsheet as a database for creating the needed input combinations, otherwiase I have no other ideas left.
"Learn to differ between UI/UX requirements and data storage in your backend: once you learn to differ them it becomes more easy to create "nice" UI and still use some more generic routines to handle your data"
Do you have any suggestion where i can start doing that?
Best Regards,
Zuc
09-09-2025 03:56 AM
Hi Zuc,
@Zuc_lab2 wrote:
"Learn to differ between UI/UX requirements and data storage in your backend: once you learn to differ them it becomes more easy to create "nice" UI and still use some more generic routines to handle your data"
Do you have any suggestion where i can start doing that?
It's "learning by doing"…
Look at a frontpanel of a traditional scope device and try to mimic that in LabVIEW:
Sometimes it makes sense to use different representations for the "backend" data and the "UI" data. All you need are some "helper" VIs that convert from backend to UI and vice versa…
09-09-2025 10:09 AM - edited 09-09-2025 10:14 AM
The 34980A is very similar to the 3497xA and DAQ97xA series we use here.
In my "universal test program" if the the 34970A is used for data acquisition all channels are configured through an XML file that is created using the free XML Notepad program.
The XML file is loaded, parsed, and the instrument is configured at the start of the program.