AddSignalWithInterval¶
-
virtual void IAcquisition::AddSignalWithInterval(const std::tuple<PSignal, double> item) = 0¶
Adds signal with specified sample interval to collection; it is allowed to add signals multiple times.
- Parameters
item – Tuple containing the signal (element 0) and the sample interval in seconds (element 1).
- Throws
CInvalidArgumentException
– Signal cannot be added to this collection.CUnknownObjectException
– Signal is unknown, belongs to other controller.CInvalidOperationException
– Acquisition instance is not in state EAcquisitionState::Idle or EAcquisitionState::Prepared.COutOfResourcesException
– Maximum number of signals reached.CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CObjectDestroyedException
– Object is destroyed.
- Remarks
The sample interval value is rounded to the nearest supported sample interval.