08-18-2010 07:04 AM
What is going to need to be different between the two control loops for the big and small? Is it just the channels that you are going to be reading?
08-18-2010 07:38 AM
Here is a cleaned up version of what you posted earlier.
Yo uneed to try and keep everything on one window. It is much easier to read. Clean your code often.
08-19-2010 01:33 AM
Dear,
I can't open the VI, because it's a LabVIEW 2010 version. I have LabVIEW 2009 and I'm unable to open the VI. Can you please save it as an older version and post it again?
Regards,
Michael
08-19-2010 02:05 AM
If it is possible to download LabVIEW 2010 via the NI website, then I'll have the 2010 version within 3,5 hours
Regards,
Michael
08-19-2010 06:42 AM
Here is 2009
08-19-2010 07:12 AM
Dear aeastet,
Thanks for cleaning up the VI. I see that you have placed an event structure in the upper for loop. What is the benefit of this? My problem with this VI is that I don't know how to duplicate the code in order to make the big cylinder work. I have tried to make a new for loop and state machine but I didn't manage to make the big cylinder work. Below are all the channels that are used to control the cylinders:
Analog output proportional pressure control big cylinder
o AO0 (manual control 0-10 V)
• Analog output proportional pressure control small cylinder
o AO1 (manual control 0-10 V)
• Digital output poppet
o DO4 (manual control logic low of logic high)
• Digital output valve pull big cylinder
o DO3 (open; Logic Low = 0 V to +0.8 V/ close; Logic High/ hold; logic low)
• Digital output valve push big cylinder
o DO2 (open; Logic High = +2 V to +5 V/ close; logic low/ hold; logic low)
• Digital output valve pull small cylinder
o DO1 (open; Logic Low = 0 V to +0.8 V/ close; logic high/ hold; logic low)
• Digital output valve push small cylinder
o DO0 (open; Logic High = +2 V to +5 V/ close; logic low/ hold; logic low)
What is the best way to make the other cylinder work?
Regards,
Michael
08-19-2010 07:21 AM
SO you need the same control loop with different channels. Do you need to run them at the same time?
08-19-2010 07:31 AM
I am also going to need a little more information on what you are trying to do with this program.
I start the program then this does this and then I expect this to do this etc...
08-19-2010 07:57 AM
First I think I would break up the loops as follows:
One loop for AO
One loop for AI
One loop for DI/O
One loop for processing
This will make it a little easier to start adding what you need. Once we get these broken appart then we can start figuring everythig else out.
08-19-2010 08:25 AM
I think the control loops can run at the same time, but I want to control both cylinders separately. I don't think it's a good idea to break up the loops as you suggested. I want to make two different loops (if this is necessary?), one for the big cylinder and one for the small cylinder. The lay-out of the VI is good, I only want to add an extra for loop and state machine. I can make a separate VI and make a sort of LabVIEW-project, but I want the two codes implemented in one VI and one front panel. I sort of want to split the signals like this:
Small cylinder: AI0, AO0, DO2:3
Big cylinder: AI1, AO1, DO0:1
General (poppet): DO4
Regards,
Michael