Results 1 to 4 of 4

Thread: Enabling an output trigger

  1. #1
    Low Bitrate no_hazmats's Avatar
    Join Date
    Mar 2009
    Posts
    68

    Enabling an output trigger

    Can someone help me with this?

    I'm doing a simple temperature controller. I monitor the water temperature in my car and when it hits a pre-set level, I want to turn on some relays.

    I have a screen that displays all my inputs, variables, & outputs, and when I set the controller up in the most straightforward way, it works as intended. But I want to enable the trigger based on the state of an 'enable' screen button.

    I compare a Fahrenheit sensor to a number. Next I compare the output of the > comparator to a variable that represent the 'enable' state - based on my button. Then it goes to my output. But my 'then statements' trigger an output when the temp exceeds the threshold regardless of the state of the enable signal.

    Name:  logic1.jpg
Views: 144
Size:  15.3 KB

    I also tried setting a new variable, but no difference.

    Name:  logic2.jpg
Views: 140
Size:  16.6 KB

    Any ideas what I'm doing wrong?

    Thanks,

    Shep
    Shep

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,052
    you need to do "wvo_enable == whatever" tied to the second input of the AND gate
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #3
    Low Bitrate no_hazmats's Avatar
    Join Date
    Mar 2009
    Posts
    68
    Quote Originally Posted by 2k1Toaster View Post
    you need to do "wvo_enable == whatever" tied to the second input of the AND gate
    So, using the debugger it seems that my "Enable" button only sets the variable wvo_enable momentarily. I'm new at this and I reckon I'm a dummy, but I kind of thought when the button was showing the 'pressed' image that it would hold the variable in that state rather than momentarily setting it then returning to its original state.
    Shep

  4. #4
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,052
    Quote Originally Posted by no_hazmats View Post
    So, using the debugger it seems that my "Enable" button only sets the variable wvo_enable momentarily. I'm new at this and I reckon I'm a dummy, but I kind of thought when the button was showing the 'pressed' image that it would hold the variable in that state rather than momentarily setting it then returning to its original state.
    If so, then you have a priority conflict. Change the button to high priority and make sure it is "attached" to the vote.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

Similar Threads

  1. Replies: 7
    Last Post: 01-03-2009, 01:52 PM
  2. using amp output to input?
    By Xprime4 in forum Car Audio
    Replies: 6
    Last Post: 12-21-2007, 09:26 AM
  3. M-Audio Fast Track Pro: 2.1 Output Possible?
    By speedycheater in forum General Hardware Discussion
    Replies: 2
    Last Post: 12-10-2007, 01:07 PM
  4. Aux-in Analog audio... will it output from the SPDIF on mainboard?
    By coachreed in forum General Hardware Discussion
    Replies: 0
    Last Post: 05-07-2005, 09:57 PM
  5. No lcd output
    By JettaMP3 in forum General Hardware Discussion
    Replies: 4
    Last Post: 03-12-2001, 02:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •