You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a python program in a computer with Windows that is connected to a Keysight Infiniivision oscilloscope (DSOX-4024A) with an USB. Basically my program applies the write(...) to configure the oscilloscope so that the signal is inside the display and then reads some values with query(...), and then repeats this process a lot of times with different signals. The problem is that, sometimes when i execute the query(...) i get a Timeout error, but this doesn't happen everytime, it happens occasionally without following any apparent pattern.
The error is the following:
As you can see, the error always happens when i do the oscilloscope.query(...).
I checked the pyvisa documentation and then realised the problem may be that i had to define the termination_character, as i couldn't find it in the programming guide of this oscilloscope what character i had to use i am using '\n' for the moment, like this:
If the issue is transient, it is not a termination character issue.
What can happen is that the instrument is taking longer to process the operation you requested. It can sometimes take some time to an oscillscope to switch of measurement type for example.
If the issue is transient, it is not a termination character issue. What can happen is that the instrument is taking longer to process the operation you requested. It can sometimes take some time to an oscillscope to switch of measurement type for example.
Instrument details
Output of
pyvisa-info
I'm running a python program in a computer with Windows that is connected to a Keysight Infiniivision oscilloscope (DSOX-4024A) with an USB. Basically my program applies the write(...) to configure the oscilloscope so that the signal is inside the display and then reads some values with query(...), and then repeats this process a lot of times with different signals. The problem is that, sometimes when i execute the query(...) i get a Timeout error, but this doesn't happen everytime, it happens occasionally without following any apparent pattern.
The error is the following:
As you can see, the error always happens when i do the oscilloscope.query(...).
I checked the pyvisa documentation and then realised the problem may be that i had to define the termination_character, as i couldn't find it in the programming guide of this oscilloscope what character i had to use i am using '\n' for the moment, like this:
oscilloscope = resources.open_resource(osc_connected)
oscilloscope.read_termination = '\n'
oscilloscope.write_termination = '\n'
But it stills fail ocassionally, as you can see in the following image:
The text was updated successfully, but these errors were encountered: