ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(4,644 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
(4,615 Views)
Use the node in the attached .vi
Message 3 of 7
(4,603 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
(4,574 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
(4,545 Views)
Brian,
 
          This is the one I have been looking for. Thank you so much 🙂
 
-Vasanth.
Ya Ya
0 Kudos
Message 6 of 7
(4,479 Views)

Nick,

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

Please clarify me...

- Partha ( CLD until Oct 2027 🙂 )
Message 7 of 7
(4,468 Views)