LoggerGetSamplingSetting


Function

Get the number of samples, transformation speed, and repeats.

Format

Ret = LoggerGetSamplingSetting ( AppId , SamplingTimes , ScanClock , RepeatTimes , StartTrigger , StopTrigger , DelayTime )

Parameters

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

Specify Application ID retrieved by LoggerOpenApplication.

SamplingTimes [ VB.NET: UInteger ] [ C++: unsigned long * ] [ C#: out uint ]

Specify the address where the sampling count is stored.

If infinite sampling is set, SamplingTimes returns 0.

ScanClock [ VB.NET: Single ] [ C++: float * ] [ C#: out float ]

Specify the address where the scan clock is stored in μsec units.

RepeatTimes [ VB.NET: Double ] [ C++: double * ] [ C#: out double ]

Specify the address where the repeat count is stored.

If SamplingTimes =0, RepeatTimes returns 1.

StartTriggerType [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]

Specify the address where the type of start trigger should be stored.

StopTriggerType [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]

Specify the address where the type of stop trigger should be stored.

DelayTime [ VB.NET: UInteger ] [ C++: unsigned long * ] [ C#: out uint ]

Specify the address where the delay count is stored.

Return Value

Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]

Definition

Return code

[Dec]

Description

LOGGER_ERR_SUCCESS

0

Normal completed

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Get the number of samples, transformation speed, and repeats.

Example

Get the sampling times, scan clock, repeat times, start trigger, stop trigger, and delay times.

VB.NET

Dim Ret As Integer
Dim SamplingTimes As UInteger
Dim ScanClock As Single
Dim RepeatTimes As Double
Dim StartTrigger As UShort
Dim StopTrigger As UShort
Dim RepeatTimes As UInteger
Ret = LoggerGetSamplingSetting(AppId, SamplingTimes, ScanClock, RepeatTimes, StartTrigger, StopTrigger, DelayTime)

 

C++

long Ret;
unsigned long SamplingTimes;
float ScanClock;
double RepeatTimes;
unsigned short StartTrigger;
unsigned short StopTrigger;
unsigned long RepeatTimes;
Ret = LoggerGetSamplingSetting(AppId, &SamplingTimes, &ScanClock, &RepeatTimes, &StartTrigger, &StopTrigger, &DelayTime);

 

C#

int Ret;
uint SamplingTimes;
float ScanClock;
double RepeatTimes;
ushort StartTrigger;
ushort StopTrigger;
uint RepeatTimes;

Ret = logger.GetSamplingSetting(AppId, out SamplingTimes, out ScanClock, out RepeatTimes, out StartTrigger, out StopTrigger, out RepeatTimes);

 

See Also

LoggerSetSamplingSetting