I’m trying to connect a HP 33120A wave-generator via RS232 to my computer.
I wrote a very simple c program, which works pretty file (see hp33120.c)
when I’m trying to put the content of the program into a C++ class and provide this to root the rs232-io behaves very strange:
The device has problems to interpret the code, so I put a logic analyser to the TX-line and put the output in the attachement. As you can see I tried to write “SYSTEM:REMOTE\n”. In case of the simple c program it works fine, running over CLING with the test-script it generates strange bit-patterns at the beginning (here are two bit which should not be), because of this everything is shifted and the code cannot be interpreted correctly anymore. I tried to make workarounds with usleeps, but its not working.
Please tell me if you have any hint
testRS232.C (281 Bytes)
RS232Link.h (1.61 KB)
RS232Link.cpp (3.14 KB)
hp33120a.c (4.58 KB)