george seifert Posted March 24, 2011 Report Share Posted March 24, 2011 Is it possible to programatically get the IVI class of an IVI control? It's easy enough to determine if the reference type of a control is IVI (Getrefnuminfo.vi), but I can't figure out how to get the class. I'm using LV2010. George Quote Link to comment
hugo_fr Posted March 25, 2011 Report Share Posted March 25, 2011 Hi, Just try this vi : http://www.box.net/shared/dreju7f03g Hugo Quote Link to comment
ShaunR Posted March 25, 2011 Report Share Posted March 25, 2011 (edited) There's a couple of property nodes TypeClass and SubTypeClass which will give you the class names. Is that what you are after? Edited March 25, 2011 by ShaunR Quote Link to comment
george seifert Posted March 25, 2011 Author Report Share Posted March 25, 2011 There's a couple of property nodes TypeClass and SubTypeClass which will give you the class names. Is that what you are after? Thanks, but all the TypeClass property tells me is that it's IVI. Doesn't really help much. I was looking for what type of IVI instrument it is - like DMM or DC power. George Quote Link to comment
hugo_fr Posted March 25, 2011 Report Share Posted March 25, 2011 Thanks, but all the TypeClass property tells me is that it's IVI. Doesn't really help much. I was looking for what type of IVI instrument it is - like DMM or DC power. George The private property 'TypeClass' gives me the correct class : 'IviDmm' or 'IviDCPwr' ... (tried with LV 8.6) Quote Link to comment
george seifert Posted March 25, 2011 Author Report Share Posted March 25, 2011 The private property 'TypeClass' gives me the correct class : 'IviDmm' or 'IviDCPwr' ... (tried with LV 8.6) Interesting. I'll look into it further. I hope LV2010 doesn't have a bug. George Quote Link to comment
ShaunR Posted March 26, 2011 Report Share Posted March 26, 2011 (edited) Interesting. I'll look into it further. I hope LV2010 doesn't have a bug. George That means it has only been assigned a generic class. If you right click on a control (for example) and "select IVI class" then it will return that class you choose. Edited March 26, 2011 by ShaunR Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.