LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital signal

Solved!
Go to solution

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?

Tim
GHSP
0 Kudos
Message 21 of 36
(1,154 Views)

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.

Tim
GHSP
Download All
0 Kudos
Message 22 of 36
(1,145 Views)

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

0 Kudos
Message 23 of 36
(1,134 Views)

If it is possible to download LabVIEW 2010 via the NI website, then I'll have the 2010 version within 3,5 hours Smiley Wink 

 

Regards,

 

Michael

0 Kudos
Message 24 of 36
(1,131 Views)

Here is 2009

Tim
GHSP
0 Kudos
Message 25 of 36
(1,120 Views)

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

0 Kudos
Message 26 of 36
(1,115 Views)

SO you need the same control loop with different channels. Do you need to run them at the same time?

Tim
GHSP
0 Kudos
Message 27 of 36
(1,114 Views)

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...

Tim
GHSP
0 Kudos
Message 28 of 36
(1,108 Views)

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.

Tim
GHSP
0 Kudos
Message 29 of 36
(1,103 Views)

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

0 Kudos
Message 30 of 36
(1,094 Views)