LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

square teeth movement

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.

0 Kudos
Message 1 of 8
(2,798 Views)

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 |

0 Kudos
Message 2 of 8
(2,765 Views)

I'm not sure y it didn't work, but here is a fresh copy of it.

0 Kudos
Message 3 of 8
(2,734 Views)

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 |

0 Kudos
Message 4 of 8
(2,724 Views)
Hi SG3,

It's extracting fine for me using WinRAR so maybe try that instead
0 Kudos
Message 5 of 8
(2,721 Views)

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.

0 Kudos
Message 6 of 8
(2,719 Views)

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:

 

"HELP!"  ...Where to get started in LabVIEW:

https://decibel.ni.com/content/groups/byu-labview/blog/2011/09/08/help-where-to-get-started-in-labvi...

 

LabVIEW Design Patterns:

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 |

0 Kudos
Message 7 of 8
(2,699 Views)

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

0 Kudos
Message 8 of 8
(2,673 Views)