Here is some additional information related to your request:
There’s 2 levels of communication here. Unlike with TSP link or TSP net where we can directly reference the nodes in the system and the lead node handles divvying out the responses, we have to explicitly tell the 6221 to communicate back and forth with the 2182A before communicating with the PC.
The SYST:COMM:SER:SEND sends a command to the 2182A. If that command is a query like TRAC:DATA? The 2182A places the requested information into the output buffer of the 2182A. The 6221 still has to read that information with the SYST:COMM:SER:ENT? Command which grabs the info from the 2182A output buffer and puts it in the 6221 output buffer so that it can be read to the PC. The SYST:COMM:SER:SEND command itself is not a query, nothing is put in the output buffer of the 6221, so when you try to read in python, there’s no response to read from the 6221 and an error is produced.
The code should do the following:
Write(SYST:COMM:SER:SEND “TRAC:DATA?”) – tell the 6221 to tell the 2182A to put the data in its output buffer
Query(SYST:COMM:SER:ENT?) – tell the 6221 to check for output from the 2182A and put the response in the 6221 output buffer where we can read it.