06-11-2015 03:22 PM
I am trying to read trace points through a spectrum analyzer (Agilent (HP) 8563E). It is pretty old, by the way.
When using the test panel to get the traces, I get all data points from just one click on the "Read" button.
However, using C on CVI, I am getting only 11 bytes per reading operation:
sprintf(buffer_file,"TDF P;TRA?\n");
status = viWrite(instr, (ViBuf)buffer_file, strlen(buffer_file), &retCount);
/* for (bit = 0; bit < 50; bit++)
{
status = viRead(instr, (ViBuf)buffer_file, strlen(buffer_file), &retCount);
printf("%s\n", buffer_file);
}
I tried to put a for loop just to see what happens. When performing successive read operations, I get 11 bytes per reading, while I was expecting to get all traces points by one reading operation. The print screen of the results are attached.
Also, I was clearing the buffers before writing/reading.
I am using GPIB (VISA). Any help will be appreciated.
Thanks!
06-11-2015 07:06 PM
06-12-2015 09:58 AM
Hi Dennis,
I tried disabling it, but had no success. I'm actually pretty curious about why it's not working.
I got it working with the drivers.
Thanks for answering!
06-15-2015 02:29 PM
Hi,
I am having the same problem with another instrument (ANDO AQ6317B Spectrum Analyzer). When reading the trace, I just get 11 bytes instead of all trace points.
Is there any parameter that can limit the number of bytes that are being read? I already disabled the termination character and nothing changes. The termination character used by the instrument is \r\n.
Regards,
Felipe
06-15-2015 02:52 PM