LabVIEW中心对齐的PWM输出

简介: LabVIEW中心对齐的PWM输出

LabVIEW中心对齐的PWM输出


VI演示如何创建居中对齐的PWM输出。


描述


该代码块产生一个中心对齐的PWM输出,用于运动控制应用。在FET或IGBT桥(如H桥)中,使用中心对齐的PWM意味着开关改变状态的频率是使用普通PWM信号时的一半。这减少了开关上的磨损,减少了FET或IGBT产生的热量,并改善了系统的动态特性。该代码设计为在单周期定时环路中运行,因此,通过cRIO或FPGA卡上的高速数字输出,PWM信号可以在FPGA时钟周期上更新。它也可以在窗口和实时目标上执行。


下图在上图中显示了两个正常的PWM信号,第一个占空比为20%,第二个占空比为10%。第二张图显示了使用中心对齐的PWM输出的相同PWM信号。


要求


软件


LabVIEW完整或专业开发系统2012(或兼容)


如果在实时环境中运行,需要LabVIEW实时模块2012(或兼容)


如果在FPGA环境中运行,需要LabVIEWFPGA模块2012(或兼容)


硬件


FPGA和实时目标可选(例如cRIO9074或兼容)


Overview


Thisexample demonstrates how to create a center-aligned PWM output.


Description


Thisblock of code produces a center-aligned PWM output to be used in motion controlapplications. In a FET or IGBT bridge such as an H-bridge, use of acenter-aligned PWM means that the switches change state half as frequently asthey would when using a normal PWM signal. This reduces wear on the switches,decreases the heat generated by the FETs or IGBTs and also improves the dynamiccharacteristics of the system. The code has been designed to run in asingle-cycle timed loop so that with a high-speed digital output on a cRIO orFPGA card, the PWM signal can update on the FPGA clock cycle. It can also beexecuted on windows and real-time targets.


The imagebelow shows two normal PWM signals on the top graph, the first with a 20% dutycycle and the second with a 10% duty cycle. The second graph shows the same PWMsignals using the center-aligned PWM output.


Requirements


Software


LabVIEWFull or Professional Development System 2012 (or compatible)


Ifrunning in a Real-Time context, you will need the LabVIEW Real-Time Module 2012(or compatible)


Ifrunning in a FPGA context, you will need the LabVIEW FPGA Module 2012 (orcompatible)


Hardware


FPGA andReal-Time target optional (e.g. cRIO 9074 or compatible)


Steps to Implement or Execute Code


Downloadand open the attached file "Center-Aligned PWM Generation LV2012NIVerified.vi"


Followthe instructions in Front Panel and Block Diagram and run the program


Additional Information or References



需要说明的是,上述的例程和文档,都是可以下载的,双击即可打开,其中压缩文件是可以采用粘贴复制的方式,拷贝到硬盘上。这不是图片,各位小伙伴看到后尝试一下,这个问题就不用加微信咨询了。有关LabVIEW编程、LabVIEW开发等相关项目,可联系们。附件中的资料这里无法上传,可去公司网站搜索下载。


LabVIEW程序,如下附件所示。

相关文章
|
20天前
|
算法
LabVIEW在同一个面板下描绘模拟波形和数字波形
LabVIEW在同一个面板下描绘模拟波形和数字波形
15 0
|
20天前
|
数据采集 网络架构
LabVIEW控制DO通道输出一个精确定时的数字波形
LabVIEW控制DO通道输出一个精确定时的数字波形
21 4
|
20天前
LabVIEW编程LabVIEW开发PXI-6704输出大于20mA的电流例程与相关资料
LabVIEW编程LabVIEW开发PXI-6704输出大于20mA的电流例程与相关资料
13 0
STM32学习笔记(4) 高级定时器-两路互补的PWM输出(带死区和刹车控制)
原理:当捕捉到信号的跳变沿时,将CNT的值所存到捕获寄存器CCR中,然后把两次的值相减,就可以得到脉宽或者频率。
998 0
|
11月前
|
存储
51单片机--动态数码管显示
51单片机--动态数码管显示
167 0
|
存储 编译器
单片机原理及其应用——单片机外部中断实验(八段数码管通过按键依次显示0~9数字)
单片机原理及其应用——单片机外部中断实验(八段数码管通过按键依次显示0~9数字)
单片机原理及其应用——单片机外部中断实验(八段数码管通过按键依次显示0~9数字)
|
12月前
|
C语言 芯片
单片机|I/O输出功能
单片机|I/O输出功能
80 0
|
12月前
|
传感器 监控 芯片
LabVIEW控制Arduino采集LM35温度传感器数值(基础篇—12)
LM35 是由National Semiconductor 所生产的温度传感器,其输出电压为摄氏温度。LM35是模拟输出的温度监控芯片,其输出电压和摄氏温度成线性比列关系,是一种得到广泛使用的温度传感器。
LabVIEW控制Arduino采集光敏电阻数值(基础篇—14)
利用光敏电阻和LIAT中的光敏函数库,通过Arduino Uno控制板的模拟端口采集与光敏电阻串联电阻的分压值上传给LabVIEW软件,并除以光照系数以获得光照值,实现一个光强计的功能。
LabVIEW控制Arduino采集热敏电阻温度数值(基础篇—13)
利用热敏电阻和LIAT中的热敏电阻函数节点,通过Arduino Uno控制板的模拟端口采集与热敏电阻串联电阻的分压值上传给LabVIEW软件,并除以温度系数以获得温度值,实现一个温度计的功能。