Hello,
I am using Excel VBA for instrumentation with visacomm. I have sissues taking back the instruments to local mode after completeion of the data collection. For example, the bleow code is for Recalling a state keysight power meter N1912A and move to local mode. For some reason this is not taking back the power meter to Local mode.
Dim PMO As VisaComLib.FormattedIO488
Set PMO = New VisaComLib.FormattedIO488
Set PMO.IO = ioMgr.Open("PMO")
PMO.WriteString "*RCL 4"
PMO.WriteString "SYST:LOC" <As per manual this command takes back to Local mode
PMO.IO.Close
Set PMO.IO = Nothing
Thanks,
Leyo