Download SL1000 Control API User`s Manual - Electro
Transcript
3.10 Measurement Condition Settings and Queries 1 Query or Set Sampling Time int SxSetAcqSpan( SX_HNDL_GROUP hGrp, double second); ERR SetAcqSpan( HNDL hGrp, double second ); Description Sets the measuring time of the unit group specified by hGrp to the number of seconds specified by the second parameter. This setting is invalid if an external sampling clock is being used. 3 Parameters A unit group handle The measuring time in seconds Return Value Returns zero if the function succeeds and a nonzero error code if the function does not succeed. int SxGetAcqSpan( SX_HNDL_GROUP hGrp, double *second ); ERR GetAcqSpan( HNDL hGrp, ref double second ); Description Function Details hGrp second 2 4 5 Queries the measuring time (in seconds) of the unit group specified by hGrp. The measuring time is specified with the number of measurement group 1 measuring time. App Parameters hGrp second A unit group handle The measuring time in seconds Return Value Returns zero if the function succeeds and a nonzero error code if the function does not succeed. Query or Set Trigger Mode int SxSetTrigMode( SX_HNDL_GROUP hGrp, int trigMode ); ERR SetTrigMode( HNDL hGrp, TRIGMODE trigMode ); Description Sets the trigger mode of the measuring group specified by hGrp to the mode specified by trigMode. Parameters hGrp trigMode A unit group handle SX_TRIG_NORMAL: Normal mode SX_TRIG_SINGLE: Single mode SX_TRIG_NSINGLE: Single (N) mode Return Value Returns zero if the function succeeds and a nonzero error code if the function does not succeed. int SxGetTrigMode( SX_HNDL_GROUP hGrp, int *trigMode ); ERR GetTrigMode( HNDL hGrq, ref TRIGMODE trigMode ); Description Queries the trigger mode of the measuring group specified by hGrp. Parameters hGrp trigMode A unit group handle Where to store the trigger mode SX_TRIG_NORMAL: Normal mode SX_TRIG_SINGLE: Single mode SX_TRIG_NSINGLE: Single (N) mode Return Value Returns zero if the function succeeds and a nonzero error code if the function does not succeed. IM 720320-01E 3-29 Index