01-08-2010 04:59 PM
In order to drive a stepper motor, which is connected to a linear actuator, I created a waveform in matlab and saved it as a text file and imported it into labview. The waveform I created corresponds to the number of steps on the linear actuator. As a result, I have a vector of 2000 values. If I wanted the period to be 1 second, I would want the signal to output an element of the vector every 0.0005 seconds. How can I control the rate at which each value of the signal is outputted?
Thanks!
01-08-2010 05:13 PM
01-10-2010 04:53 PM - last edited on 01-11-2010 11:19 AM by Support
Thanks for responding so quickly! I used the Build Waveform Function to try to specify the duration between output samples. When I created a waveform indicator, the front panel gave me the waveform I wanted; however, when I connected the output to an oscilloscope, the corresponding waveform did not appear. Do you know why?
I've attached a picture of the part of the program I'm having trouble, the program I've been playing around with to get the output to work, and some text files to use as the input.
01-10-2010 04:56 PM
01-10-2010 05:33 PM - edited 01-10-2010 05:37 PM
Never, ever post a bitmap file by just changing the extension to jpg. Do you really think that will fool anyone to get around the ban on bmp files?
And, your code is a mess. Look at some the examples. Use the DAQmx Timing function to specify use timing from waveform and rewrite your code to only use a single DAQmx Write. You CANNOT use two separate tasks. You must be getting an error.
01-10-2010 06:27 PM
01-10-2010 07:10 PM
01-10-2010 09:18 PM
Sorry again, but I'm brand new to labview and I'm having trouble doing simple tasks, especially because I don't have the labview manual. By anychance do you know of any online tutorials or examples that would help me learn how to output a signal?
Thanks for your time.
01-10-2010 09:31 PM
Go to Help>Find Examples. There is a whole section on Hardware Input and Output. Look under DAQmx and the voltage output. There are a couple of examples that use a waveform as an output.
You should have begun with the DAQmx Getting Started Page. All of the LabVIEW documentation is in the help file and a couple of pdf's. There is no printed manual.
01-11-2010 12:42 PM