Jump to content

How to insert an invoke node to a Flat Sequence

Recommended Posts

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.

Link to comment

...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).

Link to comment

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.

Link to comment

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.


Link to comment

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.

  • Like 1
Link to comment

What? It is still supported in LV2014. What version of LabVIEW are you using?  :shifty:


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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Ajayvignesh
      I need to read the installer version number (not the exe version number) programmatically.  Is there any way?
      I have a bundled software which has multiple EXE's under one installer.  Commonly I use the installer version number for reference and want to show it up to the user.  Is there any way to get the installer's version number instead of executable's version number?
    • By maxprs
      Hi guys, new to LAVA forum, this is my first post here. I'm a long time LabVIEW user, and I'm stuck with a problem... so I thought maybe some one here could help me. There is a formula node in my application (more than one, but let's find the solution for one), and the developer can change the formula depending on how it want to customize the application. What I need to do is to show the content of the formula node to the user, so he knows exactly what's the formula in use at the moment. This must work on the deployed application, so with the run time engine. Infact the developer build the application after the customization of the formula. I have tried the following: 1) I put the formula node in a separate VI, in order to capture the block diagram image and then show that image to the user. I've used the BD.Get Image Scaled method, but it's clearly written in the help that id doesn't work with the run time engine. 2) Using the report generation toolkit I can call the Append VI Block Diagram to Report to an HTML report. I can't find in the help if it is supposed to work in run time engine, but I've had bad experiences in the past with that tool. And it doesn't seem to work. 3) I've tried a different approach using the labview scripting. I'm able to open the object reference to the formula node and then to load its content in a string with the property Formula Expression. But once the application is built it doesn't work, even if I'm not creating any code with the scripting, just reading.   In the end I don't care if the formula is captured on an image rather than a string, or whatever... but it must be what is written in the formula node inside the executable. Just wonder if I've used the above methods in a wrong way, or if there is a different way to do it.   Thanks   Max
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.