LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ibrdf with eabo timeout

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

 

0 Kudos
Message 1 of 8
(4,059 Views)

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!

 

Chris T.
0 Kudos
Message 2 of 8
(4,031 Views)

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

0 Kudos
Message 3 of 8
(4,019 Views)

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!

Chris T.
0 Kudos
Message 4 of 8
(4,015 Views)

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

0 Kudos
Message 5 of 8
(4,001 Views)

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,

Chris T.
0 Kudos
Message 6 of 8
(3,916 Views)

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);    

0 Kudos
Message 7 of 8
(3,910 Views)

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!

Chris T.
0 Kudos
Message 8 of 8
(3,886 Views)