MATLAB Answers

Andreas
0

how to send SCPI command with driver based communication?

Asked by Andreas
on 27 Feb 2017
Latest activity Answered by Vinod
on 4 Mar 2017
An instrument communication is established with device driver (IVI or VXIpnp). A special command has to be sent which is not implemented in IVI/VXIpnp driver. How to send a SCPI command with device driver?
I do not want to disconnect, connect to instrument via interface based driver, send SCPI and switch back.

  0 Comments

Sign in to comment.

1 Answer

Answer by Vinod
on 4 Mar 2017

This depends on a number of things, but mainly if/how the driver and the hardware implement device locking. You can try this - when connected to the instrument using the VXIPnP or IVI driver, create a new VISA object with the resource name of the hardware. FOPEN this and send SCPI commands to the instrument and see if you get errors.
Generally I would not recommend this approach as sending SCPI commands directly while also connected to it using the IVI driver, or even with an external application, might change the settings on the instrument and the driver may not be able to communicate with the instrument as it is not in the state the driver expects it to be in.

  0 Comments

Sign in to comment.