NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

error in float64

Thiscontext.Step.Result.Status=(Float64(Locals.M4_0_CPU_Load)<80)?True:Flase

 

How to slove the specified value does not have expected type is the error in above expression in NI teststand2014

0 Kudos
Message 1 of 2
(3,041 Views)

Your argument has a string on the left and a boolean on the right so:

String = Boolean doeson't make sense

Maybe something like this:

Thiscontext.Step.Result.Status=(Float64(Locals.M4_0_CPU_Load)<
80)?"Passed":"Failed"

 

Also, when setting a step status it is wise to use the same verbage that NI uses so that the stylesheets and plugins will recognize and trigger correctly off of it.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(3,026 Views)