Open LongnoseRob opened 8 months ago
@LongnoseRob I looked into the issue and it appears that pyvisa-sim handling of attributes is quite limited ATM. So the first things to do will be to expand it to support more complex cases (custom getters and setters).
I will add it to my todo list but feel free to beat me to it if you have the bandwidth.
@MatthieuDartiailh I was thinking about "inregtrating" the serial resource from pyvisa-py (which supports pyserials loop://) into the serial resource part of -sim, but have not yet had a deep look into where and how to do it. A mixin comes to mind, but I am not sure if this would be the correct way.
HNY BTW
I am woking on a testbench with pyvisa-sim, and I found with the sim backend,
instr.bytes_in_buffer
for a simulate serial conenction does not work:minimalist setup to reproduce: sim_test.py.txt
Is there an easy way to have this functional in pyvisa-sim?