NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand adapters for Tcl

I am raeding NI's Instrumentation newletter and it mentions about extending
teststand adapters to automate other environments, such as HP-VEE, Perl,
Tcl, JAVA etc.

I am interested in knowing more about adapters for Tcl. Anyone has any info?


vishi
0 Kudos
Message 1 of 6
(4,032 Views)
Yes, you can automate your TCL scripts using TestStand. Here is a link to the demo that you can try out and use in your test applications.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EE2B56A4E034080020E74861&p_node=DZ52236&p_submitted=&p_rank=&p_answer=&p_source=External

This example illustrates how you can call TCL scripts from TestStand. TestStand has the ability to call TCL scripts because the TCL interpreter allows you to run scripts programmatically. This example provides a 'C' style wrapper DLL that you can call from TestStand which in turn executes the TCL scripts via the TCL interpreter. A custom step type has been configured to use the TCL wrapper DLL as its module is in this example sequence.
Message 2 of 6
(4,031 Views)
Hi Vishi,

There are a couple of examples on NI's website, one for TCL and another for PERl.

For the TCl goto here http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3EE2B56A4E034080020E74861&p_node=DZ52236&p_submitted=N&p_rank=&p_answer=&p_source=External

for the Perl goto here http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3EC6656A4E034080020E74861&p_node=DZ52236&p_submitted=N&p_rank=&p_answer=&p_source=External
or here
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EE8256A4E034080020E74861&p_node=DZ52195&p_source=external

hope this helps
regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 6
(4,031 Views)
Thanks guys. I will look into it. If I can call my Tcl code from Test Stand,
it will really sweet.


vishi


"Richard McDonell" wrote in message
news:506500000005000000A1D60000-1042324653000@exchange.ni.com...
> Yes, you can automate your TCL scripts using TestStand. Here is a
> link to the demo that you can try out and use in your test
> applications.
>
>
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EE2
B56A4E034080020E74861&p_node=DZ52236&p_submitted=&p_rank=&p_answer=&p_source
=External
>
> This example illustrates how you can call TCL scripts from TestStand.
> TestStand has the ability to call TCL scripts because the TCL
> interpreter allows you to run scripts programmatically. This example
> provides a 'C' style
wrapper DLL that you can call from TestStand
> which in turn executes the TCL scripts via the TCL interpreter. A
> custom step type has been configured to use the TCL wrapper DLL as its
> module is in this example sequence.
0 Kudos
Message 4 of 6
(4,031 Views)
Hi,

Is there any newer information on getting TCL scripts to run from Teststand. I have recently picked up TCl v8.4 and Teststand v3.5. The links on this solution allowed me to download a package containing TSTCL.dll. I can't seem to get it to call my scripts because I'm getting the error "Unknown Error in TSTCL.DLL".

I saw a an update that apparently solved the problems with TCLv8.4 here. I used CallTCL.dll from Teststand, and I can now get the TCL script to run, and I will see changes in it's logfile. However, Teststand now gives me a system level exception (Errorcode: 17502). I have no idea, and I'm going nowhere fast. Can someone point me in the right direction?

Jon
0 Kudos
Message 5 of 6
(3,677 Views)
There were numerous problems with the previous TCL step types that were not kept up to date with changes to ActiveState TCL.  This is currently something I am investigating.  I cannot give you a time frame on the resolution of this, but will post to this page if I get a "beta" version of the step type available.

Kind Regards,
Allen P.
NI
0 Kudos
Message 6 of 6
(3,659 Views)