为什么我的波形在Labview中没有正确的频率间隔? [英] Why does my waveform not have the right frequency intervals in labview?

查看:301
本文介绍了为什么我的波形在Labview中没有正确的频率间隔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在LabView GUI中,将频率设置为300Hz = 1/300秒= 3.333毫秒,并将脉冲宽度设置为2毫秒.计算得出占空比为60%.

In the LabView GUI I set the frequency to 300Hz = 1/300 seconds = 3.333 milliseconds and the pulse width to 2 milliseconds. This computes to a duty cycle of 60%.

为什么下面显示的脉冲之间的间隔不等于3.333毫秒?它们看起来更接近1毫秒,这还很遥远.

Why are intervals between the pulses shown below not equal to 3.333 milliseconds? They look closer to 1 millisecond,which is way off.

以下是我正在使用的接线图:

Following is a wiring diagram I am using:

是否可能是我的定时循环设置为每秒循环一次?我应该更快地循环吗?我应该使用哪种循环?

Is it possible the problem is my timed loop being set to loop every second? Should I loop faster? What kind of a loop should I be using?

推荐答案

您每隔3.333毫秒就有一个脉冲上升,所以很好.您不需要定时循环,Express VI将保持阶段状态,只需确保其运行次数比Express VI产生的数据量更多即可.一个简单的等待毫秒即可.

You have a pulse rise every 3.333 ms, so that's fine. You don't need a timed loop, the express VI will maintain phase, just make sure it runs more often than the amount of data the express VI produces. A simple wait ms will do.

这篇关于为什么我的波形在Labview中没有正确的频率间隔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆