05-07-2009 12:08 PM
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
05-09-2009 06:20 AM
I will present this solution you attached and see if we got and agreement. I will know something on Monday.
Thanks
TN
05-11-2009 08:57 AM
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
05-11-2009 09:26 AM
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
05-11-2009 09:56 AM
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
05-11-2009 11:19 AM
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
05-11-2009 11:28 AM
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
05-11-2009 11:45 AM
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
05-11-2009 12:23 PM
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
05-12-2009 09:56 AM
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