LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to determine Connector Pane orientation?

While the Connector Pane Pattern is available in the ConPane properties, there doesn't seem to be an equivalent property to show the orientation/rotation.  The only reference I can find on ni.com is a 10-year-old post which states that "we aim to include it in the next upgrade of LabVIEW".  Am I just not able to find it?

 

0 Kudos
Message 1 of 19
(3,656 Views)

I also don't see it.

0 Kudos
Message 2 of 19
(3,640 Views)

I don't think I ever rotated or flipped a CP, so I can't say I miss this, but there seems to be a roundabout way of doing this - use the Terminal Bounds[] property to recognize the change. You can either write logic which will identify it from the data or you can use the methods to go through all the flipping and rotation permutations for each pattern to generate a lookup table of the possible states, then use that to look up your current state.


___________________
Try to take over the world!
0 Kudos
Message 3 of 19
(3,632 Views)

@tst wrote:

I don't think I ever rotated or flipped a CP, so I can't say I miss this, 


Not only have I never used this, I didn't know it existed and it has been in a right click menu I probably use daily.

Message 4 of 19
(3,599 Views)

I second Hooovahh. I could potentially see it being useful, however, when I make smaller icons and the connector pane I need is resulting in seeing the wire in the whitespace around the icon. A rotation could help me get the connectors I need in the right place. That said, this would probably be less than 1% of the VIs I make, as I generally try to stick with a standard, square icon. 

 

To the OP, I'm curious what you need to determine the rotation for? 

0 Kudos
Message 5 of 19
(3,593 Views)

Do not rotate your ConPanes.  Do not flip your ConPanes.

 

I have a lot of scripting code which I refuse to release publically because the logic I can use knowing that the conpane is standard (ie. error out is in terminal 0) is often quite simple.  Adding the possibility for flipped ConPanes increases the code complexity significantly.

 

If you are stuck doing this, I do it this way which is much simpler than what tst was suggesting.  That is to say simpler once you know what you are looking for....

 

ConPane Orientation.png

 

 

Message 6 of 19
(3,581 Views)

@Darin.K wrote:

Do not rotate your ConPanes.  Do not flip your ConPanes.

 

I have a lot of scripting code which I refuse to release publically because the logic I can use knowing that the conpane is standard (ie. error out is in terminal 0) is often quite simple.  Adding the possibility for flipped ConPanes increases the code complexity significantly.

 

If you are stuck doing this, I do it this way which is much simpler than what tst was suggesting.  That is to say simpler once you know what you are looking for....

 

ConPane Orientation.png

 

 


how the ef do you figure this stuff out?

Message 7 of 19
(3,576 Views)

@for(imstuck) wrote:

how the ef do you figure this stuff out?


I enter the mindset of a LV developer and ask myself where would I put this information.  Then I have to quickly leave that mindset, otherwise I wind up writing huge VIs with so many interdependencies I can no longer debug things and small changes in one area lead to changes all over the place...   Smiley Happy

0 Kudos
Message 8 of 19
(3,568 Views)

@Darin.K wrote:

I enter the mindset of a LV developer and ask myself where would I put this information.  Then I have to quickly leave that mindset, otherwise I wind up writing huge VIs with so many interdependencies I can no longer debug things and small changes in one area lead to changes all over the place...   Smiley Happy


Ohhh.

0 Kudos
Message 9 of 19
(3,566 Views)

Actually, you do neet to use tst's solution, since you can rotate and flip a connector pane multiple times.  I would determine the connector pane pattern, pick two opposite terminals, find their actual positions, compare to known patterns, then use that to determine whether or not the pane has been rotated and/or flipped and where it went.  All of this is irrelevant if you just don't do it (I don't).

0 Kudos
Message 10 of 19
(3,546 Views)