I want to capture a .gif file from a spectrum analyzer and save the file in PC, but I've got a problem when read data from the instrument. I'm not sure how to format the string got from the instrument , When I use "%s" or "%t" as the read string format the data got from the instrument is truncated.
my code are as follows, could anyone tell me where i am wrong?
char resultsArray[5000];
viPrintf(hSpectrumInstr, ":MMEM:STOR:SCR 'C:PICTURE.GIF'\n");
viQueryf(hSpectrumInstr, ":MMEM:DATA? 'C:PICTURE.GIF'\n", "%t", resultsArray);
printf("%s", resultsArray);
getchar();