# Search the Community

Showing results for tags 'frequency'.

• ### Search By Tags

Type tags separated by commas.

### Forums

• Software & Hardware Discussions
• LabVIEW Community Edition
• LabVIEW General
• LabVIEW (By Category)
• Hardware
• Resources
• LabVIEW Getting Started
• GCentral
• Code Repository (Certified)
• LAVA Code on LabVIEW Tools Network
• Code In-Development
• OpenG
• Community
• LAVA Lounge
• LabVIEW Feedback for NI
• LabVIEW Ecosystem
• LAVA Site Related
• Site Feedback & Support
• Wiki Help

### Categories

• *Uncertified*
• LabVIEW Tools Network Certified
• LabVIEW API
• VI Scripting
• JKI Right-Click Framework Plugins
• Quick Drop Plugins
• XNodes
• General
• User Interface
• X-Controls
• LabVIEW IDE
• Custom Probes
• LabVIEW OOP
• Database & File IO
• Machine Vision & Imaging
• Remote Control, Monitoring and the Internet
• Hardware

• 0 Replies

• 0 Reviews

• 0 Views

Found 2 results

1. ## Continuously generate pulse train with variable frequency

Hi all, I am trying to use NI-USB 6259(BNC) to send Pulse signal to conduct position control of a servo motor with labview. The position control of servo motor follows these rules: 1. The number of the pulse train determines how many degrees the motor rotate ;( e.g. the angular position of motor) 2. The frequency of pulses determines how fast the motor rotate; (e.g. the speed of motor rotating) 3. The digital determines the direction of rotation of motor e.g. clockwise or counterclockwise) My question comes when I need to generate continuously a finite plus train signal in a period of time. Below is a sample: Here is the explanation of this table, the motor keep rotating in clockwise direction during 0~1s. When the time reaches 1s, the motor just complete the rotation of 923 pulse signals. And then the motor starts to rotate in counterclockwise direction during 1s~2s. When the time reaches 2s, the motor just complete the rotation of 3540 pulse signals. So we can see that the rotating speed of motor in 0~1s is different from the speed in 1s~2s. Namely, the frequency of pulse signal in 0~1s is different from the frequency in 1s~2s. I have already use the counter output of DAQmx, it just can generate pulse signal with certain numbers and certain frequency in one time. The attachment is the vi which demonstrates how to generate a finite digital pulse train from a Counter Output Channel and the Frequency, Duty Cycle, Initial Delay, and Idle State are all configurable. How can I generate a series of pulse signal with varying numbers and frequencies during a certain period of time. Thanks a lot! Counter - Finite Output.vi
2. ## Parameter tables in a state machine

Hi all, I'm trying to figure out the most efficient way to use a parameter table in a state machine. Currently, I have converted the ~3x50 element parameter table into an array of the same size. The indexing element in this case happens to be a frequency. At each frequency I need to run the primary action/test. In order to carry the current index through the test I am pulling the row out of the original array and placing it into a separate array that I'll call "Current Freq Index," perform the action, and then pull the next row, etc etc. I like the modularity of the simple state machine but this method of carrying the index to operate on in a separate array seems clunky or inefficient. How does everyone else handle something like this? (The former version is just a for loop indexing off of each frequency, which is simple, but not as extensible as I'd like it to be) Thanks! -G
×