找回密码
 注册
LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 3155|回复: 10

如何从波形图中读取波形的频率等

[复制链接]
发表于 2008-2-1 09:07:16 | 显示全部楼层 |阅读模式
想要从一个设备读取产生的波形,然后在labview有什么控件可以读出该波形频率,上下限等。谢谢,还有各位高手有没有好的labview基础知识的电子图书介绍呢。谢谢~~
发表于 2008-2-1 09:22:09 | 显示全部楼层
在信号处理的工具中就有控制可以直接读出波形的频率及幅度.
回复 顶

使用道具 举报

发表于 2008-2-1 09:57:08 | 显示全部楼层
回复 顶

使用道具 举报

 楼主| 发表于 2008-2-1 10:27:50 | 显示全部楼层
谢谢各位。还有想请教一个问题Get Waveform Attribute中 vlaues 返回有几个值阿,分别代表什么阿?谢谢~~
回复 顶

使用道具 举报

发表于 2008-2-1 10:37:55 | 显示全部楼层
兄弟您可以用鼠标对着它的输出的线,然后LV的帮助助手会显示出来它的数据的形式,以及它里面有些什么样的一些元素的!
回复 顶

使用道具 举报

 楼主| 发表于 2008-2-1 10:51:25 | 显示全部楼层
我按着你的方法做了,可是没有显示出来,不知道我什么地方搞错了。还有我用的是labview6i的,用什么快捷键可以显示帮助助手(Ctrl+H)吗?
回复 顶

使用道具 举报

发表于 2008-2-1 11:01:13 | 显示全部楼层
早期的好像不太记得有没有,在LV的右上角有一个问号,点击就能打开的!
回复 顶

使用道具 举报

 楼主| 发表于 2008-2-1 11:20:26 | 显示全部楼层
我用labview8.2的试用版打开了帮助,可是好像没有您说显示它的数据类型与个数,那还有没有其它的方法呢,急着用,谢谢~~
回复 顶

使用道具 举报

发表于 2008-2-1 12:02:42 | 显示全部楼层
帮助专门做了详细说明
附图是鼠标放在连接线上帮助显示

Get Waveform Attribute Details
This function has two modes of behavior depending on whether you wire the name parameter. By default, the function returns the names of all attributes and their corresponding values in 1D arrays. If you wire name, the names output changes to a Boolean output found, the values output changes to a variant output value, and the function searches for only the specified attribute. If the function does not find the specified attribute(s), or if it cannot convert the attribute(s) to the default value, found is FALSE, and value displays the contents of default value.

The following table lists the waveform attributes set by NI-DAQ.

Name Attribute Data Type Acceptable Values Description
Hardware Device Number NI_DeviceNumber String Any value is acceptable for NI_DeviceNumber. NI_DeviceNumber is the device number of the hardware device producing the waveform.
Name of Channel NI_ChannelName String Any value is acceptable for NI_ChannelName. NI_ChannelName is the name of the virtual channel producing the waveform.
Unit for Data NI_UnitDescription String Volts, PSI, and so forth are acceptable values for NI_UnitDescription. NI_UnitDescription is the units of measure for the waveform.

The following table lists the waveform attributes set by Express VIs.

Name Attribute Data Type Acceptable Values Description
Start Timestamp NI_ExpStartTimeStamp Time stamp Any value is acceptable for NI_ExpStartTimeStamp. NI_ExpStartTimeStamp is the time stamp of the first sample in the first waveform. In Express VIs, this is set once per start of the VI and does not change, even if waveform data is generated in a loop. In Express VIs, NI_ExpStartTimeStamp is set according to the PC clock unless the waveform originates in NI-DAQ. When the waveform originates in NI-DAQ, NI-DAQ sets NI_ExpStartTimeStamp.
Timestamp NI_ExpTimeStamp Time stamp Any value is acceptable for NI_ExpTimeStamp. NI_ExpTimeStamp is the time stamp of the first sample in the waveform. In Express VIs, NI_ExpTimeStamp is set according to the PC clock unless the waveform originates in NI-DAQ. When the waveform originates in NI-DAQ, NI-DAQ sets NI_ExpTimeStamp.
X Dimension NI_ExpXDimension String Use a single character for the NI_ExpXDimension value. Currently, only t for time and f for frequency are supported. The value for NI_ExpXDimension is case sensitive. If the value of NI_ExpXDimension is t, t0 and dt are unchanged. If the value of NI_ExpXDimension is f, Express VIs interpret t0 and dt as f0 and df. For all other values, or unknown dimension, t0 and dt are interpreted as X0 and dX.
Relative Time? NI_ExpIsRelativeTime Boolean TRUE or FALSE are acceptable values for NI_ExpIsRelativeTime. If and only if NI_ExpXDimension is t, Express VIs set t0 as a relative/absolute time stamp value.
Note  Express VIs also use the attributes set by NI-DAQ. If the waveform does not originate in NI-DAQ, Express VIs add NI_ChannelName.

[ 本帖最后由 lgh269 于 2008-2-1 12:04 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 顶

使用道具 举报

 楼主| 发表于 2008-2-1 13:50:50 | 显示全部楼层
我想读取波形的属性,然后显示出来,我把它保存在一个variant的数组中,可是在前面板中没有都没有阿?不知道那步出错

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 顶

使用道具 举报

发表于 2008-2-25 17:12:08 | 显示全部楼层
在express裡面信號分析裡有tone measures函數可以讀出
回复 顶

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2026-9-30 12:20 , Processed in 0.048126 second(s), 11 queries , Gzip On, File On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表