Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5362

How to capture a .gif file from a spectrum analyzer and save the file in PC

$
0
0

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();       


Viewing all articles
Browse latest Browse all 5362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>