Remote control interfaces
R&S
®
NRP2
362
User Manual 1173.9157.02 ─ 03
closesocket(soLink1);
printf("Send *SRE failed.\n");
return(1);
}
else
{
printf("Send *SRE was successfully.\n");
}
//-----------
// Send *IDN?
//-----------
nRet = send(soLink1, "*idn? \r\n ", strlen("*idn? \r\n "), 0);
if (nRet == 0)
{
closesocket(soLink2);
closesocket(soLink1);
printf ("Send *IDN? failed.\n");
return 1;
}
else
{
printf ("Send *IDN? was successfully.\n");
}
//-----------------------
// Receive *idn? Response
//-----------------------
nRet = recv(soLink1, ResponseMessage, MAX_RECV, 0);
if (nRet == 0)
{
closesocket(soLink2);
closesocket(soLink1);
printf("Receive *IDN? response message failed.\n");
}
else
{
//-------------
// Show Answer:
//-------------
ResponseMessage[nRet] = 0;
printf("Response from NRP2: %s", ResponseMessage);
}
//--------------
// Disconnecting
//--------------
closesocket(soLink2);
closesocket(soLink1);
//----------------
Ethernet interface
Summary of Contents for NRP2
Page 1: ...R S NRP2 Power Meter User Manual User Manual 2 1173 9157 02 03 Test Measurement...
Page 20: ......
Page 24: ...Contents R S NRP2 6 User Manual 1173 9157 02 03...
Page 40: ...Putting into Operation R S NRP2 22 User Manual 1173 9157 02 03 Starting the R S NRP2...
Page 352: ...Maintenance R S NRP2 334 User Manual 1173 9157 02 03 Storage...
Page 366: ...Error Messages and Troubleshooting R S NRP2 348 User Manual 1173 9157 02 03 Bootmenu...
Page 382: ...Remote control interfaces R S NRP2 364 User Manual 1173 9157 02 03 USB interface...
Page 394: ...Standard Configurations R S NRP2 376 User Manual 1173 9157 02 03...
Page 422: ...Compatibility Information R S NRP2 404 User Manual 1173 9157 02 03...