NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Db logging passed/failed as a 1/0

Solved!
Go to solution

Hello!

 

I am currently working with TestStand 4.1 and I am trying to get my database logging to run.

I am using the Chema templates provided by TS. I have modified them for my use but one thing is making my life hard - UUT_STATUS (Exp : Logging.UUTResult.Status)

TS gives it "Passed" or "Failed" string but I need it to be "1" for Passed and "0" for Failed or atleast TS has to write 1/0 to my database, not Passed/Failed.

 

How would be the easiest way to accomplish this?

 

PS. I am very new to NI Teststand!

Sorry for my bad english, its not my native language.

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

Hello,

 

the easiest way (from my point of view) would be to duplicate the schema you are using, then modify this new schema by changing the UUT_STATUS column Type to numeric then modify the expression field to convert the True/False string to 1 or 0.

 

Regards,

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 2 of 4
(2,835 Views)

@Rodéric wrote:

...then modify the expression field to convert the True/False string to 1 or 0.

 

Regards,



I would be great if You could give me an example! I am a n00b!

0 Kudos
Message 3 of 4
(2,831 Views)
Solution
Accepted by topic author zero2rule

Got it working!

 

StrComp

( Logging.UUTResult.Status,"Failed",1,4)

0 Kudos
Message 4 of 4
(2,812 Views)