简体   繁体   English

交流电压斜坡 LabVIEW

[英]AC voltage ramp LabVIEW

I am totally new to LabVIEW.我对LabVIEW完全陌生。 My purpose is to create an AC voltage ramp using this programming language like the one showed below.我的目的是使用这种编程语言创建一个交流电压斜坡,如下所示。 For example, I would like to change the voltage from 0 to 5 V in 2 seconds.例如,我想在 2 秒内将电压从 0 变为 5 V。 How do I do that?我怎么做?

“标准斜升电源的电压形式”:图表显示电源电压从 0 开始并振荡增加,在 2 秒后结束在 -1 和 1 之间振荡

I suppose you want to generate a signal with a DaqMX output board.我想您想使用 DaqMX output 板生成信号。 You should separate your problem in two parts: create waveform and "write" output in the DaqMX output board.您应该将问题分为两部分:在 DaqMX output 板上创建波形和“写入”output。

The AC voltage ramp is not a "canonic" waveform.交流电压斜坡不是“标准”波形。 So you should build your signal as follow: y = sin X ramp.所以你应该建立你的信号如下:y = sin X ramp。 For sin, use this For ramp, you can simply use a growing number (for this use a for o while loop).对于 sin,使用这个For ramp,你可以简单地使用一个增长的数字(为此使用一个 for o while 循环)。

The created signal should be applied in the output boards by using the DAQmx VIs.应使用 DAQmx VI 将创建的信号应用于 output 板。 See examples installed in your LabVIEW.查看 LabVIEW 中安装的示例。 There are different approaches to generate output with a DAQmx: single sample, single wavform, repetitive waveforms, ecc.使用 DAQmx 生成 output 有不同的方法:单样本、单波形、重复波形、ecc。 Choose the most suited way for you application.选择最适合您应用的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM