Method | Description | |
---|---|---|
Sensor_SendCmdAndGetResponse1 ( |
Send a command to the specified device hardware and wait for a response. The protocol that is used to communicate with the Go devices via the GoIO_Sensor_SendCmdAndGetResponse() function is documented in the GoIO_ParmBlk class. Note that GoIO_Sensor_SendCmdAndGetResponse() will fail if you send a CMD_ID_START_MEASUREMENTS command while GoIO_Sensor_GetNumMeasurementsAvailable() says measurements are available. So...if you are restarting measurements, you should clear any old measurements in the GoIO Measurement Buffer first by reading in the measurements until the Buffer is empty, or you should call GoIO_Sensor_ClearIO(). Every command supported by GoIO_Sensor_SendCmdAndGetResponse() has an associated response. If no response specific to a command is defined, then the format of the response is GoIODefaultCmdResponse. Some commands have associated parameter blocks defined for them. See GoIO_ParmBlk. If GoIO_Sensor_SendCmdAndGetResponse() returns -1, additional information about a GoIO_Sensor_SendCmdAndGetResponse() error may be obtained by calling GoIO_Sensor_GetLastCmdResponseStatus().
|
|
Sensor_SendCmdAndGetResponse2 ( |
Sensor_SendCmdAndGetResponse2() is the same as Sensor_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.
|
|
Sensor_SendCmdAndGetResponse3 ( |
Sensor_SendCmdAndGetResponse3() is the same as Sensor_SendCmdAndGetResponse1() except that no parameter block is sent to the device. That works fine for commands that do not require parameters.
|
|
Sensor_SendCmdAndGetResponse4 ( |
Sensor_SendCmdAndGetResponse4() is the same as Sensor_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.
|
Method | Description | |
---|---|---|
Diags_GetDebugTraceThreshold ( |
||
Diags_SetDebugTraceThreshold ( |
||
GetDLLVersion ( |
||
GetNthAvailableDeviceName ( StringBuilder devnameBuf, |
||
Init ( ) : |
||
Sensor_CalibrateData ( |
||
Sensor_ClearIO ( |
||
Sensor_Close ( |
||
Sensor_ConvertToVoltage ( |
||
Sensor_DDSMem_CalculateChecksum ( |
||
Sensor_DDSMem_ClearRecord ( |
||
Sensor_DDSMem_GetActiveCalPage ( |
||
Sensor_DDSMem_GetAveraging ( |
||
Sensor_DDSMem_GetCalPage ( |
||
Sensor_DDSMem_GetCalibrationEquation ( |
||
Sensor_DDSMem_GetChecksum ( |
||
Sensor_DDSMem_GetCurrentRequirement ( |
||
Sensor_DDSMem_GetExperimentType ( |
||
Sensor_DDSMem_GetHighestValidCalPageIndex ( |
||
Sensor_DDSMem_GetLongName ( |
||
Sensor_DDSMem_GetManufacturerID ( |
||
Sensor_DDSMem_GetMemMapVersion ( |
||
Sensor_DDSMem_GetMinSamplePeriod ( |
||
Sensor_DDSMem_GetOperationType ( |
||
Sensor_DDSMem_GetRecord ( |
||
Sensor_DDSMem_GetSensorNumber ( |
||
Sensor_DDSMem_GetSerialNumber ( |
||
Sensor_DDSMem_GetShortName ( |
||
Sensor_DDSMem_GetSignificantFigures ( |
||
Sensor_DDSMem_GetTypNumberofSamples ( |
||
Sensor_DDSMem_GetTypSamplePeriod ( |
||
Sensor_DDSMem_GetUncertainty ( |
||
Sensor_DDSMem_GetWarmUpTime ( |
||
Sensor_DDSMem_GetYmaxValue ( |
||
Sensor_DDSMem_GetYminValue ( |
||
Sensor_DDSMem_GetYscale ( |
||
Sensor_DDSMem_ReadRecord ( |
||
Sensor_DDSMem_SetActiveCalPage ( |
||
Sensor_DDSMem_SetAveraging ( |
||
Sensor_DDSMem_SetCalPage ( |
||
Sensor_DDSMem_SetCalibrationEquation ( |
||
Sensor_DDSMem_SetChecksum ( |
||
Sensor_DDSMem_SetCurrentRequirement ( |
||
Sensor_DDSMem_SetExperimentType ( |
||
Sensor_DDSMem_SetHighestValidCalPageIndex ( |
||
Sensor_DDSMem_SetLongName ( |
||
Sensor_DDSMem_SetLotCode ( |
||
Sensor_DDSMem_SetManufacturerID ( |
||
Sensor_DDSMem_SetMemMapVersion ( |
||
Sensor_DDSMem_SetMinSamplePeriod ( |
||
Sensor_DDSMem_SetOperationType ( |
||
Sensor_DDSMem_SetRecord ( |
||
Sensor_DDSMem_SetSensorNumber ( |
||
Sensor_DDSMem_SetSerialNumber ( |
||
Sensor_DDSMem_SetShortName ( |
||
Sensor_DDSMem_SetSignificantFigures ( |
||
Sensor_DDSMem_SetTypNumberofSamples ( |
||
Sensor_DDSMem_SetTypSamplePeriod ( |
||
Sensor_DDSMem_SetUncertainty ( |
||
Sensor_DDSMem_SetWarmUpTime ( |
||
Sensor_DDSMem_SetYmaxValue ( |
||
Sensor_DDSMem_SetYminValue ( |
||
Sensor_DDSMem_SetYscale ( |
||
Sensor_DDSMem_WriteRecord ( |
||
Sensor_GetLastCmdResponseStatus ( |
||
Sensor_GetLatestRawMeasurement ( |
||
Sensor_GetMaximumMeasurementPeriod ( |
||
Sensor_GetMeasurementPeriod ( |
||
Sensor_GetMeasurementTickInSeconds ( |
||
Sensor_GetMinimumMeasurementPeriod ( |
||
Sensor_GetNumMeasurementsAvailable ( |
||
Sensor_GetOpenDeviceName ( |
||
Sensor_GetProbeType ( |
||
Sensor_Lock ( |
||
Sensor_Open ( String deviceName, |
||
Sensor_ReadRawMeasurements ( |
||
Sensor_SendCmdAndGetResponse ( |
||
Sensor_SetMeasurementPeriod ( |
||
Sensor_Unlock ( |
||
Uninit ( ) : |
||
UpdateListOfAvailableDevices ( |
public static Sensor_SendCmdAndGetResponse1 ( |
||
hSensor | [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 GoIO.TIMEOUT_MS_DEFAULT milliseconds. In fact, typical response /// times are less than 50 milliseconds. | |
return |
public static Sensor_SendCmdAndGetResponse2 ( |
||
hSensor | ||
cmd | byte | |
parameters | object | |
timeoutMs | ||
return |
public static Sensor_SendCmdAndGetResponse3 ( |
||
hSensor | ||
cmd | byte | |
response | object | |
nRespBytes | ||
timeoutMs | ||
return |
public static Sensor_SendCmdAndGetResponse4 ( |
||
hSensor | ||
cmd | byte | |
timeoutMs | ||
return |