07-31-2007 11:33 PM
08-01-2007 12:34 AM
08-01-2007 02:59 AM
Hi there
the "Strings[]" property of Text Rings and Menu Rings is NOT part of their strict typedefs data, so even if you use a Ring you aren't able to update the "Strings[]" of all the Ring's instances.
08-01-2007 03:20 AM
Hi labmaster,
I don't think this is going to help you - it sounds like you need the enum to be on a running diagram during the update and, like Bill said, you can't update the enum "strings" property while it's on a running VI,
... but you can write to its "strings" property programmatically - via reference if you:
1) Open a reference to a non-runnng VI with the target-enum on the FP
2) get the Front Panel "Controls" [array] property,
3) Find the right reference (look at each control-reference if there's more than one)
4) Write to the strings property (programmatically)
Cheers!
08-01-2007 03:24 AM
08-01-2007 04:59 AM
08-01-2007 07:35 AM
I love these "YES YOU CAN!" replies to traditionally "No you can't" questions.
Ton wrote
"
The problem lies in the fact that your case structures will react in strange ways, most likely your code is broken because there might be less items in the new enum and there would be cases for non-existing items which LabVIEW can't handle.
"
If all of the case structures have a default case that enunciates an un-handled condition, you can survive these dynamic changes.
Now if we could only do this in an executable... ![]()
Ben
08-02-2007 04:22 AM
Hi Ben,
To be fair to BILL @ NGC who responded "you can't update the Strings[] property of an enumerated type while the VI is running". Isn't this accurate? I don't think this has been refuted or disproven - just a couple of work-arounds (including mine) that won't do what the original poster requested.
My sense, reading Ton's post, was that Ton responded mainly to the subject-line, not the content of the post: "the enum control should be updated in executing" (translation: "the enum control should be updated while executing").
Your reply seems to be denigrating a concise and accurate reply(?)
Regards.
08-02-2007 05:59 AM
Sorry it cam across that way. ![]()
My intent was to encourage thinking outside the box and finding new was to "break the rules". ![]()
That is how scripting was uncovered etc.
Ben
08-02-2007 06:13 AM