Files
DP44/DataPRO/SLICECommands/.svn/pristine/21/210f0cac7c1d524ca359c4be4f43ce6bf0745f60.svn-base
2026-04-17 14:55:32 -04:00

39 lines
1.4 KiB
Plaintext

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];
}
}
}