
174
(c) Spectrum Instrumentation GmbH
Detecting the digitizerNETBOX/generatorNETBOX/hybridNETBOX
Option Remote Server
Additionally the discovery procedure can also be started from ones own specific application:
Finding the digitizerNETBOX/generatorNETBOX/hybridNETBOX in the network
As the digitizerNETBOX/generatorNETBOX/hybridNETBOX is a standard network device it has its own IP address and host name and can
be found in the computer network. The standard host name consist of the model type and the serial number of the device. The serial number
is also found on the type plate on the back of the digitizerNETBOX/generatorNETBOX/hybridNETBOX chassis.
As default DHCP (IPv4) will be used and an IP address will be automatically set. In case no DHCP server is found, an IP will be obtained
using the AutoIP feature. This will lead to an IPv4 address of 169.254.x.y (with x and y being assigned to a free IP in the network) using a
subnet mask of 255.255.0.0.
The default IP setup can also be restored, by using the „LAN Reset“ button on the device.
If a fixed IP address should be used instead, the parameters need to be set according to the current LAN requirements.
Windows 7, Windows 8, Windows 10
Under Windows 7, Windows 8 and
Windows 10 the digitizerNETBOX and
generatorNETBOX devices are listed under the
„other devices“ tree with their given host name.
A right click on the digitizerNETBOX or
generatorNETBOX device opens the properties
window where you find further information on the
device including the IP address.
From here it is possible to go the website of the
device where all necessary information are found
to access the device from software.
#define TIMEOUT_DISCOVERY 5000 // timeout value in ms
const uint32 dwMaxNumRemoteCards = 50;
char* pszVisa[dwMaxNumRemoteCards] = { NULL };
char* pszIdn[dwMaxNumRemoteCards] = { NULL };
const uint32 dwMaxIdnStringLen = 256;
const uint32 dwMaxVisaStringLen = 50;
// allocate memory for string list
for (uint32 i = 0; i < dwMaxNumRemoteCards; i++)
{
pszVisa[i] = new char [dwMaxVisaStringLen];
pszIdn[i] = new char [dwMaxIdnStringLen];
memset (pszVisa[i], 0, dwMaxVisaStringLen);
memset (pszIdn[i], 0, dwMaxIdnStringLen);
}
// first make discovery - check if there are any LXI compatible remote devices
dwError = spcm_dwDiscovery ((char**)pszVisa, dwMaxNumRemoteCards, dwMaxVisaStringLen, TIMEOUT_DISCOVERY);
// second: check from which manufacturer the devices are
spcm_dwSendIDNRequest ((char**)pszIdn, dwMaxNumRemoteCards, dwMaxIdnStringLen);
// Use the VISA strings of these devices with Spectrum as manufacturer
// for accessing remote devices without previous knowledge of their IP address
Image 81: Windows screenshot: finding a remote Spectrum device like digitizerNETBOX
Summary of Contents for M2p.59 Series
Page 190: ......