LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview - NI myDAQ

Hi everyone,

I have some questions when connecting 2 servo motors to myDAQ to control through logic in LabView. However, I can only use one DIO3 to use PWM. After searching for information online as well as asking chatGPT, the solution is to connect to control the 5V input source through ports such as DIO1 and DIO0 for the servo motors. Is there any other feasible solution or is there only one way to control and control the pulse width separately?

I am doing a project for a subject in university, but have not found any reading source that solves this problem. So if possible, can everyone please provide me with some related supporting documents?

Best,
Huy Le

0 Kudos
Message 1 of 5
(203 Views)

Extra: I have a project that using LM35 sensor to control LEDs and Servo motors (in live mode), I have done the LEDs controlled and taking sensor data then write it in an excel file, otherwise, I only can control 1 or 2 servo motors at one time and cant be seperately. So, please give me some advices.

hehevuiqua_0-1728253688299.png

 

0 Kudos
Message 2 of 5
(155 Views)

@hehevuiqua wrote:

.

hehevuiqua_0-1728253688299.png

 


This picture is not useful because we cannot tell what inside the dynamic data wire and how the DAQ assistant express Vi is configured. We also cannot tell what's in the other case of the case structure or where the data is coming from or where it is going.

 

 

0 Kudos
Message 3 of 5
(147 Views)

Hi thanks for replying,

I use DIO3 port to connect 2 blue signal pins of Servo Motors and both when meet the conditions to run, however I wonder if they can operate separately even in the same DIO3 state?

Screenshot 2024-10-06 031048.png
As you can see the Output Terminal: PFI3 and I cannot find any other pin while setting up myDAQ or DAQ Assistant.

I have tried connect the servo motors into DIO1 and DIO2 but it not works for PWM as well.



0 Kudos
Message 4 of 5
(144 Views)

The myDAQ (released about a dozen years ago) was designed as a very inexpensive student-purchased "my DAQ" device that could be used in a EE Circuits class to allow students to build and test circuits without having a scope, VOM, power supply, audio amplifier, etc. for less than the cost of a comprehensive college textbook.

 

It does, in fact, have a counter-timer that uses 5 of the 8 DIO lines to make a proper Counter/Timer that can generate a digital pulse train.  If you go to ni.com/info and input (without the quotes) "mydaqcounter", you will learn about the (one) Counter/Timer in the myDAQ.

 

Counter/Timers are were scarce commodities in NI's USB-powered DAQ devices.  However, the newly-released mioDAQ devices include 4 (!) Counter/Timers, enough to do interesting digital signal generation, and still have DIO pins available for other things.

 

You might be able to construct a single-channel pulse-train generator with a myDAQ, but it might not be easy ...

 

Bob Schor

0 Kudos
Message 5 of 5
(118 Views)