Jump to content
Sign in to follow this  
wannabecontroller

Help with refnum

Recommended Posts

So i have taken some items from an example and of course they work just fine

 

When i try and recreate them myself they dont.... naturally

 

I have created a bool type refnum 

However when i create a property node and select value on my version of it, it gives me "value" as a variant data type

In the example the property node value has type bool so it works fine

I dont understand why i cant change it bool type from variant

Any help?

Thanks

Ref.PNG

Share this post


Link to post
Share on other sites

The difference in the Value output type can be caused by the mechanical switching mechanism that is configured on the boolean.

I don't have LabVIEW on the PC I am on now and I can never remember their names properly, but only the top row of the mechanical switching mechanism will give you green boolean value.

Share this post


Link to post
Share on other sites

The FP control is set to "Include Data Type" if the property node is "strict" and will be a boolean output from the property node. You will see a red cross in the bottom left corner of the control in this state. If "Include Data Type" is unchecked, there will be no cross and the output of the node will be a variant as no type information is defined for the control..

 

image.png.51ba55173fd1a20d358f7744111d9ca1.png

Edited by ShaunR
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.