NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to check the show base class members in teststand programatically using c#

I need to check the checkbox indicating show base class members in teststand using .Net adapter programatically through c#.can I get any help.Using CallMethod , I need to call a method "GetItemByName" .It is only possible by enabling the show Base Class Members  checkbox.Any Help?
0 Kudos
Message 1 of 5
(3,996 Views)

Using large picture file size attachment isn't very friendly try using a format that generates a small size file such as PNG.

 

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,992 Views)

bannerghatta -

 

This is specified by the DotNetModule.MemberFlags property. The DotNetMemberFlags consist of DotNetMemberFlags_Static (0x1) and DotNetMemberFlags_TopLevel (0x2). These can be used individually or you can perform a Bit-Wise OR to use them together.

 

In your case, the Show Base Class Members check box corresponds to the DotNetMemberFlags_TopLevel (0x2). If this flag is set, the box is not checked. If the flag is not set, the box is checked. Thus, you will either want to set DotNetModule.MemberFlags = 0x0 or 0x1 dependent on whether or not you are using a Static Member.

 

Since you seem to be doing a lot with the DotNetModule, here is a link to the DotNetModule Help online.

 

Hope this helps.

Message Edited by Manooch_H on 01-07-2010 09:27 AM
Manooch H.
National Instruments
0 Kudos
Message 3 of 5
(3,978 Views)

Hi Mannoch,

 

If you want to set the check box "Show Base Class Members" you need to pass  DotNetMemberFlags_Static (0x1)

If you set to 0x2 the check box is ! NOT ! enabled.

 

 

I am using TS 4.0

 

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 5
(3,945 Views)

Juergen -

 

I agree with you... that's why in my previous post I stated:

 

In your case, the Show Base Class Members check box corresponds to the DotNetMemberFlags_TopLevel (0x2). If this flag is set, the box is not checked. If the flag is not set, the box is checked. Thus, you will either want to set DotNetModule.MemberFlags = 0x0 or 0x1 dependent on whether or not you are using a Static Member.

 

I apologize if my statement came off as confusing, but it is otherwise correct.

Manooch H.
National Instruments
0 Kudos
Message 5 of 5
(3,942 Views)