08-25-2016 01:56 PM
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
08-25-2016 05:20 PM - edited 08-25-2016 05:20 PM
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,