NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

execute bat in teststand

Solved!
Go to solution

Hi users,

 

Situation:

I call from Teststand 4.1 a bat.file that executes a programming software  (FLink.exe) with the corresponding jtag Hardware (RLink from ST Microelectronics), to programm a µController on my testobject.

 

Problem:

the bat file ist executed, but the µController can´t be programmed,because of en errror message of the flink!. But when I call the bat from the explorer it works properly.

 

Has someone experience with such a kind of problem?

 

I would be pleased about an solution.

 

Grettings

Michael

 

Greetings Michael
0 Kudos
Message 1 of 3
(6,367 Views)
Does the batch file assume that the working directory is the same as the batch file?  This might be what is happening.  Go to the <TestStand>\Bin\ directory in a command prompt.  Type the full path to your batch file and run it.  You will likely see the same behavior you are seeing from TestStand.
Message 2 of 3
(6,358 Views)
Solution
Accepted by topic author muemi

I found a solution to my problem with the help of an engineer by NI!

 

I had to change the active directory to the directory were my working Batch-File is executed!

 

see related links:

 

http://digital.ni.com/public.nsf/allkb/D0F75B559DB622B586256BBF007A1B64?OpenDocument

http://digital.ni.com/public.nsf/websearch/365DC2996F67D8AF86256AF000558B90?OpenDocument

 

 

 

Greetings Michael
0 Kudos
Message 3 of 3
(6,341 Views)