LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Waveform (.hws) files from Analog Waveform Editor into LabVIEW causes read errors

Solved!
Go to solution

Hi Gang,

 

In my application, I want to create files Using the Analog Waveform Editor and then, through LavVIEW, play them out through an D/A.

 

I've not been able to read the .hws file into LV.  I've tried two methods:

 

Using the Read Waveform VI in the Waveform palette, yields Error -1821.

 

 

I looked in the knowledgebase and found the article "Using the Analog Waveform Editor and HWS Files with Multifunction DAQ Devices"  That recommended using the HWS VIs that are a part of the FGEN driver.  I tried that and get an Error -21515.

 

The file I want to read is quite small, only 20 samples.  Is there some limitation on .hws files or the Waveform Editor I'm not aware of?

 

I've attached the file if anyone is willing to experiment. I had to change the extension from .hws to .txt to be able to attach it.

 

 

All responses will be appreciated.

 

 

Thanks,

 

Roger

0 Kudos
Message 1 of 4
(3,816 Views)
Interesting. I tried to look at your file with the low level read .hws file vi's and I too got error -21515. So I tried the NI-HWS express load.vi and it looks like it worked. I'm not familiar with the analog waveform editor...does it store using the dynamic data type? Oh I converted the dynamic data to 1d array of waveforms using the convert from dynamic data.vi.
Now Using LabVIEW 2019SP1 and TestStand 2019
Message 2 of 4
(3,806 Views)
Solution
Accepted by RogerMontague

Hi!

 

Thanks for the sanity check!

 

I don't know what's going on, but I just worked around it by The NI-HWS Express VI,  as you mentioned, and converting to a 1D of doubles.

 

 

Thanks,

 

Roger  

0 Kudos
Message 3 of 4
(3,781 Views)
Then please give Bob kudoes and mark his post as the solution, rather than marking your thank you post as the solution.  If you go to the options menu to the upper right hand corner of your message, you will be able to unmark your message as the solution.
Message 4 of 4
(3,770 Views)