12-14-2016 02:46 PM - edited 12-14-2016 02:48 PM
As I was saying earlier, units are buggy. You are best off stripping out the units.
Taking your crash2.vi, I made a simple modification that converted meters to micrometers, effectively stripped the units, and added um to the format code so the units would show up there.
Any where you need to format a number with units into a string and you get thus error message, you only need to make 2 modifications to your VI. 1. Add the Convert Units function just before the format into string. 2. Edit the Format String constant.
I think this is the best you can do to work around this bug whenever you are still forced to be using units by your colleagues.
12-14-2016 02:55 PM
There seams to be a bug. Precision and casting units works for everything but %f but Significant Digits and units work fine. e.g. %_8{um}f displays "h initial scan complete, FWHM = 4765548.8 um"
12-14-2016 03:02 PM
Yes, I've been down that road already. Fixed a VI with that problem, rerun, errors out somewhere else, fixed that VI, etc.
Things work but I'm patching a basic problem as I go along changing VIs without understanding what is going on.
I already found the source of the problem, which points out with another LabVIEW problem with cascading typedefs with units.