From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Identify typedef

Is there a way to identify typedef as strict or just plain typedef programatically? I could not find a thread on this in forums.
Ya Ya
0 Kudos
Message 1 of 7
(3,816 Views)

Only idea I have: Try to change a property that you cannot change for a strict typedef. If you get an error, it is a strict typedef. If it is not, you can change the property's value back to the value it had before the change.

I think that no common property exists that you can use for this. This prevents you from doing it the generic way.

Does anyone have a better idea?

Regards, Guenter

0 Kudos
Message 2 of 7
(3,787 Views)
Use the node in the attached .vi
Message 3 of 7
(3,775 Views)

Thank you both for your help. My next question in the same line is


Can we dynamically open a strict typedef cluster and save it to typedef
cluster?

 



 

Ya Ya
0 Kudos
Message 4 of 7
(3,746 Views)
It's the same as looking to see what type the control is, you just write to the property node instead of reading it.  Open a VI reference to the control, use the property node CtrlVIType and wire in a constant of typedef to it.  Just like the VI I have attached.
Brian Coalson

Software Engineer
National Instruments
0 Kudos
Message 5 of 7
(3,717 Views)
Brian,
 
          This is the one I have been looking for. Thank you so much 🙂
 
-Vasanth.
Ya Ya
0 Kudos
Message 6 of 7
(3,651 Views)

Nick,

Is it a Private property, I mean, NOT available in LV 7.1 ?

Please clarify me...

- Partha ( CLD until Oct 2024 🙂 )
Message 7 of 7
(3,640 Views)