06-18-2010 02:11 PM
@Baji wrote:
Thanks for the reply. Do you have any Ideas or sugessions achieve the task. I attached the snapshot for better understanding of my requirements.
That looks like what I described!
The top enum selects the action and the left enum indexes the value.
Ben
06-18-2010 02:16 PM
This VI working fine for me,But if i do any change or Addition to the parameters in the file, i need go back and change the enum Parameters too. any ways to automate this??
06-18-2010 02:26 PM
If the enum that selects which set gets updated, and its type-def'd then all previous instances should be OK and where the new enum value is used, the same enum should get updated when the enum's type def gets updated.
I think we are close and only language standing between us.
Ben
06-18-2010 02:34 PM
Thanks Ben for your efforts.
As you said the language is standing between us. Can you give me a small example code for quick understanding.
06-18-2010 02:36 PM
No but if you post that VI along with the type defs that go with it and I'll stick around after work for a couple of minutes.
Else you will have to to wait until Monday.
Ben
06-18-2010 02:45 PM
I attached my VIs
06-18-2010 02:54 PM - edited 06-18-2010 02:55 PM
I was about to tell you too...
pop-up on the Prameter Name .... Open type def ... replace with enum
but that wil not work becuase you have duplicate strings in that ring. If it where not for the duplicates ... should there be duplicates?
If not use an enum instead of the ring.
Ben
PS the plus 1 thing will have to go.
06-18-2010 02:57 PM
You're still not going to be able to update this typedef at runtime. Scripting will allow you to udpate the enum, but the VI has to be in edit mode. Which means you won't be able to do it inside of an application, or while the VI that's using the enum is running.
06-18-2010 03:01 PM
@smercurio_fc wrote:
You're still not going to be able to update this typedef at runtime. Scripting will allow you to udpate the enum, but the VI has to be in edit mode. Which means you won't be able to do it inside of an application, or while the VI that's using the enum is running.
True.
But will pick-up the new value changes from file after its re-started. Whn a new selection is added to the file the code that uses it will have to get a new enum value to select the new column from the text.
But then again maybe I am not on the right page.
Ben