01-25-2010 08:40 PM
I try to open a HWS file which generated by Analog Waveform Editor ,and get the attribute of sample numbers.the HWS file only have one group with one waveform. the command sequence is niHWS_OpenFile() to get the file handle,niHWS_GetWfmReference() to get the waveform handle,niHWS_GetWfmF64Attribute () to get the sample numbers.there is no such attribute if I try to choose the attribute from the CVI envirement.But the Help file have five choice.niHWS_Attr_XAxisStart, niHWS_Attr_XAxisIncrement,niHWS_Attr_WfmYAxisMin,niHWS_Attr_WfmYAxisMax and niHWS_Attr_WaveformSize.the last choice won't present on CVI Attribute choose dialog. when I run the program,the returned value of numbers of sample is -1.Please give some advice about my application. I need to know the sample numbers of a HWS file.
Best Regards
01-26-2010 07:25 PM
Hi Maevebj,
I would recommend trying niHWS_Attr_WaveformSize with niHWS_GetWfmI32Attribute rather than niHWS_GetWfmF64Attribute.
Matt Kisler
Signal Generators R&D