Page 3 of 7 FirstFirst 1234567 LastLast
Results 21 to 30 of 63

Thread: MDX and COM big update

  1. #21
    Newbie
    Join Date
    Nov 2008
    Posts
    42
    So far i have been able to get MDX to send codes to RR, but when i want RR to read my FB temp sensor and display the results in one of the skins it doesnt show any data. I tried to start very basic and just get a reading from the analog input but i cant get the voltage to display either. Any tips??

  2. #22
    Constant Bitrate stealinfool's Avatar
    Join Date
    Dec 2005
    Location
    Orlando
    Posts
    142
    Quote Originally Posted by 2k1Toaster View Post

    Values sent from MDX and displayed by RoadRunner:

    MDX Code:
    Nothing specific, it is built off of any configuration file.

    RoadRunner Code:
    Code:
    /, L, x, y, w, h, color R;RGB, G, B, font size;FONT, font name, Code;LABELCODES, Tooltip;LABELALIGNMENT
    L03,260,10,150,30,255,255,255,18,"Arial Narrow:B","fusion_ai_0", ""
    L04,410,10,180,30,128,255,128,18,"Arial Narrow:B","fusion_ai_0_3", ""
    L03,260,10,150,30,255,255,255,18,"Arial Narrow:B","fusion_do_0", ""
    L03,260,10,150,30,255,255,255,18,"Arial Narrow:B","fusion_di_0", ""
    L05,260,40,150,30,255,255,255,18,"Arial Narrow:B","fusion_varbool_0", ""
    L06,410,40,180,30,128,255,128,18,"Arial Narrow:B","fusion_varnum_0", ""
    What it does:
    When a RoadRunner label is set to that above, it will poll MDX automatically. Like before, MDX only tries to interpret things that begin with "fusion".
    The next field is the type, which can be "ai", "do", "di", "varbool", "varnum" which give you back respectively: analogue input, digitial output, digital input, boolean variable, numeric variable.
    The next number is the index. 0 means the 1st one, 4 means the 5th one. The number is determined by the order in the configuration file, NOT the port number. 0th item is the top of the file, Nth item is at the end of the file.
    The optional fourh parameter is the decimal precision, only works on analogue inputs.
    These will automatically update as RoadRunner constantly polls.

    ==================================================
    ==================================================
    From what I understand, that should do it. Try the various "ai_xx" numbers until you come up with a value. I'm only regurgitating though, so if you can't make that work, hopefully someone else can help.

  3. #23
    Newbie
    Join Date
    Nov 2008
    Posts
    42
    yeah, i have tried that. I tried every number from 0 to 10, and even 00-10. i only have one analog input, so it should be easy to find.

  4. #24
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by faron View Post
    yeah, i have tried that. I tried every number from 0 to 10, and even 00-10. i only have one analog input, so it should be easy to find.
    If you have the configuration file correctly setup with your Brain instance, analogue input instance, then count how many analogue instnaces are before it, (in your case it should be 0 above it so your index would be zero).

    In the COM area make sure you have it enabled and setup exactly as above.

    Make sure you are using the updater. If you dont update, I dont help.

    The code in RR would be "L03,260,10,150,30,255,255,255,18,"Arial Narrow:B","fusion_ai_0", """

    Make sure the DLL is registered. If you didnt use the installer recently, and had MDX installed before the COM update, then run the registration command file in the MDX directory.
    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

  5. #25
    Newbie
    Join Date
    Nov 2008
    Posts
    42
    I decided to try it on a fresh machine, so i istalled MDX w/Updater, Installed RR and started from scratch. As before the com test buttom works on MDX when i press it the play command is sent to RR. I am still unable to get RR to turn on digital outputs, or get RR to show any value from my analog input. I'm sure it is something simple I am missing, but I will send some one copies of the MDX config file and a copy of the RR skin file where I am calling these functions if someone thinks they could help. I am about to pull my hair out this has been driving me crazy for 3 days. Any help would be greatly appreciated.

  6. #26
    Variable Bitrate
    Join Date
    Aug 2006
    Location
    Central PA
    Posts
    246
    I used your example and it works great! If I wanted to use your example to use a trigger like a resistance from a steering wheel button how would I modify your example? I'm assuming starting with removing functionTargetID="Digital Output 0" .

  7. #27
    Newbie
    Join Date
    Nov 2008
    Posts
    42
    I am still trying to get this to work, I have copied and pasted exactly as above with no luck. I am using the updater and I ran the registration command.

    I sthere a possability some one could send me a sample configuration file that works for them. I am pretty sure that RR is sending the command, but MDX isnt rcognizing it. When I ren RR in debug mode i see that it sends fusion_vote_RoadRunnerCommand but the outputs never energize.

  8. #28
    Constant Bitrate stealinfool's Avatar
    Join Date
    Dec 2005
    Location
    Orlando
    Posts
    142
    Quote Originally Posted by scotty562 View Post
    I used your example and it works great! If I wanted to use your example to use a trigger like a resistance from a steering wheel button how would I modify your example? I'm assuming starting with removing functionTargetID="Digital Output 0" .

    Is that directed to me?

  9. #29
    Variable Bitrate
    Join Date
    Aug 2006
    Location
    Central PA
    Posts
    246
    It was directed to Nick, but I'll take suggestions from anyone who knows.

  10. #30
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Ok, scotty and faron, post your xml code from the COM section, and RR.
    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

Page 3 of 7 FirstFirst 1234567 LastLast

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
  •