|
|
发表于 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 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|