MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_04.cs
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Viresco.Mates;
namespace unit_tests
{
[TestClass]
public class mates_test_04
{
[TestMethod]
public void TestMethod()
{
using (Mates mates = new Mates("mates_REMOTE.mon", 1))
{
try
{
Dac5Node dac = mates.NewDac5Node(NodeId.mates_dac5_mk1_1);
// Set the first channel to the half of the range.
dac.SetDacRaw(0, 65536 / 2);
}
catch
{
Console.Write("Cannot discover node.\n");
}
}
}
}
}