LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

load items into enum programmatically

Hi. May I know how to load the items from the ini.file into enum so that I dun have to go into to edit mode to update?
I cannot find the functions of enum that enables me to load the items into enum programmatically.
 
Here's my attached. Labview in version 7.0
 
Cheers
Clement
0 Kudos
Message 1 of 8
(4,057 Views)

Hi AB,

Create an Untitled.vi with just your enum on FP.

Run attached VI in same directory.

Cheers

BTW, I like Durian!  Smells sooo good. Smiley Wink

Message Edited by Dynamik on 09-27-2005 10:15 PM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 8
(4,044 Views)
Clement,

I did not look at your code, but here are some information.

You can load items value in the enum through the property called String[].

But, you have to make sure the VI where the enum reside is idle (not running or not in the call chain) when you do that.

Basically you have to do it using VI server from another VI.

Hope it help.

PJM


  


vipm.io | jki.net

0 Kudos
Message 3 of 8
(4,041 Views)
Hi. Dynamik and PJM_Labview.
Could you pls provide it in version 7.0. Sorry to trouble you. Tot that I had mentioned it in previous msg.
Cheers
 
Clement, Durian Lover from Singapore
 
0 Kudos
Message 4 of 8
(4,032 Views)
OK, yup, I wasn't paying attention again.
Here's the main logic in 6.1.  LabVIEW complained when I tried to save the 7.1 example to 7.0.
Cheers
When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 5 of 8
(4,025 Views)
Hi Dynamik.
This is not what I would like to know. This is because my fellow may update the list of future items to be loaded into the enum.
Not only that, not every computer is loaded with Labview software. I am sure there's a way to load items from notepad.
 
To PJM-Laview, And I have tried using the string [ ] but still cannot work. Also I cannot use another vi as my fellow does not how to use labview like I mentioned above.
 
Cheers
Clement
0 Kudos
Message 6 of 8
(4,022 Views)

Hi Clement,

      As with C and other languages, LabVIEW must know the "enumerated" list of strings at Compile-time.  The Run-time usage you describe is not appropriate for an Enum type.  You should be using a text-ring.

Cheers 

 

When they give imbeciles handicap-parking, I won't have so far to walk!
Message 7 of 8
(4,010 Views)

Hi. Thanks. Ya. I should be using text ring!

Thanks alot.

Cheers!

Clement, hmmm smell of durian!Smiley Very Happy

0 Kudos
Message 8 of 8
(4,002 Views)