How to convert binary date to numpy values to display using image() in pyqtgraph

27 views
Skip to first unread message

Anand Ramamurthy

unread,
Jul 28, 2016, 2:40:06 AM7/28/16
to pyqtgraph
I am reading waveform data from an oscilloscope using pyvisa. The waveform data is in the form of IEEE binary data. I need to display in a graphicsView widget in Qt. I thought I could use pyqtgraph for that. Any idea how to convert the binary data?

Anand Ramamurthy

unread,
Jul 28, 2016, 2:41:09 AM7/28/16
to pyqtgraph
I meant how to convert binary data to numpy values... not date! 

Vincent Le Saux

unread,
Jul 29, 2016, 5:29:59 PM7/29/16
to pyqtgraph
Hi,

I'm not sure the pyqtgraph forum is the appropriate place to start...

Have you the structure of your binary file? If so, you can use for example the fromfile method of numpy which is pretty straightfoward.

If you are not able to use it properly, post an example file, I'll try to see what I can do for you.

Vincent
Reply all
Reply to author
Forward
0 new messages