Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted

11-09-2017 07:02 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Labels:

Hi,

To simplify my problem: the VI contains a boolean indicator (representing the ON/OFF status of a pump) and a numeric control (representing the measured pressure of the system).

The boolean indicator needs to be ON during a certain time (for example it stays ON for 10 seconds and then turns OFF again). But if the numeric control goes over a certain limit, the boolean must turn OFF (even if it did not reach the given time). But when the control goes lower than the limit again, the boolean must turn ON for the remaining time.

For example:

Time for which the boolean must be ON = 10 seconds

Upper limit for the numeric control = 5

The numeric control stays at 4, boolean turns ON. After 6 seconds, the numeric control goes to 6, so the boolean turns OFF. Eventually the numeric control goes back to 4, so the boolean must turn ON again for the remaining 4 seconds.

Does anyone know how to solve this on LabView?

Thank you.

Solved! Go to Solution.

11-09-2017 07:08 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Charly,

I guess you can use ElapsedTime for this ON/OFF part related to time. The other condition (limit check) is just a boolean operation later on: LED:=ElapsedTime AND limit-check…

Best regards,

GerdW

CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO

Kudos are welcome

GerdW

CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO

Kudos are welcome

11-09-2017 07:13 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

@GerdW wrote:

Hi Charly,

I guess you can use ElapsedTime for this ON/OFF part related to time. The other condition (limit check) is just a boolean operation later on: LED:=ElapsedTime AND limit-check…

Hi GerdW, thank you for your reply!

The problem is that the time keeps elapsing. So with your solution, the boolean turns OFF when the limit is not check, indeed. But when the limit is check again, the boolean will not turn ON for the remaining time. In my example, if the numeric control goes to 6 for more than 4 seconds and then goes back to 4, well the boolean will not turn ON at all because the limit time will be reached.

Solution

Accepted by topic author HZintern

11-09-2017 07:43 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Charly,

then you could just create your own ElapsedTime function with an additional "Pause!" input…

Best regards,

GerdW

CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO

Kudos are welcome

GerdW

CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO

Kudos are welcome