06-07-2017 08:15 PM
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.
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)
Above 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
Solved! Go to Solution.
06-07-2017 09:22 PM
06-09-2017 03:55 PM
Thanks, that solved the problem! Now the subvi accepts the info in the phase field.