06-29-2010 08:00 AM
Hi,
can anyone give me a Hint? I am an absolute beginner with NI Labview. I am trying to link to different Examples from NI Motion to control my Motor. I attached my program and looking for advice, is ti ok like that?its simply a point to point motion with a Find Home option. Is it good like that? or what needs to be changed?
Thanks
06-30-2010 07:02 AM
Hi Kenzi,
well, just copy and past is not always working, but for beginners we recommend using examples - therefore the code looks ok.
But, you have to know what you're doing. At the moment there are two while loops, this means both loops will execute parallel! This is probably not what you want, normally you start with finding the reference followed i.e. with the straight line move.
To reach this, your code have to follow the dataflow theory, which LabVIEW is based on. The fastes way to gain the basic knowledge in LabVIEW is to attend a Traing course, dates and location can be found here. LabVIEW Core 1 is probably the right course for you.
Of course, you can also gain the knowledge by self training, a good starting reference is this site:
Based on the knowledge from either the course or the tutorials, you can use differen Design Patterns to realise your programm. i.e. the 'State machine' approach. Ideas and tutorials are also described in this tutorial
I hope this information helps you,
Tobias