01-14-2011 04:26 PM
hi
i am getting eabo timeout error after i use ibrdf
in particular i am writing a jpeg file (from instrument screen capture)
a file is written (over 100k) but i guess it is corrupt because it cannot be opened (actually one program irfan view in windows can open it, it must be doing something special), i suspect the file is not closed properly with the timeout error? ibrdf is supposed to close the file.. im confused
i played around with timeout settings but without any luck
any help appreciated, thx
01-17-2011 05:16 PM
Hi daniel kh,
How large are the JPEG files and what values have you tried for the timeout?
Perhaps even a screenshot of the error might shed some light on the issue as well.
Thanks!
01-18-2011 11:44 AM
the jpeg is around 135KB
i have tried adjusting the timeout in measurement and automation explorer (300sec and disabled) and also using ibconfig, no luck
as i have stated these jpeg output files open fine in windows xp using this program called irfan
however if i try to open the file with paintbrush, i get the error "paint cannot read this file- this is not a valid bitmap file, or its format is not currently supported"
a bigger issue is other team members use mac and windows 7 and they both cannot open the file using the regular program associated with their os (preview on mac, whatever the default is on windows 7)
wonder what irfan does to open the file..
any ideas? thx
01-18-2011 12:09 PM
Hi daniel kh,
Sounds like the file is being sent over but no termination event is occurring and therefore causing a timeout error. Does your device use end of string termination or does it assert the EOI line?
Thanks!
01-18-2011 05:16 PM
hi christopher
how can i check what my device use for termination?
i am using this command:
ibdev (board, gpibAddr, NO_SAD, T10s, 1, 0);
end message enable, eos=0 <- i believe those are default values
how do i fix this?
thx
i have added the jpg file if you would like to review it
01-31-2011 01:03 PM
Hi Daniel Kh,
The jpeg didn't come through, but have you tried using the eos enable? Also, what instrument are you communicating with? The manual should say what data format this image comes in as and show what the termination character (if any) is used.
Thanks!
Regards,
01-31-2011 01:58 PM
hi christopher
how do i set eos enable from this command
ibdev (board, gpibAddr, NO_SAD, T10s, 1, 0);
do i use eos=4?
-
i am using an old tektronix csa 8000, the command is simply sending
:disp:data? jpg
which i follow with
ibrdf (handle, path);
02-01-2011 02:10 PM
Hi Daniel Kh,
Set the EOS character by looking at this KnowledgeBase
http://digital.ni.com/public.nsf/websearch/3AA75CCAC94E18BB862564F00079D2AD?OpenDocument
The EOS character for your device is a line feed character 'lf'.
Though your device seems to send out both LF and EOI. I'm not sure why the EOI is not terminating the read. (perhaps a bad cable?) Either way, see if the setting of the EOS works. As for the ibdev configuration, take a look at:
http://linux-gpib.sourceforge.net/doc_html/r1297.html
Tells you what the parameters should be.
I found the termination by looking at the programming manual for your device under the section named "Terminating".
Hope this helps!