Software Timed Pulse Width Modulation

제품 및 환경

이 섹션은 예제 생성에 사용된 제품과 OS를 표시합니다.

아래의 제품을 비롯한 NI 소프트웨어를 다운로드하시려면 ni.com/downloads를 방문하십시오.

    하드웨어

  • Data Acquisition (DAQ)

    소프트웨어

  • LabVIEW

    드라이버

  • NI DAQmx

코드 및 문서

첨부파일

모두 다운로드
Overview:
Demonstrates on regulating the width of digital pulses programmatically.

Descriptions:
This examples allows the user to regulate the low and high time of the digital pulse on the fly.

Requirements:
  1. LabVIEW 2012 or compatible.
  2. NI-DAQmx 15.5.1 or compatible.


Steps to Implement or Execute Code:

  1. Select digital lines at which the digital signal will be generated.
  2. Set the Low and High Time (ms). You may also change this while the VI is running.
  3. Run this VI.


Block Diagram Steps:

  1. Creates a Digital Output channel to generate digital pulses.
  2. Write a single sample into the card buffer.
  3. Specifies whether to invert the lines in the channel. If you set this property to TRUE, the lines are at high logic when off and at low logic when on.
  4. Transitions the task to running state to begin generation.
  5. Depending on the iteration count, the digital output channel will write a low and high alternately.
  6. Clears the task.
  7. Displays any error occurs.

Front Panel.PNG

 

Block Diagram.PNG

 

**This document has been updated to meet the current required format for the NI Code Exchange.**
Doug Farrell
Solutions Marketing - Automotive
National Instruments

National Instruments Automotive Solutions

NI 커뮤니티에 있는 예제 코드 교환의 예제 코드는 MIT 라이센스로 라이센스가 부여됩니다.

의견
okky.septa.c
Member
Member
날짜

I have plant DC Motor and I using NI-USB 6009. Can I generate PWM signal with this VI ?