LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Storing Digital Waveform using HWS

Hi there,
 
I'm trying to store digital waveforms using HWS which works as long as my waveform contains only 0s and 1s. As soon as I'm using signals like Xs or Zs in my waveform, the VI refuses to work, telling me it's only able to save only 0s and 1s which is not enough for me, since I need the other values as well..... is there any workaround apart from writing my own file format?
 
Thanks in advance
 
Oli
0 Kudos
Message 1 of 3
(3,278 Views)
I assume that you are using the Store Digital WDT instance from the niHWS Store Waveform vi. As you have described this instance will only allow 0 and 1s to be stored. Other instances of this vi like the Store Analog DBL instance allow other values, too but of course the input data type is different. Thus if you want to store mixed signals (analog and digital) in a single file you still can use the niHWS Store Waveform vi but you will have to convert all data to a common data type (e. g. DBL, I16,...).
Storing multiple waveforms requires the usage of the low level HWS functions.

Best regards,

Jochen Klier
National Instruments Germany
0 Kudos
Message 2 of 3
(3,263 Views)

I know this post is over 5 years old, but since I had to dig into this, I thought I would add some content to clarify. The Store functions that use numerics can only store 1s and 0s. As discussed in the article Digital Waveform Data Representation, "The WDT is required when you use more than the 0 and 1 states in a waveform, for example, if your waveform includes Z's, X's, H's, or L's." You must use the digital waveform for storing this feature, so try the Store function that writes from a waveform data type.

 

- Regards,

Beutlich
0 Kudos
Message 3 of 3
(2,486 Views)