36 lines
883 B
C#
36 lines
883 B
C#
using Aurora.Api;
|
|
using Aurora.Api.Devices;
|
|
using AuroraLaser.Coherent.HyperRapid;
|
|
using PropertyTools.DataAnnotations;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO.Ports;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AuroraLaser.IPG.YLPN
|
|
{
|
|
public class LaserYLPNConfig : IDeviceConfig
|
|
{
|
|
[Category("Common")]
|
|
public IConnConfig ConnConfig { get; set; }
|
|
public LaserYLPNConfig()
|
|
{
|
|
ConnConfig = new SerialConnConfig() {
|
|
BaudRate = 19200,
|
|
DataBits = 8,
|
|
StopBits = StopBits.One,
|
|
Parity = Parity.None,
|
|
PortNum = 1,
|
|
NewLine = "\r\n"
|
|
};
|
|
}
|
|
|
|
public static LaserYLPNConfig GetDefaultConfig()
|
|
{
|
|
return new LaserYLPNConfig();
|
|
}
|
|
}
|
|
}
|