LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using PCI 6251 for motor control

This is the code I am working with to control a 12 V motor. I am trying to send the signal to the PCI board but i am not sure why it's not working. If someone can check and see what I am doing wrong.

 

Thank you,

Ash

0 Kudos
Message 1 of 6
(1,521 Views)

You need to share more information than the one provided.

 

How is the 12V motor connected to the PCI 6251 - you cannot directly connect, as the outputs of 6251 are limited in current to get the 12V motor running.

 

You did not definite, what "control" means - is it On or Off or PWM based speed control etc.,

 

To me, this code does not even make any sense, you're creating a Digital Input (why? are you trying to capture an external signal?) and importantly code is broken

santo_13_0-1636415576565.png

 

If you're new to LabVIEW - please go over the LabVIEW basics links in the LabVIEW board

If you're new to DAQmx - please go over the basics of DAQmx automation - https://www.ni.com/en-us/support/documentation/supplemental/06/learn-10-functions-in-ni-daqmx-and-ha...

 

Next, easiest, you can go through the examples that comes with LabVIEW and DAQmx, go to Help>>Find Examples>> Hardware Input and Output >> DAQmx

santo_13_1-1636415735259.png

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 6
(1,506 Views)

Hi, I am using a motor controller and PWM based speed control. I am just wondering how would you connect the physical channel to the counter output pulse freq.

 

Thank you

0 Kudos
Message 3 of 6
(1,467 Views)

Please share all information about the motor controller and the motor.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 6
(1,463 Views)

The motor is 12V, 1.2A, 50 rpm and the motor controller is 7A/160W dual DC motor drive.

 

Best,

Ash

0 Kudos
Message 5 of 6
(1,459 Views)

Hi Ash,

 

I meant, the make, model and if possible datasheet of the motor controller. This is crucial to determine the connections to 6251.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 6 of 6
(1,456 Views)