LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unit Test Framework --> Subpanel Control on SetupVI FP

Hi,

 

been tinkering a bit with the UTF and found out that the presence of a SubPanel Control on the SetupVIs Frontpanel produces errors int the UTF:

screenshot.png

 

As soon as the control is deleted from the FP, the error's gone. Is this expected behaviour?

Yes, I am aware that the use case might be a bit strange... Smiley Wink

 

Cheers

Oli

 

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

Yes, I would expect that to be the intended behavior -- and it does make sense since a subpanel is a control that the user can't actually interact with.

 

So given that the "strangeness" has been conceeded, why would you want to do such a thing? Smiley Wink

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(3,150 Views)

I put together some test cases for a SubVIs that modifies/ reads properties of a SubPanel via VI Server. So I needed a valid reference, which I intended to create using the setup VI.

As described in the original post, I'm tinkering with the UTF trying to find out, how and where to use it .

 

 

 

 

0 Kudos
Message 3 of 5
(3,135 Views)
Ahh...That doesn't seem so strange. How about if you hide the control, or put the subpanel on the front panel of a subVI and pass out the reference.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 5
(3,115 Views)

Hiding the SubPanel was one of my first thoughts, but unfortunately LabVIEW does not allow this (no option under RightClick-->Advanced).

I don't think, the SubVI version will work as long as I don't start it asynchronously. After a synchronous call, the reference will become in valid again, won't it?

Didn't want to go all the way for this particular use case.

 

Anyway, in this case, it doesn't matter that much. I'll accept it this way for now. Thanks a lot for your answers

 

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