10-29-2009 11:55 AM
Hello TS fellows!
I succeedd calling a local sequence from within C# but I can not determine how to change the code to call the sequence on a remote host.
Any suggestions?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NationalInstruments.TestStand.Interop.API;
namespace WindowsFormsApplication1
{
public partial class CallRemoteForm : Form
{
Engine myEngine;
Execution myExecution;
public CallRemoteForm()
{
InitializeComponent();
myEngine = new Engine();
}
private void btnExecute_Click(object sender, EventArgs e)
{
SequenceFile mySequenceFile = myEngine.GetSequenceFile(tbSequenceFile.Text, 0);
myExecution = myEngine.NewExecution(mySequenceFile, "Sequence1", null, false, 0, null, null, null);
}
private void btnClearResult_Click(object sender, EventArgs e)
{
tbSequenceResult.Text = myExecution.ResultStatus.ToString();
}
}
}
best regards
weltaran
Solved! Go to Solution.
11-03-2009 08:09 AM
Hello weltaran,
TS Remote Execution works in the following fashion:
You have a local engine with a local exectution which executes a sequence. This sequence-call can be configured in
the sequence editor to be either executed in a new local thread or execution, or on a remote machine, which can be configured in the
sequence-call step calling the sequence-file. This requires to set the appropriate station options on the remote machine and to configure DCOM and Firewall settings
as described in chapter 5 of the TS ref manual. To Publish a remote TS-Engine to other computers in order to access them with directX on a client-computer
is not recommended and tested on our side.
best regards
Marco Brauner NIG