ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in resolving a Controller-ramp function

 

i use 2 valves named valve 1 and valve2.      Both outputs vary between 0-100%. i would like to control the output of valve2 with a +ve and -ve ramp.

 

when i have valve1 with an output less than 20%, i open the valve2 till the valve 1 is closed upto 50% (i use an independent PID for valve 1). and if valve1 opens above 80%, i close valve2  till the valve1 reaches 50%.

 

i need to use 60 seconds to valve2max and 60 output increments to control valve2.

 

now i'm trying to work with the +ve ramp.

 

please give your valuable suggestions and please correct me in making my LabVIEW code better...

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 1 of 11
(5,002 Views)
i have problems with using the exact 60 output increments.
Kudos always welcome for helpful posts 🙂
0 Kudos
Message 2 of 11
(5,002 Views)

hello Renn,

 

first of all , before coding anything else, dot not use staked sequence any more, it's unscalable

 

have a look on event structure and state machine, with search function and with labview templates. 

 

ps: i'm looking for links and i'll repost

 

Best regards

Tinnitus

 

http://zone.ni.com/devzone/cda/tut/p/id/3024

 

 

 

Message Edité par tinnitus le 02-01-2009 12:12 PM
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Message 3 of 11
(4,992 Views)
http://zone.ni.com/devzone/cda/tut/p/id/7466
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 4 of 11
(4,985 Views)

Hello Tinnitus,

 

thanks so much for your reply.

 

could you please  send the link again? the url "http://zone.ni.com/devzone/cda/tut/p/id/3024" is not valid

 

Renn

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 5 of 11
(4,985 Views)

sorry its appends , i don't know why,

 

try to make a copy-past in url

 

tell if it work by this way

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Message 6 of 11
(4,980 Views)

sorry its appends , i don't know why,

 

try to make a copy-past in url

 

tell if it work by this way

 

there is two links: one ending with 7466 other with 3024
Message Edité par tinnitus le 02-01-2009 12:25 PM
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 7 of 11
(4,977 Views)

Hi Tinnitus,

 

as you suggested, i tried a statemaschine version of the same requirements. i feel it more compact.

 

but still i have a problem with the ramp - i mean the increment of Valve 2 output.

 

please have a look at the attached  Vi. i am not getting a possible solution to better increment the V2 output

 

V1max=V2max=100.

 

time to increment V2 from 0-100 is 60 seconds

 

thanks

 

Renn

 

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 8 of 11
(4,949 Views)
i think the while loop execution rate is a bit higher to make the remainder output in case "+ve ramp V2" equal to zero
Kudos always welcome for helpful posts 🙂
0 Kudos
Message 9 of 11
(4,947 Views)
Message Edité par tinnitus le 02-01-2009 02:24 PM
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 10 of 11
(4,935 Views)