Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone help me make a VI for the attached Serial Camera?

OOOOOPs. So here it is again.......with AA 0D still nothing
0 Kudos
Message 11 of 16
(1,654 Views)
What serial data is the complex labview VI Sending out. I put an O scope on the values and found the characters producing the wrong binary output how can I get A = 1010?
 
image1 is AA
image2 is AA 0D
 
you can see the two AA's in the first one then a termination character.
As well as with the AA 0D. Nomatter what configuration I put it in the termination character stays the same.
 
Anyways I was just curious!
0 Kudos
Message 12 of 16
(1,632 Views)
Dear electric5,

So from the data sheet, it looks like  "A single command consists of 6 continuous single byte RS-232 transmissions. The following is an example of SYNC (AA0D00000000h) command (p. 3 of the data sheet you attached).

If the device is expecting 6 byte commands,and you are sending AA 0D (2 bytes), I think your device will interpret the input that you show in your setup picture as commands structured like this: (AA0DAA0DAA0D). What happens if you try sending the sync command (AA0D00000000h) over and over?

Best Regards,

~Nate
0 Kudos
Message 13 of 16
(1,616 Views)
I have tried that too and it also does not work. The serial port is not outputing the correct form of data to talk to the camera. I am currently trying to figure out how to get the serial data to be output in hex rather than ascii. Let me know if you have any suggestions.
0 Kudos
Message 14 of 16
(1,607 Views)
Hi electric,
                 Let the output be in ascii.Use "string to byte array" function.Now u have an output array  containing the 307200(640x480) bits.Use a reshape array function to convert this into an image keeping the aspect ratio in mind.If you are getting ascii values then u r work is almost done.Lemme know If you are still stuck
0 Kudos
Message 15 of 16
(1,596 Views)
So we have gotten the acknowledge from the camera now we just need to send some more commands to get it to send the image data. Hopefully all goes well thanks for your help everyone!
0 Kudos
Message 16 of 16
(1,588 Views)