Files
DP44/DataPRO/SensorDB/TSF/TSFSquibFireEntry.cs
2026-04-17 14:55:32 -04:00

81 lines
2.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DTS.SensorDB
{
/// <summary>
/// an entry in the TOM Squib Fire Channels portion of the Start TOM Channel Information section of a TSF
/// an entry can contain
/// rack,module,chan,descrip,id,type,current,delay,durationON,duration,OhmLow,OhmHigh,ISOcode
/// TSF starts number with 1 and squibs are numbered as channels 1-4 on a tom
/// </summary>
public class TSFSquibFireEntry : TSFChannel
{
private int _rack;
public int Rack { get { return _rack; } set { _rack = value; } }
private int _module;
public int Module { get { return _module; } set { _module = value; } }
private int _chan;
public int Chan { get { return _chan; } set { _chan = value; } }
private string _desc;
public string Description { get { return _desc; } set { _desc = value; } }
private string _id;
public string Id
{
get { return _id; }
set
{
if (value.ToLower() == "none") { value = ""; }
_id = value;
}
}
private int _type;
public int Type { get { return _type; } set { _type = value; } }
private double _current;
public double Current { get { return _current; } set { _current = value; } }
private double _delay;
public double Delay { get { return _delay; } set { _delay = value; } }
private bool _durationOn;
public bool DurationOn { get { return _durationOn; } set { _durationOn = value; } }
private double _duration;
public double Duration { get { return _duration; } set { _duration = value; } }
private double _ohmLow;
public double OhmLow { get { return _ohmLow; } set { _ohmLow = value; } }
private double _ohmHigh;
public double OhmHigh { get { return _ohmHigh; } set { _ohmHigh = value; } }
private string _isocode;
public string ISOcode { get { return _isocode; } set { _isocode = value; } }
public enum Fields
{
rack, //%i
module, //%i
chan, //%i
descrip,//%s
id, //%s
type, //%i
current,// %f
delay, //%f
durationON, //%i
duration, //%f
OhmLow, //%f
OhmHigh, //%f
ISOcode//%s
}
}
}