Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Camera - Profile Selection

Solved!
Go to solution

Can anybody tell me if there is a possibility of using the I/O Pins of the NI 17XX Smart Cameras for "Product Selection" or "Profile Selection" ?? If yes, which of those pins can be used and How?

 

For example, if there are 2 pins, it means i can store 4 different inspections on the Smart Camera. Based on the input bits, the specific Inspection number will be initiated when the Smart Camera restarts. 

 

0 Kudos
Message 1 of 7
(4,336 Views)

Hello Medianix,

 

I will have to try this out on my end and get back to you. Would you consider the possibility of using a 'Run LabVIEW VI' step to get this done? 

 

Regards,

Vivek Nath 

Applications Engineering

National Instruments 

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 2 of 7
(4,314 Views)

Hi,

 

The answer is yes.

 

Are you programming the smart camera with LabVIEW or with Vision Builder?

If you're using the smart camera with LabVIEW, we provide VIs to read/write these IO lines.

If you're using Vision Builder, the functionality is built-in Vision Builder. Which version do you have?

 

Thanks,

 

-Christophe

Message 3 of 7
(4,296 Views)
I want to use VBAI. Currently i have version 3.0, but if i am not mistaken, each smart camera ships with its own copy of the latest version of VBAI
0 Kudos
Message 4 of 7
(4,217 Views)
Solution
Accepted by topic author Medianix

Since the Smart Camera I/O returns booleans and the Product Select State requires a number or string to choose which product to select, you could use a System Global Variable and at the end of each of your inspections update this with the state of the two input lines on the Smart Camera. Then, in the Product Select State, you can read the value of these two System Globals in the attached Run LabVIEW Step (which has already been compiled for the Smart Camera). This VI will convert the two boolean values to a number (0 to 3) which can be used for product select.

 

Hope this helps,

Brad

Message 5 of 7
(4,201 Views)
To clarify your second question, each smart camera DOES ship with the latest version of VBAI.
Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 6 of 7
(4,180 Views)
Dear Brad and Vivek, many thanks for your responses. I havent had a chance to check out the VI by myself, but your ideas make me clear now.
0 Kudos
Message 7 of 7
(4,151 Views)