Siglent SDG810 10MHz Arbitrary Function Generator

Manual - Page 199

For SDG810.

PDF File Manual, 212 pages, Read Online | Download pdf file

SDG810 photo
Loading ...
Loading ...
Loading ...
Programming Guide
55
status = viOpen (defaultRM, head, VI_LOAD_CONFIG, VI_NULL, &instr);
if (status<VI_SUCCESS)
{
printf ("An error occurred opening the session\n");
viClose(defaultRM);
}
status = viPrintf(instr, "*idn?\n");
status = viScanf(instr, "%t", outputBuffer);
if (status<VI_SUCCESS)
{
printf("viRead failed with error code: %x \n",status);
viClose(defaultRM);
}else
printf ("\ndata read from device: %*s\n", 0,outputBuffer);
status = viClose (instr);
status = viClose (defaultRM);
system("pause");
return 0;
}
Run result.
4.2 Example of VB
Environment: Win7 32bit system, Microsoft Visual Basic 6.0
The function of this example: Use the NI-VISA, to control the device with USBTMC
and TCP/IP access to do a write and read.
Loading ...
Loading ...
Loading ...