LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SUB-VI showing the options made in the MAIN-VI.

Solved!
Go to solution

Why not try using tabs to simulate different dialogs for your user to input data...? I have attached an example that shows this...let me know if this helps...

 

-CAC

0 Kudos
Message 11 of 21
(1,842 Views)

I will present this solution you attached and see if we got and agreement. I will know something on Monday.

 

Thanks

TN

TN
Currently using LV 8.5
logo
0 Kudos
Message 12 of 21
(1,822 Views)

Hi again,

 

I'm using CAC's tab example to help me with the navigation, i think it will work, but i wanted to validate the data, before the user be able to go on to the next page. I'm using a simple led to validate data, but it only assume the values after going to the next page.

 

It must be simple, but i'm not getting it. 

 

 

Thanks in advance.

TN

TN
Currently using LV 8.5
logo
0 Kudos
Message 13 of 21
(1,793 Views)

You can create an addtional event case that triggers on value change of your cluster (all elements). You can move all your validation logic to this case and it will run through it each time the user changes a value within that cluster without having to click "Next." This is what I could think of at the moment...let me know if it helps.

 

-CAC

0 Kudos
Message 14 of 21
(1,784 Views)

That's what i'm trying to do, but this is my 1st time working with tabs, can you please check this VI to check what's wrong with it? And why it does switch page.

And btw, do you know if i can highlight only some fields of the cluster, instead all of it. I wanted to highlight the fields that have an error.

 

Thanks

TN

TN
Currently using LV 8.5
logo
0 Kudos
Message 15 of 21
(1,777 Views)

Since the value change for the cluster is in the same event case as the property that changes the tab page, your tab will change. Instead of selecting "Edit Events Handeled by This Case..." select the item "Add Event Case." In that new event case you can select each individual control in that cluster (instead of selecting all elements) and select value change for each one. Once you have created your case, you can get the value of the control that was changed and its corresponding new value from the case's Event Data Node. You can validate that value and change the blinking status of that control based on that inside this case.

 

Refer to the tab example again...I have made a few changes which I hope will help you.

 

-CAC

Message 16 of 21
(1,759 Views)

Thanks CAC for all the help so far.

 

This new tab example helps me out with the blinking problem. But i've been trying to put all my data validation into the tabs and i can't make it work. Can you pls check this last VI, and see if you can correct the problem. I will give you a kudo in advance.

 

Many thanks.

TN

TN
Currently using LV 8.5
logo
0 Kudos
Message 17 of 21
(1,754 Views)
Solution
Accepted by topic author THN

I did not notice on your previous posted VI that you had two Event Case Structures. Remove the inner event case structure and add a case to the already existing structure.

 

-CAC

Message 18 of 21
(1,749 Views)

Thanks CAC, for solving my problem. Tell me, do you have any VI example that ables the user so save his choices front the front-panel? You have seen my example, can you tell me if it is possible to save the values and strings from all that fields. I want to implent a "LOAD" and "SAVE" parameters, to ease up user's intereaction. It would be wonderful if you can support me in that.

 

TN

TN
Currently using LV 8.5
logo
0 Kudos
Message 19 of 21
(1,737 Views)

You can save all the data from your cluster in an INI file. Do a search for OpenG Variant Config File IO Tools, these functions will allow you to read/write you cluster values directly from/to an INI file.

 

-CAC

0 Kudos
Message 20 of 21
(1,710 Views)