07-06-2019 05:23 AM
Hi,
Using LV scripting, I created a case structure and populated the "FALSE" case, tunnels were automatically created when contents were wired:
I would like the "TRUE" case to act as a pass through. Which is trivial if done manually:
But looks like it's quite tricky to do it through scripting, here is the best I managed to do:
I used ObjHighLight to make sure I was working with the right terminals. Although I'm trying to wire the tunnel's inside terminals,the result is somewhat disappointing:
When using clean up, one notices that the wiring was done outside the Case structure, hence the connection error:
Oddly enough, switching the two terminal parameters in the Connect Wire node yields a different result:
What am I missing ?
Solved! Go to Solution.
07-07-2019 11:34 AM
@yoctopuce wrote:
What am I missing ?
For one, the VI you're working from so we don't have to recreate the attempt from scratch.
07-07-2019 03:05 PM
Well, I am experiencing the problem in a quite large project with a lot of dependencies, but here is a simpler example exposing the issue (VI attached):
And here is the result:
07-08-2019 03:40 AM
Those tunnels have inner and outer terminals. 1 outer terminal per tunnel, one inner terminal per case for the inner tunnel.
You can get those inner tunnel terminals from the case terminals (*sigh*), but there are 3 case terminals, so you'd need a way to select the right ones...
07-08-2019 01:27 PM
Thank you wiebe@CARYA , I figured that it was a matter of getting access to the inner terminals, but I never imagined that I had to cast the case structure terminals into outer terminals in order to get access to the inner part. Tricky.