02-23-2007 06:22 AM
02-26-2007 04:43 PM
Hi iisc,
It sounds like there may be a setting that is incorrect. I looked at the manual for your camera and there are specific settings. I know that you said that you set it as per the manufacturer settings, but I would double check that you have 9600 bps baud, no parity, 8bit data, 1bit Start and Stop, and no Xon/Xoff. Also, this set of bits (8192) that you are getting back, do they form any sort of message or series of characters? Or are they completely random as far as you can tell? If you have any more information about the message you are getting back (I am assuming that every command you send receives the same return message, if I am incorrect please let me know) that would be helpful. Thank you.
-Allison S.
Applications Engineering
02-26-2007 05:05 PM
Hello Allison S,
Thanks a lot for your reply.
I have chacked it onace more after receiving your reply. I have set 9600 Baud Rate, data bits : 8, stop bits 1 and Parity : None, and 10 ms of delay. I am not using any termination string.
I am geeting the same response for every command.... 8192 bytes.... but they are not random. They are \x00\x00\x00.... in repetation. If I choose 'Normal' display format in the 'Test serial settings' panel, it does not show anything, If I choose 'Codes' display format, it shows \00\00\00 in repetation and 'hex' display format it shows 0000 0000 0000 0000 0000 in repetation. I hope you would be able to figure out something from these.
regards,
02-27-2007 11:05 AM
Check your baud rate. If I remember correctly, the baud rate for these cards is fixed at 57.6 kBaud and cannot be changed, no matter what you set in the controls.
Paul
02-27-2007 04:20 PM
I was just browsing the FAQ and saw something that may be related:
IMAQ Serial Read.vi and imgSessionSerialRead read serial data until a termination character is reached. If no termination character is being used they will return an empty buffer. The default size of the IMAQ serial buffer is 8192 KB which is why you see this data.
This is from http://digital.ni.com/public.nsf/allkb/AC2718B38FF2CD5F8625726E00068CA5
Hope that helps...
--steve
03-07-2007 01:45 PM