Recognizing hardware via USB in LabVIEW :

Ok... so far we have managed to setup the hardware involved (most of it atleast)...
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:
Evaluation copies of the above software is sufficient to get the project up and running since they are fully functional (as far as I know) for 30 days which is sufficient time for us to finish off the work.

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