From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Unit Test Framework: Test Vectors cause VI output to always be 0?

Hello, I'm trying out the Unit Test Framework. I'm struggling to make Test Vectors work correctly.

 

My unit test simply involves 1 VI that takes 2 numeric inputs and outputs their average.

Average.vi.png

 


When I manually set up every single test case and don't use Test Vectors, I get the expected results:

 

Manually entering every test case: The VI's outputs correctly reflect the inputsManually entering every test case: The VI's outputs correctly reflect the inputs


However, when I apply the same inputs using Test Vectors, my VI always outputs 0 no matter what the inputs are:

 

Using test vectors: The VI's outputs are always 0Using test vectors: The VI's outputs are always 0


 

What's going on? (Test files attached -- LabVIEW 2020)

Certified LabVIEW Developer
0 Kudos
Message 1 of 1
(1,069 Views)