LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Community video nugget: Creating and using typedefs

Typedefs are C-structs in LabVIEW, this video shows a basic use case for typedefs and how you can create and use them:


This video is also posted to the new LabVIEW video portal where I will try to post a new video once a month, feel free to create your own videos.

A list of previous nuggets is found here.

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 1 of 2
(3,626 Views)

Ton,

 

well done video explaining the most common intention for creating/using typdefs. One thing i want to add:

Typedefs do not store values, but "only the flavor" of a control. Therefore, typedefs are commonly used for clusters (as shown in the video) but also for enum(eration) controls. For enums, the content (available options) are not the value. The value of an enum is the currently selected option!

 

thanks for your efford, Ton,

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(3,617 Views)