Azzera filtri
Azzera filtri

how to send SCPI command with driver based communication?

3 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

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


Scopri di più su Instrument Connection and Communication in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by