Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how to starct using LABVIEW to work with PIC16f877 to control operation of nozzles

Could you please teach us how to start using Labview to work PIC16f877 microcontroller to control operation of nozzles.
 
I know this question is to wide. We are at the beginning level of using LABVIEW. We are trying to use LABVIEW and PIC16f877 microcontroller.
 
Please kindly teach us what should we do in the beginning step such as which function or group of functions of LABVIEW we should study first. 
 
Thank you very much.
We are looking forwards to your reply.
 
With my best regards,
 
Panmanas
0 Kudos
Message 1 of 7
(5,026 Views)

I know this question is to wide. We are at the beginning level of using LABVIEW. We are trying to use LABVIEW and PIC16f877 microcontroller.
 
Yes your question is too vague.Please refine it and let us know your application and what do you want as your final output?
0 Kudos
Message 2 of 7
(5,015 Views)

Dear Muks

Our objective is to sort small size, mis-color and mis-surface texture of green soybean pods out of good ones.

We would like to use LABVIEW 8 that we have with PIC 16f877. We would like to take the data from camera which is sent to LABVIEW 8 (to measure surface texture) and VIsion Builder for automated inspection ver 3.5 (to measure size and color) to make decision whether it is godd pod or not good pod. Then we would like to use LABVIEW to communicate with PIC16f877 to control the nozzles to eject air to shoot the not good pod. Now we can measure color of whole pod by Vison Builder and we are studying how to measure surface texture using IMAQ function in LABVIEW.

We would like to ask you

1 how can we send the data from camera to LABVIEW?

2 how can we use LABVIEW to make decision?

3 how can LABVIEW communicate with PIC16f877 to control nozzles? 

May be now you understand our objective and our questions.

So please kindly teach us how we should do. 

 

Thank you very much and we are waiting for your reply.

With my best regards,

Panmanas

0 Kudos
Message 3 of 7
(5,009 Views)

Hi Panmanas,

A lot of the machine vision part of your application will depend on what software you have and what it is exactly that you would like to do. Is there a reason you want to use LabVIEW if you are already using Vision Builder AI?


1 how can we send the data from camera to LABVIEW?

What kind of camera do you have? If you are using a NI frame grabber board then you can use IMAQ to pull images from the camera into LabVIEW. If you have GigE or Firewire you can use IMAQdx. If you are using USB we also have a driver for that. There are examples for each of these.
You can get to these examples by going to Help > Find Examples...

2 how can we use LABVIEW to make decision?

If you have Vision Development Module (VDM), you can write a Vision Builder AI script and choose to create LabVIEW code from it. Can you be more specific on what kind of processing/decisions you need to make? Also, if you have VDM you can use Vision Assistant to create code for this part of your application.

3 how can LABVIEW communicate with PIC16f877 to control nozzles?

I am assuming you are using serial to communicate - if not, what protocol are you using? There are examples for serial communication, A good starting example is calld Basic Serial Write and Read.

--Michelle

National Instruments
0 Kudos
Message 4 of 7
(4,988 Views)

Dear Michelle_B

Thank you very much for your suggestion. We will start and try to apply as you teach.

With my best regrads,

Panmanas

0 Kudos
Message 5 of 7
(4,980 Views)

hi sir,

i have the same porblem i used pic 16f877a as analoge to digital converter then i want to connect 16f877a with labview using serial port

please if u have any information that can help be in these topic answer me

 

thanx

0 Kudos
Message 6 of 7
(4,546 Views)
I am not familiar with this particular PIC controller, but I would suggest using the shipping example called Basic Serial Write and Read to get started. (In LabVIEW go to Help > Find Examples... and search for this example)

Just like any other serial device, be sure that you have the proper baud rate, data length, parity, etc.
--Michelle

National Instruments
0 Kudos
Message 7 of 7
(4,522 Views)