Error Hex 0x4 When Using Different Timestamps With Format Into String VI in LabVIEW

Updated Aug 30, 2023

Reported In

Software

  • LabVIEW 2021

Issue Details

I try to input two different timestamp formats to Format Into String VI, such as one with only minutes : seconds (%<%M:%S>T), and the second with a default format (%T). See the example code: 

image.png

As a result I am getting an error pop-up:
 
LabVIEW: (Hex 0x4) End of file encountered. 
 
image.png

The pop-up stops my VI execution despite I have error wires outputted from Format Into String VI. Everything starts working only when I set the same timestamp format for the inputs. 

Are there any workarounds for this issue?

Solution


This is a known behavior and a Corrective Action Request (CAR:1777136) was filled with the R&D Team. The bug is looking to be fixed in the upcoming versions since LabVIEW 2021 SP1. Once the bug is fixed, you can find it in the LabVIEW version bug fixes, such as the one for LabVIEW 2021 bug fixes.

As a workaround it is recommended to use two different Format Into String VI-s for each different timestamp used. See an example of a workaround below:

image.png

The resulted string will contain both timestamps separated by a comma.