LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Script Wiring to Sequence Frame

Solved!
Go to solution

I want to use scripting to create a wire to a Flat Sequence Structure.

sw.png

How do I do that?

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 1 of 8
(1,942 Views)
Solution
Accepted by paul_cardinale

I think you would first start with creating a tunnel on the Sequence Structure and then wire the numeric control to that tunnel.

 

This is how it is implemented if you are creating FSS from scratch.

santo_13_0-1635782322898.png

https://github.com/DBTaylor/lv-scripting

 

You can try some of the LV Scripting toolkits available on VIPM - could avoid reinventing the wheel.

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 8
(1,937 Views)

@santo_13 wrote:

I think you would first start with creating a tunnel on the Sequence Structure and then wire the numeric control to that tunnel.

 

This is how it is implemented if you are creating FSS from scratch.

santo_13_0-1635782322898.png

https://github.com/DBTaylor/lv-scripting

 

You can try some of the LV Scripting toolkits available on VIPM - could avoid reinventing the wheel.

 


Apparently that only works with a Stacked Sequence, not a Flat one.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 8
(1,928 Views)

Here's how I would do it, create a dummy object inside the Flat Sequence, wire to that, then delete the dummy object.

 

wire to structure.png

Message 4 of 8
(1,923 Views)

Oh Yeah, the snippet I shared was for Stacked Sequence Structure but I assumed that it will be similar for Flat Sequence Structure too.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 8
(1,922 Views)

Are you sure it's wired correctly?  😄  You know I had to say it.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 8
(1,913 Views)

@billko wrote:

Are you sure it's wired correctly?  😄  You know I had to say it.


😄 "Wire correctly"?  It wasn't wired at all.  That was my problem.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 7 of 8
(1,880 Views)

@Darren wrote:

Here's how I would do it, create a dummy object inside the Flat Sequence, wire to that, then delete the dummy object.

 

wire to structure.png


Since I only needed one frame, I just used the Stacked Sequence.

 

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 8 of 8
(1,875 Views)