Products > Test Equipment
Tek TDS Hardcopy GPIB C
(1/3) > >>
EVlab:
Hi all!

I’m trying to transfer a hardcopy (bitmap-image) from my TDS644B to my PC running Debian Linux.
Scope and PC are connected via an Agilent 82357B. Programming is done using plain C (libgpib).

I’m able to communicate with the scope and take readings and transferring data. So far, so good :).
For the hardcopy action, the scope is switch to “talk-only” mode and there is a libgpib-function called “ibrdf” that should write the received data to a file directly.
And here my problem starts.

Ibrdf writes a file, but there is only partial data of the hardcopy in it.
I assume, that there is some kind of a synchronization problem.
Thus I started to monitor the GPIB bus status lines to wait for some kind of action if the TDS wants to send data and then call ibrdf.
But I had no success.

Can anyone help out (or give me a hint)?
There are some programming examples on the web, but they all use “fancy new languages” like Phyton, etc.
Furthermore they use high level stuff like VISA.
I would like to stick with plain C.

Best;
Andy Watson:
How big is the resulting data file? Is it 64k, or a multiple thereof?

EVlab:
I have no idea.
I would expect with 8bit-color-depth: 640x480=370200byte + 14byte header + 40 byte info-block for am BMP file.
MarkL:
Try increasing the timeout to a large value, like 30 seconds.

I had some problems using the perl library and I was getting half a printout from an HP spectrum analyzer.  This was several years ago but if I recall, there was some issue that the transaction had exceeded the timeout, but it was not reported as an error because *some* data was received.
Lukas:

--- Quote from: EVlab on August 06, 2014, 01:11:40 pm ---
Furthermore they use high level stuff like VISA.
I would like to stick with plain C.

--- End quote ---
C and VISA aren't exclusive. Just find the visa.h (propably included in your adapter's driver package) and link your application to the visa dll.
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod