Getfwversion, 2 getfwversion – Sensoray 118 User Manual
Page 17

Sensoray Model 118 Smart A/D™ Instruction Manual
15
Commands: Board Configuration
6.1.2 GetFWVersion
Returns the Smart A/D firmware version number, times
100. The version number is printed on the EPROM
device that is plugged into the Smart A/D board.
This can be used to automatically determine if enhanced
functions, which may only be implemented in specific
firmware releases, are available.
Driver
// Return the firmware version number from a Smart A/D board.
DOUBLE GetFWVersion( USHORT BasePort )
{
SendByte( BasePort, CMD_EXTENDED );
SendByte( BasePort, XCMD_GET_VERSION );
SendByte( BasePort, 0 );
return (DOUBLE) ReadWord( BasePort ) * 0.01;
}
Example
// Get a board’s firmware version number.
DOUBLE MyFWVersion = GetFWVersion( MyBasePort );
Command: (240),(5),(0)
Response:
(VersionMSB),(VersionLSB)