10-22-2009 07:36 AM
Hi,
I have pretty basic LabView skills and I am trying to write a program that will allow me to remotely control a microscope.
one part of the program is the control side which at the moment works but I need to add area limits (so that the motors stop when they reach the end of travel). The other part is the vision part so that I can see what the microscope sees on screen. For this I am using a toolkit from HYTEK automation (http://www.hytekautomation.com/Products/IVision.html) which allows me to use a webcam and take a snapshot.
What I want to do is combine these two into one program but I don't know how to go about it.
I have tried pasting one into the other but that doesn't seem to work.
Ideally what I want is to have the controls from both programs on one front panel.
I will attach the two programs I have below
thanks for your help
Anthony
10-22-2009 07:52 AM
As I do not have the hardware and some of the software you do not have I can not edit you code, but I can suggest an architecture these may help you Producer consumer architecture or maybe the Master Slave architecture
hope this helped a little
10-22-2009 08:03 AM
10-22-2009 08:09 AM
Now looking at your code there are a lot of thing that I would do differently. In your move up and down left and right vi:
10-22-2009 08:40 AM
Thanks for the reply aeaste,
I guess I should have mentioned that Im using LabVIEW 8 so unfortunately I can't open the files you attached.
I will also try to learn about the event structures you suggested to simplify the program.
thanks for your help
10-22-2009 08:52 AM
10-22-2009 09:12 AM
Could you tell me how you added the terminals to the left right up down VI I was trying to do that earlier but couldnt figure it out.
thanks
10-22-2009 09:20 AM
If should look in the top right hand corner of the VI.and click show connector if it does not look like this.
After you get the VI to look like this you will need to select a pattern that will allow you to connect all of the controls. You can do this by right clicking and selecting the patterns option.
From here you will have to click on the square on the connector then the control that you want to connect to it. It is that simple.
10-22-2009 09:57 AM
Thanks again I can't believe its that simple.
I've been trying to run the example program made and Im having a little trouble.
First of all I took out the TESTCAM part and tried running just the left right.....VI (I should have named it something shorter Ill call it LRDU from now on), but when it runs it isn't giving an output to my hardware it is as if it is not opening the program at all and just operating the buttons on the front panel. Am I missing something obvious or is it because I need to simplify the program?
I renamed the example one to direction
10-22-2009 10:01 AM