Re: [Itifg-tech] need help configure shutter
Brought to you by:
mastein1
|
From: <M....@go...> - 2008-05-09 13:48:57
|
Hello,
little bit late answer, but better late than never :-)
There is definitely no image (or not the whole image) read in.
Perhaps extending the first sleep a bit (0.04 is less)?
Can You send me the whole output in /var/log/messages.
Sorry, no further idea at the moment :-(
matthias
_________________________________________________
Matthias Stein,
GOM Gesellschaft fuer Optische Messtechnik mbH,
Mittelweg 7-8, 38106 Braunschweig, Germany
E-mail: M....@go..., Internet: http://www.gom.com
Tel.: +49 (0)531 39029-0, Fax: +49 (0)531 39029-15
Amtsgericht Handelsregister Braunschweig, HRB-Nr.: 3131
Geschaeftsfuehrer: Dr.-Ing. K. Galanulis, Dr.-Ing. D. Winter
This e-mail is confidential. If you have received it in error, you are on
notice of its status.
Please notify us immediately by reply e-mail and delete this message from
your system.
Please do not copy it or use it for any purposes, or disclose its contents
to any other person;
to do so could be a breach of confidence.
Thank you for your co-operation.
"Shashidhara.Mara
the"
<sh...@gi....k To
r> M....@go...
cc
03.05.2008 12:10
Subject
Re: Re: need help configure shutter
Please respond to
"Shashidhara.Mara
the"
<sh...@gi....k
r>
Dear MStein,
I did the following debugging process,
[root@203 itifg-7.2.1]# /sbin/rmmod itifg
[root@203 itifg-7.2.1]# /sbin/insmod ./itifg_g.o
then i ran my code for the shutter,
while(input(-1)==""){
image_par(1,"send","0x82 0x88"); # setting CCD to external trigger mode
image_par(0,"run");
p "test";
image_par(1,"send","0x82 0x89"); # sending trigger signal using serial port
#image_par(0,"run");
sleep(0.04);
p "test1";
image_get(0,image);
sleep(1);
}
This is the output at terminal
1320.FOURC> qdo test1.mac
Reading file "/home/admin/macros/temp/test1.mac".
test
test1
image_get(): Not enough columns in array image.
PC-DIG 0: Can't do read() to start acquisiton: No data available.
test
test1
image_get(): Not enough columns in array image.
The /var/log/messages file is as follows:
May 3 04:03:01 203 su(pam_unix)[8393]: session opened for user news by
(uid=0)
May 3 04:03:01 203 su(pam_unix)[8393]: session closed for user news
May 3 19:29:19 203 su(pam_unix)[9715]: session opened for user root by
admin(uid=500)
May 3 19:40:04 203 kernel: itifg[I]: 1 device(s) found.
May 3 19:40:04 203 kernel: itifg[I]: configure device 0.
May 3 19:40:04 203 kernel: itifg[I]: PC-DIG frame grabber board found.
May 3 19:40:04 203 kernel: itifg[I]: interface control regs not aligned.
May 3 19:40:04 203 kernel: 9
May 3 19:40:04 203 kernel: 1|0|1|1|0|0|0|0|1|0|1|1|1|0|1|1|0|0|1|1|0|0|
May 3 19:40:04 203 kernel: itifg[I]: version 7.2.1-0.
May 3 19:40:04 203 kernel: itifg[I]: Dec 18 2007 (Linux 2.4.2414dec07).
May 3 19:40:04 203 kernel: itifg[I]: Debug output enabled, debug level is
127 (7f hex)
May 3 19:42:05 203 kernel: 9
May 3 19:42:05 203 kernel: 1|0|1|1|0|0|0|0|1|0|1|1|1|0|1|1|0|0|1|1|0|0|
May 3 19:58:23 203 kernel: 26de00 26de00 256 0
May 3 19:58:24 203 kernel: itifg[N]: timeout while reading frame!
Thank you,
regards,
shashi
--- Original Message ---
>From : M....@go...
To : "Shashidhara.Marathe"<sh...@gi...>
Date : 2008/05/01 Thursday AM 12:00:15
Subject : Re: need help configure shutter
Hello Shashi,
"Shashidhara.Marathe" <sh...@gi...> wrote on 30.04.2008 12:37:05:
> Dear M.Stein,
>
> "Fourc" is the Software( actually it is called SPEC, X-Ray
> Diffraction and Data Acquisition software and FOURC is four-circle
> diffractometer configuration ) used to execute the macros which
> control the CCD. I asked about the 'busy timers' problem with the
> SPEC support team and they have sent me following answer,
>
>
>
> " All I can tell you about the above error message is that when
> operating in "read" mode (vs. "memory-mapped" mode), the image_par(0,
> "run") leads to the following calls to the driver:
>
> 1) an ioctl() with GIOC_CR_SET_STOP
this is in itifgIoctl.c
> 2) a read()
this is in itifgMain.c. I think line 1003 is a hot canidate.
> You can see that those are the calls being made to the driver with
> DEBUG = 128.
Yes, this is what I ask You before. If You remove the normal driver
with 'rmmod itifg' and insert the debugging one with 'insmod ./itifg_g.o'
You can see more debugging output in /var/log/messages.
> The error message you report is due to the read() system call to the
> driver returning an error. You have to look at the driver to find out
> why there is an EBUSY error.
The comment above line 1003 says, that the last operation hasn't finished
yet, perhaps You (or the shutter) are to fast/slow/unsynchronized?
> (Note, you can do a "man errno" or look in /usr/include/asm/errno.h or
> other errno.h files to find what symbolic error is associated with a
> particular message, then you can look for that symbolic error in the
> driver source files.)
>
> Would it make any sense to use memory-mapped mode? (See the pcdig
> help file for details.) "
I think this don't fix the error, it makes it only more difficult to
find.
> Accoding to his answer i should look for driver source file?which
> driver source files i should look for?
See above and let us again try to load the debugging module!
I'm back at Monday, we have a spare day here.
matthias
> Please let me know.
>
>
> Thank you,
> shashi
>
>
> Mr.Shashidhara Marathe
> Ph.D student
> #311,Dept. of Materials Science and Engg.
> Gwangju Institute of Science and Tech.
> 1-oryong-Dong, Buk-Gu, Gwnagju- 500712
> South Korea
> Cell: 010-4619-0231
> PH : +82-62-970-2352
> FAX: +82-62-970-2304
_________________________________________________
Matthias Stein,
GOM Gesellschaft fuer Optische Messtechnik mbH,
Mittelweg 7-8, 38106 Braunschweig, Germany
E-mail: M....@go..., Internet: http://www.gom.com
Tel.: +49 (0)531 39029-0, Fax: +49 (0)531 39029-15
Amtsgericht Handelsregister Braunschweig, HRB-Nr.: 3131
Geschaeftsfuehrer: Dr.-Ing. K. Galanulis, Dr.-Ing. D. Winter
This e-mail is confidential. If you have received it in error, you are on
notice of its status.
Please notify us immediately by reply e-mail and delete this message from
your system.
Please do not copy it or use it for any purposes, or disclose its contents
to any other person;
to do so could be a breach of confidence.
Thank you for your co-operation.
Mr.Shashidhara Marathe
Ph.D student
#311,Dept. of Materials Science and Engg.
Gwangju Institute of Science and Tech.
1-oryong-Dong, Buk-Gu, Gwnagju- 500712
South Korea
Cell: 010-4619-0231
PH : +82-62-970-2352
FAX: +82-62-970-2304
|