LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unit Test Framework with SVE

I'm trying to run an unit test for a real-time VI, which uses SVE for communication. However, my test always fails.

 

Unit Test Framework Results dialog, Test Errors tab, (Error Details: "Test Execution error" > myVI.vi > myVI.lvtest) Error Description text box says:

"Possible reason(s):
LabVIEW cannot access this shared variable. This error typically occurs if you attempt to set values to read-only variables or get values from write-only variables. "

 

I can't see anywhere name of what variable is referred as "this". Same error occurs even if in my test case all shared variables (inputs, outputs) are unchecked.

 

Shouldn't Unit Test Framework deploy needed SVE stuff automatically? I also tried starting other RT stuff in test setup VI manually, with similar results as described above.

 

0 Kudos
Message 1 of 5
(3,486 Views)

 

Which version of UTF are you using? UTF 1.0 or 2009?

 

Could you upload your project and the test so we can check what's the problem.

0 Kudos
Message 2 of 5
(3,462 Views)

When you try to compare a write-only shared variable, unit test framework toolkit will report the error you met.  What the access type of your shared variable is? Can you try to set the access type to "read/write" to see if the error still exists?

0 Kudos
Message 3 of 5
(3,445 Views)

Thanks for ideas dreamweaver! I'm using UTF 1.0 here.

When trying to make simple example project to demonstrate the problem, I got an idea to test changing type of one variable from "Single process" to "Network-Published" (like all others). After this UTF executed test happily! I tried some other variable settings too, but without effect. 

 

So it seems to me UTF is unable to test software that uses Single Process type variables. Can anyone else confirm this? Is it documented somewhere?

 

I don't have UTF 2009 available at the moment and I didn't found any mention about this from its readme.txt. Upgrading should be possible if it helps though.

 

0 Kudos
Message 4 of 5
(3,433 Views)

Hi racc,

 

Currently, UTF don't support single process shared variable on RT target. You can change the type of these shared varaibles to network-published and UTF should be fine. If you still get that error, could you upload your project? You can delete all the VIs,  just keep these shared variables.

0 Kudos
Message 5 of 5
(3,414 Views)