LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically deleting a splitter crashes LabVIEW

GitHub - HopeHarrison/PaneRelief does advanced splitters stuff, not supported by scripting. I think it's origins are the frustration that you can't change splitter style, so it might not actually delete a splitter (only change a byte\flag in the VI data). If there is a way to get this done, that might be a good place to start looking.

 

It does some pretty nasty things to achieve this.

 

Bob's suggestion (to use a SubPanel that loads a (reentrant) VI with a splitter and 2 SubPanels) does work, but it's a means to a shared end (dynamic splitters), not a 1-1 replacement for the scripting, that has a very specific use case.

Message 11 of 13
(216 Views)

Thanks, I've looked into the code. The low-level VI manipulations are quite insane indeed! While I see how this could be used to change a flag, removing a splitter would require changing the entire FP structure, which is yet another level of hacking into the internal structure...

0 Kudos
Message 12 of 13
(168 Views)

@raphschru wrote:

Thanks, I've looked into the code. The low-level VI manipulations are quite insane indeed! While I see how this could be used to change a flag, removing a splitter would require changing the entire FP structure, which is yet another level of hacking into the internal structure...


Yes, I hope I didn't get your hopes up.

 

Modifying the FP heap (this rigorously) is probably not enough either. There are probably other structures (LVDS?) that also need adjustment...

0 Kudos
Message 13 of 13
(152 Views)