how to send SCPI command with driver based communication?

5 vues (au cours des 30 derniers jours)
Andreas
Andreas le 27 Fév 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.

Réponses (1)

Vinod
Vinod le 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.

Catégories

En savoir plus sur Instrument Connection and Communication dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by