NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem calling Tcl script from TestStand, which contains "package" command

David B,

Here is the latest version of the dll. It still has not been fully tested but give it a try.


Test Engineer - CTA
Download All
Message 11 of 15
(1,907 Views)

Thanks for the files Jon.

 

It seems to work fine, can load packages without any problems now. However, it only works with tcl 8.4 and not 8.3 as before, but I guess that’s ok.

 

The next step was to check if it’s possible to run two scripts in parallel using threads in teststand with the CallTCL step. It didn’t work. I get a run time error in SeqEdit.exe and TS shuts down. Is this a known limitation? And is there a workaround for it?

 

/David
0 Kudos
Message 12 of 15
(1,871 Views)
David,

Sorry about the delay in responding back to your question. The dll has not been tested for multiple threads and might not be thread-safe. I would recommend locking your threads when you run in parallel mode to possibly avoid the crash.

Test Engineer - CTA
0 Kudos
Message 13 of 15
(1,843 Views)

Hello anyone that is still interested in this thread.  The dll file as previously stated, in trying to call tcl 8.4 which is no longer available.  Is there source files available for this dll that I can modify so that I can point it to the latest version of tcl (ActiveTcl8.5.11.0.295402-win32-ix86-threaded)?

 

 

0 Kudos
Message 14 of 15
(1,357 Views)

What version of TestStand are you using?

 

TestStand 4.1 added support through a Tcl Example to call Tcl code.  This is the recommended approach.  However, to use Tcl 8.5, you will have to change a language file resource to point to use the tcl85.dll.  I don't have a machine with TestStand in front of me, but I believe it is in the Examples.ini file.  I believe the documentation for the example describes how to use it, but I can check when I get to my work machine.

0 Kudos
Message 15 of 15
(1,338 Views)