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).