LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a time delay so the signal from my throttle is not too fast for an ESC?

I am using Labview to control a ROV using a Playstation 3 controller.  When I throttle too quickly the ESC cuts off and resets.  I talked to the manufacturer of the ESC and they said the probable cause was the signal was changing to fast for the ESC to follow andthey recommended putting a delay in the program to allow time for the ESC to read the throttle increments.  My question would be "How do I do this?"  Thanks

0 Kudos
Message 1 of 9
(3,257 Views)
There's a lot of ways to do that, it depends on what your current code looks like. Can you post what you have so far?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 9
(3,240 Views)

Have a look at the PID Output Rate Limiter VI.

 

 

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 3 of 9
(3,234 Views)

Here is the current VI.  I am new at this so it mught look rough.

 

Thruster VI

 

0 Kudos
Message 4 of 9
(3,200 Views)
Is the throttle setting the floating point value derived from the big unbundler? If so you could use a running average to limit the rise and fall times.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 9
(3,189 Views)
Or you could insert logic to limit increases and decreases to a specific amount. A shift register would hold the current level which would be incremented by the smaller of two values: the commanded level or the max allowable increase.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 9
(3,184 Views)

I'm not exactly sure how to do what you are talking about.  I have been doing this for about a month and have taken only an intro class in Labview at my university.  Could you point me in the right direction to learn how to do it .  I have attached the VI just in case you wanted a closer look at it.  Thanks

 

Ivan

0 Kudos
Message 7 of 9
(3,174 Views)

It looks from your picture that you simply have a greedy while loop that needs a simple wait inserted in it.  I don't have 2014 installed on this machine so I can't look at your code to verify my assumptions.  

 

Replace that unbundle with "Unbundle by Name"  and get in the habit of always doing it that way (you'll have a lot more years before you need a toupee)


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 9
(3,167 Views)
Whatever you do to slow down the rate, and I think Jeff's solution is the easiest, you are going to slow down the response from the ps3 controller and the rov control might be quite jerky. If that occurs and is unacceptable, you might want to consider a different esc.
0 Kudos
Message 9 of 9
(3,158 Views)