08-29-2013 02:48 AM
Hi all,
I am new to labview, using labview 8.5.
I want to use Labview to control LANG MCL-2 stepping-motor controller. I managed to get the "square teeth" movement where the movement should be in steps and with each step a measurement should be done, but the problem is I can't figure out a proper condition to apply so the movement will be finished automatically.
Also when the move on X axis is done then on the Y axis, I get a one step backward before it continues regularly, I also want to get rid of this backward step.
After I press stop, if I want to run the program again it will apply the first step and go to (0,0) but then will go directly to the place where the last X and Y from the previous run.
Any ideas?!
attached is the project program. Just keep opening the left folder till u reach the labview file. the other folders contain the dependencies.
thnx for help in advance.
08-30-2013 05:51 AM
Dear Theone2222,
I tried to open your ZIP-File but it is empty or has an error.
Please upload the File again.
Kind Regards,
Oleg Scherling, M.Eng | Applications Engineering | National Instruments | NIG |
09-02-2013 02:57 AM
I'm not sure y it didn't work, but here is a fresh copy of it.
09-02-2013 06:57 AM
Dear Theone2222,
I don't know what is going up but this copy is broken too!
Kind Regards,
Oleg Scherling, M.Eng | Applications Engineering | National Instruments | NIG |
09-02-2013 07:07 AM
09-02-2013 07:10 AM
I'm very sorry for that but this would be a third version from a third different PC. all of them including this one are working perfectly with all different PC's...
Sorry for disturbing and hope this will work this time.
thnx for the help in advance.
09-03-2013 06:41 AM - edited 09-03-2013 06:44 AM
Dear Theone2222,
I looked at your Code and it is out of every LV Guide Lines.
You first have to understand coding in LabVIEW and the basic structures and when and how to use them.
Here are some Links for Getting Started:
http://www.ni.com/white-paper/7605/en/
My Tipp for you is to use the State Machine Pattern and implement your Application this way where you have defined States for Every action you can switch between and have every time the full control and can set defined sequence which you can abort every time.
Also instead of the flat sequence please implement the error cluster and use this to define the execution order.
Kind Regards,
Oleg Scherling, M.Eng | Applications Engineering | National Instruments | NIG |
09-09-2013 03:20 AM
Dear SG3,
thnx alot for the feedback. I know that what u said is so true and I am still trying to figure my way through LV. I will try to describe my task and if u could plz give me a hint on how to start, cos if I am to try to put it through the states I have more than one condition to deal with and that would make it a lot more complicated.
Anyway, my task is to move a table under a microscope on a square teeth line making small user modified steps and with each step I have to do a measurement and get the results back, and so on.
Any hint would be much appreciated.
Kind Regards,
Senan