‎08-09-2008 06:44 AM
‎08-09-2008 07:10 AM - edited ‎08-09-2008 07:13 AM
What are the specs for the camera using the serial port? I would have expected TCP to be much faster than serial communication.
However, if you do want to use the serial port, you should be able to communicate with it and receive the image using the available examples. I should probably ask if you have used LabVIEW serial communication before.
In any case, look within the Help menu and select Find Examples. Do a search on "serial". Double-click on the work serial in the box below search. It will list approx 9 examples. Select the top one called "Advanced Serial Write and Read.vi"
Select the appropriate Visa Resource Name (COM port) and configure the port appropriately for maximum speed, according to the manufacturer's recommendations (specs). You can also play with the input buffer size You will need to select if you write with a termination character or not (push buttons). It is the carriage return.
Your data will be read as a string, so it may not look right. That's okay... It will most likely be hexadecimal characters. You will then need to convert this to hexadecimal numbers and write it to a binary file. If you need help, simply post the character string that you read from the serial port so that we can provide assistance.
Start with this and let us know how it goes.
R
‎08-09-2008 07:18 AM - edited ‎08-09-2008 07:19 AM
‎08-09-2008 07:38 AM
‎08-09-2008 08:13 AM
‎08-09-2008 08:47 AM
Hosangadi wrote:
VGA Camera-----Unknown Protocol------>Datalogger(Programmable)--------RS232---------->PC
I have APIs for camera to capture Images in my Datalogger which I will call in my firmware and API returns Image data in a Buffer.I also have Serial Port APIs to send both string and data.I tried to send small strings from datalogger to PC and read it using Advanced Serial Read.vi it works fine, but when I tried to send Image data about 4.5KB I couldnt receive anything. Also pls let me know whether I can use IMAQ functions as I have IMAQ modules.I am not directly dealing with Camera I communicate with the Datalogger. I think you all clear about my need now!
‎08-09-2008 09:17 AM
‎08-09-2008 03:54 PM
‎08-09-2008 06:31 PM
‎08-09-2008 07:33 PM
If you open up Hyperterminal, do you see any data coming in? Are you sure you are using the right kind of cable whether it is a straight through cable or null modem?
Try using Hyperterminal to debug the communications first. Once you have it working there, and you know you have the right kind of cable and the communication settings correct, then you can use that information to get the LabVIEW serial read/write VI's working.