LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to ... do all these thing .. i'm doing Labview under time pressure right now

i'm a newbie in labview could someone please let me know which function to use

because i have to make there module before new year 

 

this program is use for locate the x,y,z position for robot by using CCD camera

case I :  when press connect device make the program to connect the camera to capture a picture / video

case II:  input number in X,Y offset (millemetre) and make them go plus the centroid in millemeter in the cluster on the top and then when i press the Calculate XYZ

             for Robot botton > bring the output to somekind of table in the end of the module (or another suggestion)

case III: when press capture image make the program capture the picture and sent XY centroid

case IV: How to push the End Program botton and make the program go off

 

now i try using program by input the picture in bmp but the fact is i have to accuire the picture by CCD and make it process right away

sorry for my english thought let me know if you aren't clear any of this

Download All
0 Kudos
Message 1 of 8
(3,425 Views)

The first thing that you will need is to be able to acquire images in LabVIEW.  What type of camera do you have?  Specifically, what type of communication protocol does it use (GigE, Firewire, USB, etc.)?  You will need to have the proper driver for the given communication protocol in order to acquire images.  You will also probably need the Vision Development module to analyze the centroid of your image. 

 

The rest of your program sounds like it just needs an event structure tied to different button push events.  Take a look at the link below for hep on event structures:

 

Event Structure 

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/structures/event-structure.html

 

I don't quite understand what you are doing in step 2, but it sounds like pretty simple math functions.  Do you already know how to make your robot move?    What hardware are you using?

 

 

Nick Keel 

Applications Engineering 

National Instruments

Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments
0 Kudos
Message 2 of 8
(3,350 Views)

now i can add the value of offset in the robot position cluster but .. now i try to use the button to function them with event structure but it's doesn't work

can you suggest me anything ? i was confused where to crop the event structure

0 Kudos
Message 3 of 8
(3,318 Views)

The way that you have your code set up, you would pretty much need to put the whole VI, with the exception of reading the image file, in the event structure.  Keep in mind that the event structure also needs to be in a loop.  That is explained pretty well in the above document.  It looks like you have the Vision Development Module, so you should be able any approved camera type.  What type of camera are you using?

 

 

Nick Keel 

Applications Engineering 

National Instruments

Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments
0 Kudos
Message 4 of 8
(3,254 Views)
here's the camera & robot i'm using
Download All
0 Kudos
Message 5 of 8
(3,181 Views)

It looks like you will be using the analog output of the camera.  This would require you to have an analog frame grabber card to communicate with the IMAQ driver and LabVIEW.  Below is a link to the Analog Camera product page.  It has links to the specific cards that you can choose from at the bottom.

 

 

Analog 

https://www.ni.com/en-us/shop/category/machine-vision.html?productId=118305

 

 

Nick Keel 

Applications Engineering 

National Instruments

Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments
0 Kudos
Message 6 of 8
(3,129 Views)

i've got the CCD camema already (it belongs to my college thought) the only problem i've got now is i can't use the buttons to operate the software now i've to run them by press run button but what i want is to use the OK button on the screen instead

0 Kudos
Message 7 of 8
(3,116 Views)

How are you connecting the camera to your computer?  Do you have any National Instruments hardware?  Are you acquiring images from your camera in LabVIEW?  This camera does not appear to have a trigger line, so you may need to start the camera manually.  You could start your acquisition into LabVIEW with an OK button, which wouldn't control the camera directly; it would just control the data input into LabVIEW. 

 

You may need to look into the manual for the camera and see if there is any way to trigger it.  We may be able to use you frame grabber card or a DAQ card to send it a digital trigger if the camera supports it.

 

 

Nick Keel 

Applications Engineering 

National Instruments

Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments
0 Kudos
Message 8 of 8
(3,060 Views)