I'm looking for support from someone that owns an instrument that supports SCPI Service Requests, to run a trace on the VISA traffic.
This is to support my attempt to add this functionality to PST.. Experimental event / trigger support for Pico SCPI labTool - 1: investigate .
My project has this functionality:
- it knows when it has to send the notification to the host system
- it does not know how to send it over usbtmc, mostly:
- I have a hard time understanding
- what data I should send back (I think the STATUS BYTE),
- in what format (I could not find it in the specifications),
- and if it should send it over the USB common endpoint or trigger endpoint
My ask
If you have a SCPI instrument with these options:
- SCPI / VISA
- USBTMC (prefered, if not, then GPIB or VXII also have a comparable service request mechanism)
- service requests functionality available
To run an example that uses service requests, and to capture traffic with NI I/O Trace (or the variant of the VISA version you use).
If you have LabVIEW, there is an example VI that uses this:
Help -> Find examples -> Search
Keyword: service -> Search
Open SQR Event Handling
Before running, select your instrument.
In the SCPI string, enter a SCPI command that would use the SRQ mechanism of your instrument.
If you don't know a command, I will try to work with you, using the program guide of your instrument.
this post says it should be 0x81 + the STB.
(ggabe , Gough Lui , baldengineer maybe you have experience?)