The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain

Reply
 
Thread Tools Display Modes
Old 04-26-2008, 11:07 PM   #1
Constant Bitrate
jimp's CarPC Specs
 
Join Date: Jan 2008
Location: Texas
Vehicle: 2007 Chevrolet Impala LT
Posts: 151
My Photos: (2)
Variables to trigger outputs

Well it seems like I should have a grasp on this by now but I still can't make it work. it is odd because I have 2 outputs one controlled through logic by a thermistor connected to an analog input, and the other controlled through logic by a variable connected to a button.
the temp controlled one works flawlessly, but the variable controlled one, well I can turn it on but I cant seem to turn it off.
the logic is almost identical in both circuits, for the temp one I have

if input9 = 2.35 then trigger output1 on
and
if input9 = 2.40 then trigger output1 off

i can hold the thermistor between my thumb and finger and in seconds the output comes on, then seconds after I release it the output shuts back off

for the variable one I have

if variable1 = 1 then trigger output0 on
and
if variable1 = 2 then trigger output0 off

I can click the button and the the output comes on, but when I click it a second time the output stays on.

I am watching the variable change as it should in the debugger window but the logic doesn't trigger the output back off. I had another then statement that also changed the variable back to "0" and that worked also, I removed it to simplify things, so it is like the logic is working for everything except shutting off the output.
i have tried all priorities up thru absolute, to no avail. all my timers are set to 100 and seem to be working for the rest.
here is my logic ;
Code:
<!-- Begin Logic Declarations --> <all_statements> <if fire_on="logic"> <boolean_operation type="less than or equal to"> <parameter1> <analogue id="Port9" time="0"></analogue> </parameter1> <parameter2> <number>2.35</number> </parameter2> </boolean_operation> <then> <do function="Trigger Output" functionTargetID="Digital Output 0" vote_opinion="On" vote_priority="Low"></do> </then> </if> <if fire_on="logic"> <boolean_operation type="greater than or equal to"> <parameter1> <analogue id="Port9" time="0"></analogue> </parameter1> <parameter2> <number>2.4</number> </parameter2> </boolean_operation> <then> <do function="Trigger Output" functionTargetID="Digital Output 0" vote_opinion="Off" vote_priority="Low"></do> </then> </if> <if fire_on="logic"> <boolean_operation type="equal to"> <parameter1> <variable do="get" name="My Variable1"></variable> </parameter1> <parameter2> <number>1</number> </parameter2> </boolean_operation> <then> <do function="Trigger Output" functionTargetID="Digital Output 1" vote_opinion="On" vote_priority="Low"></do> </then> </if> <if fire_on="logic"> <boolean_operation type="equal to"> <parameter1> <variable do="get" name="My Variable1"></variable> </parameter1> <parameter2> <number>2</number> </parameter2> </boolean_operation> <then> <do function="Trigger Output" functionTargetID="Digital Output 0" vote_opinion="Off" vote_priority="Low"></do> </then> </if> </all_statements> <!-- End Logic Declarations -->


Last edited by jimp : 04-26-2008 at 11:26 PM.
jimp is offline   Reply With Quote
Sponsored Links
Old 04-27-2008, 01:25 PM   #2
Constant Bitrate
jimp's CarPC Specs
 
Join Date: Jan 2008
Location: Texas
Vehicle: 2007 Chevrolet Impala LT
Posts: 151
My Photos: (2)
I went back through this and started over, got the same results, so I changed the variables priorities to high leaving the temp priorities set to low. this time it all worked, so I stepped the high priorities down to medium, it still worked so I then stepped the Low priorities to medium(now all 4 logics are set at medium) it still is working, next set all 4 back to low, and it is still working!
All I can say is it is working now, why it didn't from the start baffles me but oh well.
jimp is offline   Reply With Quote
Old 04-27-2008, 01:27 PM   #3
Constant Bitrate
jimp's CarPC Specs
 
Join Date: Jan 2008
Location: Texas
Vehicle: 2007 Chevrolet Impala LT
Posts: 151
My Photos: (2)
Ok so now how do I make a variable increment with time instead of button presses?
jimp is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HD Radio Mod: Power Antenna Trigger Iceman_jkh Road Runner 38 07-30-2008 12:06 PM
PAC TR-7 Trigger Module archimense General Hardware Discussion 5 04-07-2008 05:02 PM
*NEW* USB 16 Isolated High Current Digital Outputs, IOPoint-USB bibaja_llc Hardware Development 9 07-04-2007 09:47 PM
Trigger wire from Sony Amp..to Where? palmharbor Power Supplies 4 11-24-2006 01:43 PM
In-car PC controlling 12v outputs hardware/software ?!? skinhead General MP3Car Discussion 3 07-18-2006 12:26 PM


All times are GMT -5. The time now is 12:31 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics