NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a sequence on a remote computer programmaticylly (using C#)?

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 2
(3,669 Views)
Solution
Accepted by topic author weltaran

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

0 Kudos
Message 2 of 2
(3,629 Views)