메소드 | 설명 | |
---|---|---|
Device_SendCmdAndGetResponse1 ( |
Send a command to the specified device hardware and wait for a response. Each device type has a command protocol that is unique to that device type. The command protocol used by NGIO_DEVTYPE_LABQUEST_AUDIO devices is a subset of the protocol used by NGIO_DEVTYPE_LABQUEST devices. This protocol is documented in the NGIOSourceCmds class. Additional documentation can be found in NGIOSourceCmds.h. Note that NGIO_Device_SendCmdAndGetResponse() will fail if you send a NGIO_CMD_ID_START_MEASUREMENTS command while NGIO_Device_GetNumMeasurementsAvailable() says measurements are available. So...if you are restarting measurements, you should clear any old measurements in the NGIO Measurement Buffer first by reading in the measurements until the Buffer is empty, or you should call NGIO_Device_ClearIO(). Every command supported by NGIO_Device_SendCmdAndGetResponse() has an associated response. If no response specific to a command is defined, then the format of the response is NGIODefaultCmdResponse. Some commands have associated parameter blocks defined for them. If NGIO_Device_SendCmdAndGetResponse() returns -1, additional information about a NGIO_Device_SendCmdAndGetResponse() error may be obtained by calling NGIO_Device_GetLastCmdResponseStatus().
|
|
Device_SendCmdAndGetResponse2 ( |
Device_SendCmdAndGetResponse2() is the same as Device_SendCmdAndGetResponse1() except that no response block is returned by the function(even though some sort of response always comes back from the device unless there is a communication failure). This is reasonable if the caller only cares about when the function succeeds or fails, which can be determined from the return value.
|
|
Device_SendCmdAndGetResponse3 ( |
Device_SendCmdAndGetResponse3() is the same as Device_SendCmdAndGetResponse1() except that no parameter block is sent to the device. That works fine for commands that do not require parameters.
|
|
Device_SendCmdAndGetResponse4 ( |
Device_SendCmdAndGetResponse4() is the same as Device_SendCmdAndGetResponse1() except that no parameter block is sent to the device and no response block is returned by the function. That works fine for commands that do not require parameters when the caller is only interested in success or failure.
|
메소드 | 설명 | |
---|---|---|
CloseDeviceListSnapshot ( |
||
DeviceListSnapshot_GetNthEntry ( |
||
Device_AcquireExclusiveOwnership ( |
||
Device_CalibrateData ( |
||
Device_CalibrateData2 ( |
||
Device_ClearIO ( |
||
Device_Close ( |
||
Device_ConvertToVoltage ( |
||
Device_DDSMem_CalculateChecksum ( |
||
Device_DDSMem_ClearRecord ( |
||
Device_DDSMem_GetActiveCalPage ( |
||
Device_DDSMem_GetAveraging ( |
||
Device_DDSMem_GetCalPage ( |
||
Device_DDSMem_GetCalibrationEquation ( |
||
Device_DDSMem_GetChecksum ( |
||
Device_DDSMem_GetCurrentRequirement ( |
||
Device_DDSMem_GetExperimentType ( |
||
Device_DDSMem_GetHighestValidCalPageIndex ( |
||
Device_DDSMem_GetLongName ( |
||
Device_DDSMem_GetManufacturerID ( |
||
Device_DDSMem_GetMemMapVersion ( |
||
Device_DDSMem_GetMinSamplePeriod ( |
||
Device_DDSMem_GetOperationType ( |
||
Device_DDSMem_GetRecord ( |
||
Device_DDSMem_GetSensorNumber ( |
||
Device_DDSMem_GetSerialNumber ( |
||
Device_DDSMem_GetShortName ( |
||
Device_DDSMem_GetSignificantFigures ( |
||
Device_DDSMem_GetTypNumberofSamples ( |
||
Device_DDSMem_GetTypSamplePeriod ( |
||
Device_DDSMem_GetUncertainty ( |
||
Device_DDSMem_GetWarmUpTime ( |
||
Device_DDSMem_GetYmaxValue ( |
||
Device_DDSMem_GetYminValue ( |
||
Device_DDSMem_GetYscale ( |
||
Device_DDSMem_ReadRecord ( |
||
Device_DDSMem_SetActiveCalPage ( |
||
Device_DDSMem_SetAveraging ( |
||
Device_DDSMem_SetCalPage ( |
||
Device_DDSMem_SetCalibrationEquation ( |
||
Device_DDSMem_SetChecksum ( |
||
Device_DDSMem_SetCurrentRequirement ( |
||
Device_DDSMem_SetExperimentType ( |
||
Device_DDSMem_SetHighestValidCalPageIndex ( |
||
Device_DDSMem_SetLongName ( |
||
Device_DDSMem_SetLotCode ( |
||
Device_DDSMem_SetManufacturerID ( |
||
Device_DDSMem_SetMemMapVersion ( |
||
Device_DDSMem_SetMinSamplePeriod ( |
||
Device_DDSMem_SetOperationType ( |
||
Device_DDSMem_SetRecord ( |
||
Device_DDSMem_SetSensorNumber ( |
||
Device_DDSMem_SetSerialNumber ( |
||
Device_DDSMem_SetShortName ( |
||
Device_DDSMem_SetSignificantFigures ( |
||
Device_DDSMem_SetTypNumberofSamples ( |
||
Device_DDSMem_SetTypSamplePeriod ( |
||
Device_DDSMem_SetUncertainty ( |
||
Device_DDSMem_SetWarmUpTime ( |
||
Device_DDSMem_SetYmaxValue ( |
||
Device_DDSMem_SetYminValue ( |
||
Device_DDSMem_SetYscale ( |
||
Device_DDSMem_WriteRecord ( |
||
Device_Frm_AllocateCollectionFrames ( |
||
Device_Frm_CopyRawMeasurements ( |
||
Device_Frm_FreeCollectionFrames ( |
||
Device_Frm_GetCapturedFrameRange ( |
||
Device_Frm_GetInterframeDelay ( |
||
Device_Frm_GetNumCollectionFramesAllocated ( |
||
Device_Frm_GetNumMeasurementsAvailable ( |
||
Device_Frm_GetQuickAndDirtyCapturedFrameRange ( |
||
Device_Frm_RetireCapturedFrame ( |
||
Device_GetChannelRange ( |
||
Device_GetLatestRawMeasurement ( |
||
Device_GetMaximumMeasurementPeriod ( |
||
Device_GetMeasurementPeriod ( |
||
Device_GetMeasurementTick ( |
||
Device_GetMinimumMeasurementPeriod ( |
||
Device_GetNumMeasurementsAvailable ( |
||
Device_GetOpenDeviceName ( |
||
Device_GetProbeType ( |
||
Device_IsRemoteCollectionActive ( |
||
Device_Lock ( |
||
Device_NVMemBlk_GetAddrRange ( |
||
Device_Open ( |
||
Device_ReadRawMeasurements ( |
||
Device_SendCmdAndGetResponse ( |
||
Device_SetMeasurementPeriod ( |
||
Device_UncalibrateData ( |
||
Device_Unlock ( |
||
Diags_GetDebugTraceThreshold ( |
||
Diags_SetDebugTraceThreshold ( |
||
GetDLLVersion ( |
||
GetDeviceTypeFromDeviceName ( String deviceName, |
||
GetParentDeviceHandleFromChildName ( String childDeviceName, |
||
Init ( ) : |
||
IsDeviceExclusivelyOurs ( |
||
OpenDeviceListSnapshot ( |
||
SearchForDevices ( |
||
Uninit ( |
public static Device_SendCmdAndGetResponse1 ( |
||
hDevice | [in] handle to open device. | |
cmd | byte | [in] command code. |
parameters | object | [in] cmd specific parameter block |
response | object | [out] response block |
nRespBytes | [out] num of bytes passed back in the response block. /// Caller does not need to initialize this with the size of response block(as unmanaged code does) because the dotNET /// wrapper does so. /// | |
timeoutMs | [in] # of milliseconds to wait for a reply before giving up. Most devices should reply to /// almost all the currently defined commands within NGIO.TIMEOUT_MS_DEFAULT milliseconds. In fact, typical response /// times are less than 50 milliseconds. | |
리턴 |
public static Device_SendCmdAndGetResponse2 ( |
||
hDevice | ||
cmd | byte | |
parameters | object | |
timeoutMs | ||
리턴 |
public static Device_SendCmdAndGetResponse3 ( |
||
hDevice | ||
cmd | byte | |
response | object | |
nRespBytes | ||
timeoutMs | ||
리턴 |
public static Device_SendCmdAndGetResponse4 ( |
||
hDevice | ||
cmd | byte | |
timeoutMs | ||
리턴 |