Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to have sequenced movement for PI motor in labivew

Hello, I am very new at labview, but have a big project I need to help on. I have a PI C-843 motor control card with the M-230.25 piezo mover. I am trying to figure out to no avail, how to program a Labview VI that will let me move the mover a certain distance, stop, then move that another certain distance, stop, and continue this sequence how many times is needed. I was trying to figure out a way to modifiy the ''Simple Operation'' VI that is given to us by PI, but due to my inexperience with Labview, I can not manipilate this VI the way we want it to move. Any suggestions will help, and if you know any simple labview VI examples that are similar to my problem would be most welcomed.
0 Kudos
Message 1 of 3
(4,114 Views)

Kitekun,

 

a good design pattern for such an application is a state machine. I strongly recommend to use this concept rather than a sequence structure, which is not flexible enough to adjust your application for future requirements.

 

I know, that LabVIEW tends to seduce beginners to start their application immediately without proper planning of the software architecture. With big projects this typically fires back later if you end up with a huge unstructured block diagram.

As with every programming language good software engineering is essential. Here is a good series of articles about this topic. To get started quickly you may also want to have a look at NI's training offers.

 

As the PI motion control library is not written and maintained by NI I'm not really familiar with it, so I can't give more specific advice for the usage of this instrument driver, but you also may contact PI for more sophisticated examples or reference architectures.

 

Kind regards,

Jochen Klier

National Instruments

 

0 Kudos
Message 2 of 3
(4,097 Views)

Hi,

 

Could you please attach the "Simple_Operation.vi" that was provided my PI. 

 

Cheers!

0 Kudos
Message 3 of 3
(3,746 Views)