spaghetti_developer Posted July 30, 2015 Report Posted July 30, 2015 Hi guys, It's long time that I don't ask you an help, but this matter starts to make me crazy. By the scripting I can create a flat sequence on the BD, I'm able to create an invoke node (FP.Close) and I can insert into the flat sequence that invoke node but, I'm not able to wire the sequence to one button just to give a flow to the diagram. Can anyone help me? Thank you in advance. Quote
hooovahh Posted July 30, 2015 Report Posted July 30, 2015 ...what? Post your code and what you want. You can make a sequence structure, and you can make the invoke node, but you can't wire a button (boolean control) to the close invoke node? I think it is as easy as getting all terminals for the invoke node object, then finding the one that is of boolean data type, then using the invoke node on the terminal wiring it to the control terminal (of the boolean). Quote
spaghetti_developer Posted July 30, 2015 Author Report Posted July 30, 2015 Hi hooovahh, You already helped me one time ago. I would like to do the same BD as the attached picture but using the scripting. As I said, I'm able to do the sequence, I can do the button, I can do the invoke node, but I can't do the wire and the sequence tunnel. Can you help me? Quote
hooovahh Posted July 30, 2015 Report Posted July 30, 2015 You already helped me one time ago. I would like to do the same BD as the attached picture but using the scripting. As I said, I'm able to do the sequence, I can do the button, I can do the invoke node, but I can't do the wire and the sequence tunnel. Can you help me? Okay I think I understand what you are trying to do, can you post the scripting code already that does the sequence and invoke node. EDIT wait where would this boolean be wired to? just the sequence structure not the invoke node? Because that invoke node doesn't have a boolean input. Quote
hooovahh Posted July 30, 2015 Report Posted July 30, 2015 Never mind I made the VI. Attached is a VI that makes a new VI, sequence structure, VI invoke node, boolean, and wires the boolean to the structure. Make Sequence Boolean Invoke Node.vi Quote
spaghetti_developer Posted July 30, 2015 Author Report Posted July 30, 2015 I want the that boolean have to be wired just to the sequence structure. I want that wired just to give a flow to the diagram. Attached the code. I solved my problem just adding a frame to the flat sequence that I'm using. On the left frame I set the boolean and on the right frame I set the invoke node. It sesms it work properly. Scripting_Exemple_001.vi Quote
spaghetti_developer Posted July 30, 2015 Author Report Posted July 30, 2015 (edited) Now I understood what I have to do with a Stacked Sequence, but I wold like the same with a Flat Sequence, is it possible? Why the Flat Sequence? Because the Stacked Sequence is not longer supported. Edited July 30, 2015 by spaghetti_developer Quote
eberaud Posted July 30, 2015 Report Posted July 30, 2015 Because the Stacked Sequence is not longer supported. What? It is still supported in LV2014. What version of LabVIEW are you using? Quote
hooovahh Posted July 30, 2015 Report Posted July 30, 2015 Just use the invoke node on the Sequence reference, and use the Convert to Flat Sequence. The two objects don't belong to the same direct parent class so methods on one don't always translate to the other. In 2014 the Stacked Sequence structure was removed from the palette, it is still supported just maybe close to being deprecated. 1 Quote
Jordan Kuehn Posted July 30, 2015 Report Posted July 30, 2015 In 2014 the Stacked Sequence structure was removed from the palette, it is still supported just maybe close to being deprecated. Side note: I did not know this and reading this made me very very happy. 1 Quote
hooovahh Posted July 30, 2015 Report Posted July 30, 2015 Side note: I did not know this and reading this made me very very happy. There is this thread on it. https://forums.ni.com/t5/LabVIEW/Remove-the-stacked-sequence-structure-from-LabVIEW/td-p/2680191 It's a fun and long read. Quote
eberaud Posted July 30, 2015 Report Posted July 30, 2015 I use the SSS so rarely that I didn't even know it was directly on the palette in previous versions Quote
spaghetti_developer Posted July 31, 2015 Author Report Posted July 31, 2015 What? It is still supported in LV2014. What version of LabVIEW are you using? I'm using the LV2014 and its every previous version, in LV2014 if you want to use the stacked sequence you have to select a flat sequence from the functions palette and transform it into a stacked sequence. The NI advises to don't use the Stacked Sequence because it is obsoleted and deprecated. I would like that my code survives through the future LabView versions. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.