From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

file open based on StationGlobal?

I am working on a sequence that reads strings from a INI file. I would
like to use those strings as my filename called in a DLL action type. I
have stored the strings as Locals variables but I don't know how to specify
the Locals variable as the filename.

The DLL action wants a DLL Pathname to be specified in the Module tab but
I would like to use a dynamic name retrieved from the INI file.

I tried using the Evaluate(string) and the FindFile() expressions but all I
get is a "File Open" popup when I run my sequence.

Can I do what I want using the INI file?

Thanks.

-Steve
--
__________________________________________________________________________
Steve Heitke Phone: 630-378-6337
T
ellabs Operations, Inc. Fax: 630-679-3153
Advanced Test Methods email: heitke@tellabs.com
Bolingbrook, IL 60440 http://www.tellabs.com
__________________________________________________________________________
0 Kudos
Message 1 of 2
(3,718 Views)
Steve,

You can programmatically set the DLL that you want to call. There are
hidden step properties which contain the information that TestStand uses to
call the DLL function. You can view hidden properties by enabling the
option in the Preferences tab of the Station Options dialog under the
Configure menu. Most of the hidden properties are self explanatory,
although they are documented anywhere.

You should look at an example, Dynamically Determine Which Code Module to
Run, which you can download from the examples database at
www.ni.com/support/epd/ Although this example doesn't demonstrate calling
DLLs, you can use the same concepts.

Best regards,
Paul Mueller
NI


Steve Heitke wrote in message
news:38c3bb98@newsgroups.ni.com...
> I am work
ing on a sequence that reads strings from a INI file. I would
> like to use those strings as my filename called in a DLL action type. I
> have stored the strings as Locals variables but I don't know how to
specify
> the Locals variable as the filename.
>
> The DLL action wants a DLL Pathname to be specified in the Module tab but
> I would like to use a dynamic name retrieved from the INI file.
>
> I tried using the Evaluate(string) and the FindFile() expressions but all
I
> get is a "File Open" popup when I run my sequence.
>
> Can I do what I want using the INI file?
>
> Thanks.
>
> -Steve
> --
> __________________________________________________________________________
> Steve Heitke Phone: 630-378-6337
> Tellabs Operations, Inc. Fax: 630-679-3153
> Advanced Test Methods email: heitke@tellabs.com
> Bolingbrook, IL 60440 http://www.tellabs.com
> ____________________________________________
______________________________
0 Kudos
Message 2 of 2
(3,718 Views)