Ich bediene ein Rigol DS4054 Oszilloskop via Ethernet und pyVISA. Das klappt soweit auch wirklich hervorragend. Lediglich das Auslesen der eigentlichen Rohdaten (waveform) bereitet mir Probleme.
Konventionelles Abfragen (s.u.) gibt mir eine wunderbare Liste mit Werten - die scheinen mir allerdings Käse und nicht das Signal, das ich auf dem Display beobachten kann.
Code: Alles auswählen
data1 = my_scope.query(":WAV:DATA?\n")
--> Mache ich da etwas falsch, vergesse ich irgendetwas?
Der Ansatz, mir das Rohformat zu schnappen scheitert leider an meinen fehlenden Informatikkenntnissen:
Code: Alles auswählen
my_scope.write(":WAV:DATA?","\n")
data2 = my_scope.read_raw()
Code: Alles auswählen
'#9000001400\xac\xa9\xaa\xa7\xa7\xa4\xa4\xa1\xa2\x9e\x9f\x9c\x9d\x99\x9a\x96\x97\x93\x93\x90\x91\x8e\x8e\x8b\x8b\x88\x89\x85\x85\x81\x83\x7f\x7f||yyvvstppnnkkhhefcc`a^^\\\\ZZWXUVTTRRPQNOMMLMJLIJIIHIGHGGEFEFEDFEGEGFGGHGIHJIJIKKLKMMNNPORQSRUUWWYY[Z]]__bbedggjillonqqutwwzz}}\x80\x7f\x83\x83\x86\x85\x89\x88\x8c\x8c\x8e\x8f\x92\x91\x94\x93\x97\x97\x9a\x99\x9d\x9c\x9f\x9f\xa2\xa2\xa5\xa5\xa7\xa8\xaa\xa9\xac\xac\xae\xad\xb1\xb0\xb3\xb2\xb5\xb5\xb7\xb5\xb8\xb8\xba\xb9\xbb\xbb\xbd\xbc\xbe\xbd\xbf\xbf\xc0\xbf\xc1\xc0\xc2\xc1\xc2\xc2\xc2\xc2\xc3\xc2\xc4\xc2\xc4\xc4\xc2\xc3\xc2\xc3\xc2\xc3\xc1\xc1\xc3\xc2\xc0\xc2\xc0\xc1\xbf\xc0\xbe\xbf\xbd\xbe\xbc\xbc\xba\xba\xb9\xb9\xb7\xb7\xb5\xb6\xb3\xb4\xb1\xb2\xaf\xb0\xad\xae\xab\xac\xa9\xa9\xa6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zwwttqqnnkliiffcdaa__\\]Z[XXVVTURSPQOPMMLLJKJJHIHIGHFGFGEEGEFFEEGFHFHHGHJHJIKJLKMLOMPOQQRSTTVVXXZZ]\\_^aadceehhlknnqpssvvyy||\x7f\x7f\x82\x82\x85\x85\x88\x87\x8b\x8b\x8e\x8e\x91\x90\x93\x93\x96\x96\x99\x99\x9c\x9b\x9f\x9e\xa1\xa2\xa4\xa4\xa7\xa6\xa9\xa9\xab\xab\xae\xad\xb0\xaf\xb2\xb2\xb4\xb4\xb6\xb6\xb7\xb7\xb9\xb9\xbb\xba\xbc\xbb\xbe\xbc\xbe\xbe\xc0\xbf\xc1\xc1\xc0\xc1\xc2\xc1\xc2\xc1\xc3\xc2\xc3\xc2\xc4\xc4\xc2\xc3\xc2\xc4\xc2\xc3\xc1\xc3\xc1\xc2\xc0\xc2\xc0\xc1\xbf\xc0\xbe\xbf\xbd\xbe\xbc\xbd\xbb\xbb\xb9\xb9\xb7\xb8\xb6\xb6\xb4\xb4\xb2\xb2\xb0\xb1\xae\xae\xac\xac\xa9\xa9\xa7\xa7\xa4\xa5\xa1\xa1\x9e\x9f\x9c\x9c\x99\x9a\x96\x96\x93\x94\x90\x91\x8e\x8e\x8a\x8b\x88\x88\x85\x85\x82\x82\x7f\x7f{|xxvvsrppnnjkgieecc``\n'
Daher meine Frage in puncto Rohformat - wie komme ich aus diesem was-auch-immer-was-das-ist von data2 zu meinen Werten?
Vielen Dank!
Chrisse