Neofox dll function reference – Ocean Optics NeoFox Engineering Note User Manual
Page 7
NeoFox Communication Interfaces
013-20000-010-04-201211 7
NeoFox DLL Function Reference
int DeviceSetParameter(int hDevice, int ParamType, int dValue)
Description
Sets an integer parameter on the NeoFox.
Parameters
int
hDevice
Handle to an open NeoFox device.
int
ParamType
Unique code for the parameter which is to be set.
int
dValue
Value to be written to the parameter.
Return Value
Number of bytes written to the hardware device in order to issue the set parameter command message. This
includes the command packet overhead in addition to the ParamType code and the dValue payload. At the time
of this writing, the size of this transaction is 20 bytes.
Remarks
Although the dValue parameter is a 4 byte integer, this function should also be used to set short and char type
parameters as well.
int DeviceSetParameterFloat(int hDevice, int ParamType, float fValue)
Description
Sets a floating point parameter on the NeoFox.
Parameters
int
hDevice
Handle to an open NeoFox device.
int
ParamType
Unique code for the parameter which is to be set.
float
fValue
Value to be written to the parameter.
Return Value
Number of bytes written to the hardware device in order to issue the set parameter command message. This
includes the command packet overhead in addition to the ParamType code and the dValue payload. At the time
of this writing, the size of this transaction is 20 bytes.
int DeviceGetParameter(int hDevice, int ParamType, LPTSTR szText)
Description
Reads an integer type parameter from the NeoFox device.