Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

VBAI Basler CAM Input/Outputs

Solved!
Go to solution

Hello,

we are using VBAI 2012 and a Basler Scout Camera. We want to read in the digital lines from the Basler Camera and set the digital outputs in the Basler camera. How can we do this? Do we need to configure these lines with DAQmx or directly over the attributes of the camera?

 

Thanks

Oliver

0 Kudos
Message 1 of 9
(5,892 Views)

You would use the IMAQdx attributes to configure and read/write the I/O lines. The Basler camera follows the Standard Features Naming Convention and thus uses the standard model for how the I/O's are manipulated. You can read more about it in the user manual.

 

Eric

0 Kudos
Message 2 of 9
(5,884 Views)

Hello Eric

I tried to initialize a global virtual channel but I didn't find the camera. The camera is shown in the NIDAQmx Device list but not in the data environment.

 

Do you have any ideas?

 

thanks

Oliver

 

0 Kudos
Message 3 of 9
(5,872 Views)

You don't use DAQmx or Virtual Channels. As Blue Cheese said, you use the Read/Write Camera Attribute step in VBAI (located on the first tab). You can access the I/O of the camera from here and read/werite digital lines this way.

 

Hope this helps,

Brad

0 Kudos
Message 4 of 9
(5,868 Views)

Let me clarify.  A camera is not a DAQ device.  Yes, it has inputs and outputs, but these are under the control of the camera, and its API.  In the case of the Basler Scout, the API is GENiCAM, which means you need to depend on the IMAQdx Attributes that are exposed.  You will never see these digital lines showing up as DAQmx resources anywhere.

 

Control of the digital lines of the camera may or may not be exposed.  You have to check this by using the Open Camera, and Enumerate Attributes vis in the IMAQdx palette.  This is going to give you the full list of attributes exposed by the camera, their types, and the read/write status.

 

There may be an attribute that selects which line to use, and then another attribute that selects whether the line is used as an input or an output.  It varies by manufacturer.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 5 of 9
(5,837 Views)

Hi

Sorry I still not understand how this is working.

 

I openend the attribute control and configured two outputs and one input (please see attachment). But where can I set the outputs and where read the inputs?

 

thanks

Oliver

0 Kudos
Message 6 of 9
(5,804 Views)
Solution
Accepted by topic author OZI

Hi Oliver,

 

There should be a Line Value attribute to set the value of the currenty selected Line Selector. The Line Selector acts as a context switch to which line you want to manipulate (the mode or value or other settings).

 

Eric

0 Kudos
Message 7 of 9
(5,802 Views)

The VI I have attached will query your camera for its supported attributes.  You will need to look through the results, and identify the attribute(s) used to control the camera's digital lines.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 8 of 9
(5,777 Views)

Hello

we got it!

 

It was necessary to set up to four attributes but then it was running. We can now read in and write out values.

 

Thanks to everyone for your help

 

greetings

Oliver

0 Kudos
Message 9 of 9
(5,771 Views)