01-31-2006 02:22 PM
02-01-2006 04:35 PM
02-27-2006 04:24 PM
I have found a problem in that example that it does not call Tcl_Init before attempting to run a script. Here is a modified version of the DLL used by the step type. Replace your existing DLL with this one, and you should be able to load packages.
Allen P.
NI
02-28-2006 02:04 PM
Allen,
I am unable to use the dll which you provided. When I try to run the NI Tcl example, the Sequence editor window closes with no error messages. Fatal crash of the application. I noticed that the dll which you provided is approximately 64Kb in size while the TSTTCL dll I was using was approximately 277Kb. Do you have any idea why the dll size is somuch smaller for yours?
Thanks
03-01-2006 12:24 PM
03-01-2006 12:45 PM
Try this new DLL and let me know if it works for you. If it does not, can you attach a small TCL script that can reproduce any problems that you see?
Allen P.
NI
03-01-2006 01:17 PM
03-01-2006 02:34 PM
Sorry about the misunderstanding. I was reading the first post, and I thought you were only having trouble with packages. I have only tested this example using 3.0 and higher so far. Are you getting any error messages when it is running?
Allen P.
NI
03-02-2006 07:13 AM
No error messages. It just kills the Sequence Editor and the window disappears all together. I validated the example Tcl sequence with the original dll and it works. Obviously the "package" command does not work with that version of the dll.
11-02-2006 08:14 AM
Hi,
I'm also interested in this, so I hope I can bring this thread back to life.
I want to run a tcl script from teststand, and the NI dll TSTCL.dll looked very promising indeed. However, as apaquett I couldnt get it working with the package command in the tcl file. I have just added the line "package req IxTclHal" to the small example script that came with .dll. IxTclHal is the package I want to load.
The first version of the dll just dont work, no error msg from TS at all.
The second one returns the error "can't find package IxTCLHAL".
The third one returns "Unable to initialize the interpreter" (Error code: -2147467259; User-defined error code. Possible System Error: Unspecified error)
I'm using Teststand 3.1 and tcl83.dll
Any ideas? Right now Im leaning to using labview and calling a external tcl interpreter.
Thanks,
David