From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 1 of 2
(4,206 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,178 Views)