01-29-2007 07:33 PM
01-30-2007 10:37 AM
02-15-2007 10:48 AM
02-15-2007 12:45 PM
Please, if you could. I just need simple examples to start off with ( Call and open forms created in C#.NET, How to read results ( Pass/Fail ), Read/Write to Station Globals, etc. )
Thanks in advance.
02-16-2007 03:34 PM
02-19-2007 02:36 PM
Bobby:
Sorry this took so long. I'm going to attach a zip file. The file contains a C# .NET 2005 project. This project creates a DLL that is called from TestStand and has a form that gets a serial number and bar code from the user. This project reads and writes variables in TestStand using the TS API. It even creates arrays, adds elements to the array and then writes information to them. Included in the zip file is a sequence file "Computer.seq". Check the PreUUT sequence for the call to the .NET assembly. Below is a very simple code snippet that sets result from a dll without the complexities of a Form Class.
If you haven't setup a project like this before spending five-ten minutes on the phone with me may save you a lot of time. If you have questions or would like to talk send me your phone number via email (Steven.McCray@tellabs.com) and I'll call you.
Steve
public
void PreUUT_Dialog_Load(SequenceContext sc){
PropertyObject po; try{
po = sc.AsPropertyObject();
po.SetValBoolean(
"Step.Result.PassFail", 0, true);}
catch (Exception FatalError){
SetTestStandErrorMessage(FatalError);
}
finally{
po =
null;}
}
private
void SetTestStandErrorMessage(Exception FatalError){
PropertyObject po = SequenceContextObject.AsPropertyObject();po.SetValString(
"Step.Result.Error.Msg", 0, FatalError.Message);po.SetValBoolean(
"Step.Result.Error.Occurred", 0, true); if (po != null)po =
null;}
11-14-2017 11:44 AM
Hey,
Did you find any solution about testand & exe/dll?
11-14-2017 02:50 PM
Yes, I sent an example that demonstrated the solution.
Thanks,
Steve
11-21-2017 10:54 AM
Hi,
According to my validations in these days, I cannot find any good way to call exe files from teststand with parameters I need, but I found teststand could regonize .net dll internal function module, and teststand can also provide the channel to edit the parameters for the function module in .NET DLL.
12-05-2017 11:53 PM
Hi,
i am new to TestStand, i want read teststand result in my C# code, guys can you please me out of this