Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW code to operate a needle to move in X,Y and Z directions

HI guys,

 

I'm new to LabVIEW programming.

I have an query to ask of u guys.

I have an extremely small needle to do some in-situ transporting inside a machine.

I need the needle to move in X ,Y and Z directions and in different step speed sizes.

I 've to design a control panel to aid this operation.

Both the needle and the control panel are in 2 different systems.

 

Criterias to fulfil;

 

1. The needle must be able to move in X(left and right), Y(up and down) and Z(depth=in and out) directions.

2. The needle must be able to move in different speed selections.(I guess this is the different step sizes)

3. The connection btw the two systems.

 

Anyonne has got any idea how to pursue dis prob?

Thx a lot for ur help.

 

Rdgs

 

Titano  

0 Kudos
Message 1 of 14
(6,305 Views)

Hi Titano,

 

What hardware that you are using? or you are still in designing phase?

 

Programming wise, if you are new with LabVIEW Motion, you can start with Motion Assistant which is good as a starting point. If you want to develop more complex application that can't be achieved with Motion Assistant, then you can use LabVIEW Motion. In LabVIEW Motion, there are always examples that you can refer on, for instance: Three-Axis Helix with Position Monitor.vi that you can find in NI Example Finder.

 

All your requirements I believe can be achieved by Motion Assistant, assuming you are using NI Motion card. Hopefully this information is helpful for you, let me know if you need more explanations.



Krisna Wisnu

71895

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 2 of 14
(6,289 Views)

Hello!My dear,

I have a NI PXI-1033  with the NI-PXI-7330 NI Motion controller.To perform desired motion we made all connection with the NI UMI-7774 Universal motion interface.Our demand is to make this movement initially by using motion assistant in an easy way (click by click) and then translate into the LabView VI and we have performed the first step, we designed the all motion by motion assistant clearly so right now we want to translate this motion directly into the LabView because we will add some other additional parameters onto this program. In the case, i need some infrmation about the translating this program immediately into the LabView VI.How can we do this program? According to manual and data sheets I have read these equipment provide all properties for our purpose but I couldn"t fiind the detailed knowledge.

I am looking forward to getting good news for this problem. 

Greetings. 

Özgür 

0 Kudos
Message 3 of 14
(6,274 Views)

Hi Özgür

 

Per my understanding, you had finished designing and prototyping with Motion Assistant. Is this correct? What version of Motion Assistant that you are using?

 

In my computer right now, I have Motion Assistant 2.3, and if I want to migrate from Motion Assistant to LabVIEW, I can use Tools>>Generate Code>>LabVIEW Diagram. And modify the code from there.

 

Is this answer your question? If not let me know.

Krisna Wisnu

71895

 

 

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 4 of 14
(6,268 Views)

Hi!Krisna,

Thanks for your reply.As you understood from my letter I have finished the first prototype easily and then I need to creat LabVIEW codes for this motion program but when I try to to this an error occurs and I am writing that as folows:

There was an error during code generation.Possible reason are:

1)NI Motion templates not found

2)User has cancelled Code generation

Moreover I have checked my motional assistant version and it is the same like yours.
Please help me for this error, I have observed all manuals but I saw nothing.

Özgür 

0 Kudos
Message 5 of 14
(6,264 Views)

Hi Özgür 

 

I believe the error came out because you have not installed NI Motion.

 

You can download the latest NI Motion at: https://www.ni.com/en/support/downloads/drivers/download.ni-motion.html

 

Hope it helps!

 

 

Krisna Wisnu

71895

 

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 6 of 14
(6,260 Views)

    Hi!  Krisna,

    I have controlled my computer and as I guessed, the  7.6 version of NI motion has installed and according to other manual I have read there is an incompatibility between the NI motion and LabVIEW  and also I tried to download newest version by the link you have written on the reply but I couldn"t do it up to now due to network problem in our institute but I believe that when I installed the new version the problem will be solved.

    In addition to the translating I have another question to you about connecting mechanical endswitch to the UMI-7774 Universal motion interface. I have searched on the internet and also all manual and datasheets but there is no detailed information about the connection.I don"t want to use another feedback  so, please give me some information in this issue, I don"t know is it possible or not to make execute this connection together with the mechanical switch.

I am looking forward to getting reply.

Best regards.

Özgür 

0 Kudos
Message 7 of 14
(6,246 Views)

Hi Özgür

 

If the error still occur try to uninstall the NI Motion 7.6, then install NI Motion 7.7. Also provide me with your details (LabVIEW version, OS).

 

I can't understand your question about mechanical endswitch connection. Which output/input of UMI 7774 that you are referring?

 


Krisna Wisnu

71895

 

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 8 of 14
(6,238 Views)

Hi! Krisnau,

I am using LabVIEW 2009, NI motion assistant 2.3 and NI motion 7.6 version but yesterday I couldn"t try to install neither NI motion 7.7 nor 8.0 but right now I am downloading them hopefully the problem which came during the transfer will be solved.

The second problem yesterday I mentioned to you it is related to the mechanical endswitch.I want to use this device in my program and I am confused about which input/output is appropriate for this connection.Could you give me detailed information about all connection pins?

Best regards and thanks so much for your interest

Özgür 

0 Kudos
Message 9 of 14
(6,229 Views)

Hi Özgür

 

Since you are using LV 2009, you need to use NI Motion 8.0 or higher, the previous link I gave you is NI Motion 8.0f1, so it should solve your problem.

 

I am not sure I understand your question about the connection of UMI 7774. The connections of UMI 7774 is well documented in the User Manual https://www.ni.com/docs/en-US/bundle/373359c/resource/373359c.pdf (page 29-30 for Axis 1).

 

What are you going to use the switch for?

 

 

 

Krisna Wisnu

71895

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 10 of 14
(6,222 Views)