LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visca protokoll

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

 

0 Kudos
Message 1 of 8
(4,410 Views)

Hi Dietmar,

do you have a description for your device? Do you know which commands you have to send over RS232?

 

Mike

0 Kudos
Message 2 of 8
(4,406 Views)

Hey Mike,

thanks first for your fast answer.

sorry I forgot the details

The cam i have to use is maxx vision 480 usb

maxx vision homepage

 

the command to send are 4 different hex - signals

 

yes i have a discription of the cam - see the attached file

 

thanks

 

Dietmar 

0 Kudos
Message 3 of 8
(4,400 Views)

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. 

0 Kudos
Message 4 of 8
(4,380 Views)

Hey thanks for your answer,

i tried the example - but i have more questions - sorry Smiley Mad

 

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.

 

 

0 Kudos
Message 5 of 8
(4,332 Views)

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.

0 Kudos
Message 6 of 8
(4,325 Views)

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

0 Kudos
Message 7 of 8
(4,321 Views)
Did you try searching for that error? If you had, you would have seen that the problem would be fixed by installing NI-VISA. It's on your driver DVD.
0 Kudos
Message 8 of 8
(4,315 Views)