NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using GetFormattedValue with Boolean Array to create ReportText

What is the C (printf) style format for outputting a Boolean array?

 

I currently use to get 

Step.Result.ReportText = Locals.Outlets.GetFormattedValue("",0,"",False,"\n")

 

Outlet State
Status: Done
Module Time: 1.6116278
False
True
False
False
False
False
False
False  

 

 

I would like to format the output to show:

 

Outlet State
Status: Done
Module Time: 1.6116278
OFF
ON
OFF
OFF
OFF
OFF
OFF
OFF

 

0 Kudos
Message 1 of 2
(4,759 Views)

Hi Phillip,

 

interresting question, because the c-style doesnt know a datatype "boolean".

So i am quite sure there is no support.

You can do a simple workaround by using twice SearchAndReplace to rename True and False
in the same expression

Hope that helps

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 2
(4,731 Views)