Hello All,
Trying to do a simple Boolean test, but it is proving to be more complicated than I would have expected. Hoping that I am missing something simple.
I have a Labview code module that provides a Boolean value for the output. I want to evaluate this value and provide pass/fail results to the report. Sounds simple, but here is what I am running into:
-The built-in NI step type "Pass/Fail Test" will evaluate the Boolean directly with True=Pass, and False=Fail. This would be fine, except that I have situations where I need False to equal Pass. I've read a few posts that speak of inverting or negating the Boolean result, but they all involve passing the result to a parameter or variable, and then evaluating it outside of the test step. This adds several layers that I don't think I should need.
-I have read a post that suggested I convert the Boolean to a numeric inside of the code module. This does indeed make sense, but this is not practical in my situation because of the scale and implementation of my code modules. I use custom type definitions for controls and indicators from a Labview project, and would have to create a new control/indicator for every one if I wanted to change the data type.
-Next logical step was to see if the "Numeric Limit Test" would recognize a Boolean. Turns out it doesn't.
-After this, I looked into creating a custom step type. This would probably be the most useful, but it is beyond my current ability to do so. I got as far as making a copy of the built in step type and putting it in the custom "MyTypes" directory, but I have made very little progress in editing it to make it a work. Additionally, I've read a few posts that recommend avoiding custom step types.
Hoping someone can point me in the right direction. Please advise.
Thanks,
GSinMN