Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems Transferring Setup from PC to Rigol DS2072A DSO using MessageBasedSession.

I'm using c# .net to communicate with the DSO using MessageBasedSession. So far have been able to upload Event Tables from the DSO to pc ok.
Below shows the System Setup Command: SystemSetup.jpg

 

  I can save the DSO Configuration data to the PC:

Code: [Select]
 string loadCommand = ":SYSTem:SETup?";
                mbSession.Write(loadCommand); 
                mbSession.ReadToFile("D:\\DSOSetupRTF.stp"); /
 
but not back again to the DSO - nothing happens:
Code: [Select]
  loadCommand = ":SYSTem:SETup ";
                    mbSession.Write(loadCommand);
                     mbSession.WriteFromFile("D:\\DSOSetupRTF.stp");

 

I wonder if MessageBasedSession is correct for this purpose? The only other reference I've found on this is the following post  (here😞

systSavePost.jpg

They are, I think, using Linux (or some such) - but I would also think that .Net should have a corresponding function. So I guess my question is what can I use in .NET to get this working, as it seems to do in the above post?

 

0 Kudos
Message 1 of 1
(2,186 Views)