init
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using DTS.Common.ICommunication;
|
||||
|
||||
namespace DTS.DASLib.Command.SLICE.RealtimeCommands
|
||||
{
|
||||
public class StartRealtimeMode : RealtimeCommandBase
|
||||
{
|
||||
private bool _bSupportsMultipleSampleRealtime = true;
|
||||
public bool SupportsMultipleSampleRealtime
|
||||
{
|
||||
get => _bSupportsMultipleSampleRealtime;
|
||||
set
|
||||
{
|
||||
_bSupportsMultipleSampleRealtime = value;
|
||||
if (value) { command.Parameter = new byte[1]; }
|
||||
else { command.Parameter = new byte[0]; }
|
||||
}
|
||||
}
|
||||
protected override Commands _Command => Commands.StartRealtimeMode;
|
||||
|
||||
public StartRealtimeMode(DTS.Common.Interface.DASFactory.ICommunication sock)
|
||||
: base(sock)
|
||||
{
|
||||
// don't need to put anything in here ... its presense
|
||||
// tells the firmware that we support multiple-sample
|
||||
// realtime
|
||||
command.Parameter = new byte[1];
|
||||
}
|
||||
|
||||
public StartRealtimeMode(DTS.Common.Interface.DASFactory.ICommunication sock, int timeoutMillisec)
|
||||
: base(sock, timeoutMillisec)
|
||||
{
|
||||
// don't need to put anything in here ... its presense
|
||||
// tells the firmware that we support multiple-sample
|
||||
// realtime
|
||||
command.Parameter = new byte[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user