01-12-2010 07:16 AM
hey,
maybe you could help me with my problem -
I try to explain it in english- if anybody could help me in german ....???
I haven't a lot of experienc in Labview - I'd like to conect an usb cam with
labview - the cam use the visca protokoll -
could anybody give's me a VI who discribes this???
any experience there??
thanks a lot
lg
Dietmar
01-12-2010 07:26 AM
Hi Dietmar,
do you have a description for your device? Do you know which commands you have to send over RS232?
Mike
01-12-2010 07:37 AM
Hey Mike,
thanks first for your fast answer.
sorry I forgot the details
The cam i have to use is maxx vision 480 usb
the command to send are 4 different hex - signals
yes i have a discription of the cam - see the attached file
thanks
Dietmar
01-12-2010 09:20 AM
The VISCA protocol that camera uses operates over a standard RS232 bus. Thus, the regular VISA functions will work, assuming your computer has a serial port. If you don't have one, you'll need to get one. A USB<-->Serial converter is probably the easiest way to do this, or you can get a plug-in card. There are examples that ship with LabVIEW showing you how to do serial communication using VISA.
As far as the communication protocol itself, it's basically just a series of bytes, which is spelled out in the manual. The first byte is the header, which contains the source and destination address. This is followed by the message bytes. The last byte is a termination byte. So, for example, for a camera at address 1, the IF_Clear command would be 81 01 00 01 FF. The camera should respond with 90 50 FF to indicate completion of the command. Implementing this with the VISA commands is pretty straightforward. You can use an array of U8s or you could use a string in hex format. See attached example for an idea.
01-19-2010 08:41 AM
Hey thanks for your answer,
i tried the example - but i have more questions - sorry
in the atteched vi is an VISA resource name - is this the comport where i connect the cam?
who should i made the adjustment for the visa resource?
thank's a lot
lg
d.
01-19-2010 09:09 AM
dh191l wrote:in the atteched vi is an VISA resource name - is this the comport where i connect the cam?
Yes.
who should i made the adjustment for the visa resource?
I don't understand the question. There are no "adjustments" done to a VISA resource. Are you referring to the serial port settings? Those should match the settings that the instrument is set to.
01-19-2010 09:26 AM
hey i add a few screen shots
when i start the attached vi from you - i'll get an error 😞
i also attach a screen shot from the control sw from the cam
01-19-2010 09:39 AM