LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with inverter program

I am very new to labview and I need a lot of help fast. I have been given this vi program, which I have attached, that operates a bunch of inverters. The program is driving the inverter which in turn drives the agitator on a washing machine. The agitator goes in forward and reverse direction as a result of a relay within the inverter being supplied voltage to make it open and close. I need to supply voltage to the relay to make it go forward, reverse, and the pause before the next cycle begins. The current program has it doing a forward reverse and then immediately starts the next cycle. If any one can take a look at this program and let me know, first of all what the heck is going on, and second how to fix my problem, that would be incredibly helpful to me. If anyone has trouble opening the file let me know, I think attaching the vi should work but it may also look for a dll file or something when trying to open. Email me if you cannot open the file and I will send you the dll file as well. Your help is greatly appreciated. Thank you very much.

Tony
0 Kudos
Message 1 of 9
(3,585 Views)
sorry I forgot my email: anthony.serafini@ge.com

Thanks
0 Kudos
Message 2 of 9
(3,578 Views)
Hello Tony,

you programmed it to run continously...
After the timed while loop runs through your array of ramp values you start again at index 0 (upper shift register). Instead of this end this while loop by combining the output from the comparison with your stop2 button (end loop when stop2 OR end of arrray). Now it will work.

Btw. why do you use "Insert to Array" when you want to concat 3 arrays (sequence frame 0)? Just use a "Build Array" and set "Concat Inputs" via mouse right-click.

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 9
(3,572 Views)
I did not right the program. I am a co-op who just started and the co-op who worked before me wrote the program and then left and now I am the pleasure of learning labview and debugging this kids vi that I have yet to figure out. Oh well such is life. Thank you for your help I will try that.

Tony
0 Kudos
Message 4 of 9
(3,568 Views)
I added a couple comments to the code and modified it to give you the pause between cycles that you mentioned.
Randall Pursley
0 Kudos
Message 5 of 9
(3,565 Views)
Hey Gerd

With the way you described fixing the program what exactly will that do? The "pause" I need to have in between each forward and reverse cycle will now be controlled by the stop2 button? Is there a way I can wire a timer or delay to the loop instead? What I mean is I would like an input or control on the front panel where I can enter a delay time value, say like 1 second or 3 seconds, and the program will run forward, then reverse, and then pause for that value entered into the timer or delay control on the front panel. Is this possible and how do I go about fixing the block diagram and/or front panel to execute these controls?

Tony
0 Kudos
Message 6 of 9
(3,564 Views)
Randall

Thanks for your help but the "run" arrow is broken and the program has an error. It says the case selector in the true loop is unwired? I am not sure where that should go in your modified program.

Tony
0 Kudos
Message 7 of 9
(3,561 Views)
Sorry about that, I saved it off as a 7.0 version and the timed loop went away. This should work.

Gerd is right that the program is poorly written. Hopefully if this one works for you, you can rewrite this vi and use it to learn labview.
Randall Pursley
0 Kudos
Message 8 of 9
(3,546 Views)
Thanks to all of you guys who helped me, you are lifesavers!!! Our program is now running the way we want it to and its all thanks to you! Thanks again.

Tony
0 Kudos
Message 9 of 9
(3,532 Views)