LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unit testing fails digital waveform comparison when reading from HWS file

Issue:

LabVIEW digital waveform comparison fails during unit testing when data is read from HWS file

 

This issue is demonstrated in "compare digital data from memory to file (not working as expected).vi" (attached)

Example, "compare digital data from memory to file (not working as expected)-niHWS.vi" requires the NI-HSDIO install and niHWS drivers.

Digital waveform comparison during the unit test fails consistently when comparing an expected digital waveform with the digital waveform read back from an HWS file.

Resolution:

I found the issue is with LabVIEW Digital Waveform type which caused my unit test case to fail. Issue is due to the "unused error cluster" being non-empty in the memory value but empty when read back from an HWS file. I resolved issue by creating a custom comparison for digital waveforms (Custom Comparison - Digital Waveform.vi).

0 Kudos
Message 1 of 1
(2,442 Views)