08-27-2012 02:53 AM
Hi I am trying to color front panel indicators according to whether a test has passed or not. I have created a SubVI to do the job, but I am having trouble choosing the right property to set depending on what type of indicator is being colored (ie. numeric or string) so I used a case statement, and am trying to detect what type of reference is being passed in so I can set the right property. I have used a number of the existing posts about this to get this far.
I seem to be unable to determine the type of reference correctly, I am getting errors about being unable to cast to the specified type, when trying to color a string indicator.
I tried to add a screencapture but the system hung, so I have attached the VI, any ideas would be appreciated.
Thanks
Solved! Go to Solution.
08-27-2012 04:06 AM
08-27-2012 08:26 AM
When you compare references, the result tells you whether or not they refer to the same object, it doesn't tell you whether they are the same type.
See modified VI for a technique to use.
08-28-2012 05:58 PM
Great, thanks very much for your time! That works well.