LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing a subVI's input lines

Solved!
Go to solution

I'm working with a piece of code created by the (unfortunately recently inactive) author of this example. In short, the code feeds a square wave to user-selected lines on a NI-DAQ. I'm trying to make adjustments to the array below, such that each of the cells/elements includes a control/menu for an offset. As is, the user can only specify frequency and duty cycle, but for my application, I want to be able to include an offset to the square wave. image.png

I can go into the array for this and customize it so that there's a third field in each cell titled 'offset,' but the problem is that the "Generate PWM" vi doesn't update to have an input channel for the new entry field I created. I'm not sure how to edit "Generate PWM" such that it will take another input line. (image illustrating this below)

image.png

 

image.pngAbove is "Generate PWM.vi" -- I've made an adjustment already: I added in that double/control (offset) to as the function generator has an input line for offset already. I don't know what parts of the VI determine the inputs it will take when used as a subVI in the larger "Cont Gen Dig.." VI I've attached. 

 

Any help or insight is greatly appreciated

 

0 Kudos
Message 1 of 3
(2,609 Views)
Solution
Accepted by topic author vomojo
Message 2 of 3
(2,582 Views)

Thanks, that solved the problem! Now the subvi accepts the info in the phase field. 

 

0 Kudos
Message 3 of 3
(2,527 Views)