10-10-2013 06:50 AM
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
Solved! Go to Solution.
10-10-2013 01:34 PM
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
10-11-2013 04:36 AM
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
10-11-2013 09:16 AM
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
10-16-2013 12:49 PM
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.
10-23-2013 04:59 AM
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
10-23-2013 06:16 AM
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
10-24-2013 12:55 PM
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.
10-25-2013 01:56 AM
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