11-08-2021 04:00 PM
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
11-08-2021 05:56 PM
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
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
11-11-2021 01:59 PM
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
11-11-2021 02:02 PM
Please share all information about the motor controller and the motor.
11-11-2021 02:25 PM
The motor is 12V, 1.2A, 50 rpm and the motor controller is 7A/160W dual DC motor drive.
Best,
Ash
11-11-2021 02:40 PM
Hi Ash,
I meant, the make, model and if possible datasheet of the motor controller. This is crucial to determine the connections to 6251.