09-13-2011 04:07 AM - edited 09-13-2011 04:09 AM
09-13-2011 08:01 AM
There is no generic procedure for doing so. You need to look at the instrument's documentation on how this is done. What instrument do you have? Have you looked in IDNET to see if an instrument driver already exists to get you started?
09-13-2011 07:54 PM
Hi,
Thanks for the reply.
I use the R&S FSV. And, I have read the document of this instrument, but in the document, there is no details to make it works. I have installed the NI VISA driver, I will use the NI VISA's commands and SCPI to control the instrument.So, I want to use commands again to transfer the calibration file to the instrument, to compensate the loss. Normally, we transfer the file from instrument to the local PC. But, this time I will transfer the file from PC to instrument. I'm confused. Please give me your hands. By the way, I use VS2008 to do this project.
Thanks again.
09-13-2011 10:31 PM
If the instrument does not implement this functionality, it does not matter what language or orotocol you use. Check with R&S to see if there is something in the manual that you might have missed.
09-14-2011 03:31 AM
I find the method to do it.
I summary the produre below:
1. Open source file from host controller(fopen)
2. Get size of file(fseek)
3. Create command header(:MMEM:DATA)
4. Write file to the instrument(viWrite)
Thank you for the replies.
10-22-2021 04:51 AM
Dear Zhou Guixi,
I want to do exactly the same thing you mentioned. Could you please explain the commands more?
10-26-2021 11:38 AM
You might try looking at the manual on this page. If you do not find what you want, try searching for SCPI and pick the desired topic.