LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with supposedly strictly-typed reference...

Solved!
Go to solution

I'm having some issues with supposedly strictly-typed references.

 

Can anyone look at the code attached (LV2010) and tell me why the top example doesn't work and the bottom does. More over, what's the general way to make the top example work?

 

The discussion of strict and weak typed is rather short in the documentation in the help. Any pointers to relevant documentation would be appreciated.

 

Thanks!

0 Kudos
Message 1 of 3
(2,169 Views)
Solution
Accepted by topic author majoris

You can not write the Strings[] property of an Enum while the VI is running.  If you need to do this, one common way is to use a Text Ring instead of an Enum.

Message 2 of 3
(2,159 Views)

I swear I read that help page like ten times and now I finally see the caveat in documentation. It would be nice if they mentioned this in the Enum Property page or in the table for Strings[] in the documentation instead of hiding it in the documentation.

 

That said, now that you say it, it's obvious why. I wish the error I received (1082, I believe) could also be a bit more specific as I don't explicitly make the enum a strict type def, it simply is implicitly.

0 Kudos
Message 3 of 3
(2,149 Views)