Here , we'll see how to interact with the hardware via programming in LabVIEW to obtain images , screen shots of whih have been placed in the previous page.
The following software and toolkits are required:
- LabVIEW 2010(available recent version , Im working with LabVIEW 2010)
- NI Vision Acquisition Software
- NI Vision Assistant for USB based Cameras
Anyway , after installing them (by leaving default settings everywhere unless you know what youre doing) this is what is to be done.
Start LabVIEW
Open a Blank VI
The following steps assume you have basic knowledge of Block Diagrams and Front Panels.
Do the following in the Block Diagram:
All functions >> Vision and Motion >> Vision Utilities >> Image Management >> IMAQ Create (add an image name)
All functions >> Vision and Motion >> NI IMAQdx >> Snap
Do the following in the Front Panel:
Control >> Vision >> Image Display
In the Block diagram wire the "new image" terminal of the IMAQ create block to the "image in" terminal of the Snap block , and its "image out" terminal of the snap block to the image display. Also , wire the error in and error out terminals of the blocks and create indicator at the last block , this helps in knowing any error that might have occured and the corresponding error code so that it can be looked up online or elsewhere.
When complete , you block diagram should look like this :
![]() |
| Block Diagram |
If youre having any trouble , save the above image in png format and load it into LabVIEW , it should automatically recognize the blocks and have it all laid out and ready for execution.
When run successully with the camera hacked as mentioned earlier , you should have something like this for a front panel:
![]() |
| Front Panel |
The next steps would be to process the image obtained and get a point which has to be tracked from one image to the next...


No comments:
Post a Comment