NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically access parameter values for a .net module using c#

I have a UI where I can open sequence files to view and run.  The UI was written in c#.  Each of the steps in the sequence files call into .net modules also.  Each call has three parameters. One the paramters is the name of a file that I want to open from the UI using notepad is the user wishes.  

 

How do I get access to the parameter values of the step module programatically?

 

I have access to the step module object using the fololowing line of code:

 

Module myModule = this.seqFileViewMgr.SelectedSteps[0].Module;

 

Once I have the module object, I cannot seem to find a way to get an array of the paramter values via the TestStand API. 

Does anyone know how this is done?

 

Thanks and regards,

 

Sean

 

0 Kudos
Message 1 of 3
(4,796 Views)

Hello spthornton

 

Please view the following link: 

 

http://digital.ni.com/public.nsf/allkb/129785F0AFABB90A8625686E005AE407

 

I hope this helps.  Happy holidays! 

 

 

Amanda B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(4,764 Views)

DotNetModule dotNetModule = myModule as DotNetModule;

 

Hope this helps,

-Doug

0 Kudos
Message 3 of 3
(4,677 Views)