10-22-2009 08:20 AM
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.
10-22-2009 08:28 PM
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.
10-23-2009 02:48 AM
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?
10-23-2009 06:24 AM
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.
10-26-2009 12:09 AM
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.