Jump to content
Sign in to follow this  
wannabecontroller

Creating a type def with more then one item

Recommended Posts

I cant seem to find an example of this.

I have seen in several programs where a type def has multiple things included in it

Perhaps a numeric constant and a string constant

How can i create this?

Thanks

type.PNG.9410049de6b07d515611a7e1471a7df8.PNG

Edited by wannabecontroller

Share this post


Link to post
Share on other sites

The term you are looking for is a cluster, equivalent to a C struct more or less.

You create a type definition like this: https://zone.ni.com/reference/en-XX/help/371361R-01/lvhowto/creating_type_defs/

once you are in the control editor for the type definition, what you want to do is drop down a cluster control.

ctrl+f for "clusters" on this document for a video: https://www.ni.com/getting-started/labview-basics/data-structures

or in tutorial form: https://www.ni.com/tutorial/7571/en/

 

Depending on where you're at, you may have access to NI online training, or other resources found on this page: https://labviewwiki.org/wiki/Training

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.