EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: iBeta on May 11, 2017, 04:49:31 pm

Title: Problems Transferring Setup from PC to Rigol DS2072A via NI.VISA
Post by: iBeta on May 11, 2017, 04:49:31 pm
I'm using c# .net to communicate with the DSO using NationalInstruments.VisaNS.MessageBasedSession. So far have been able to upload Event Tables from the DSO to pc ok.
The attachment shows the :SYSTem:SETup Command. I can save the DSO Configuration data to the PC, but not back again to the DSO - nothing happens.

Code: [Select]
string loadCommand = ":SYSTem:SETup?";
                mbSession.Write(loadCommand); 
                mbSession.ReadToFile("D:\\DSOSetupRTF.stp"); /
Code: [Select]
  loadCommand = ":SYSTem:SETup ";
                    mbSession.Write(loadCommand);
                     mbSession.WriteFromFile("D:\\DSOSetupRTF.stp");
I've tried other methods to write, ie WriteBytes(n) but no luck. Maybe I should write to Rigol, but no sure if they will help with something like this.