working version with object c++; talks to Rigol