NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to specify a module pathname with a string variable?

Is there a way to specify the "module pathname" property for a C/CVI
Standard Prototype Adapter using a TestStand string variable?

We have three different Test DLLs. Each DLL exports the same functions with
the same prototype. I want to be able to select which one to use based on a
run-time user selection.

TIA,

Bob.
0 Kudos
Message 1 of 4
(3,401 Views)
There is a property "Step.TS.SData.ModulePath" that you could write to possibly do this but you would have to load the DLL dynamically and unload after step completes. This might be more trouble than it's worth. A simpler technique would be to use CVI to "loadexternalmodule" "getexternalmoduleaddr" and call it from within CVI.
0 Kudos
Message 2 of 4
(3,401 Views)
Hello,

Yes Joe is correct. You can use the SData.ModulePath property. Have a look at this knowledgebase for more information: http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/5aa3e65a39e6c08886256b29008366fd?OpenDocument
0 Kudos
Message 3 of 4
(3,401 Views)
Joe & Bob,

Thanks. That works great.

Bob.
0 Kudos
Message 4 of 4
(3,401 Views)