Windows LED Meter software prob

Discussion in 'Software' started by mattthegamer463, 5 Sep 2006.

  1. mattthegamer463

    mattthegamer463 What's a Dremel?

    Joined:
    26 Nov 2004
    Posts:
    2,804
    Likes Received:
    1
    I have a bit of a problem with my 2 LED meters I have on the front of my case. The software I have will only run 1 Meter ( I have 2, 1 on motherboard parallel and one on an ISA parallel card) but when I try to run 2 instances of the program it opens a configuration window, which is what it says its supposed to do. I've tried tons of stuff to get it to run two, but every time it uses the same running process the second time, even if the process isn't called ledmeter. The software is from this site.

    If nobody knows of a clever trick to getting this program to run two of itself so I can have one aimed at each meter, could someone please tweak the code slightly so that it works for me? Thanks a lot for any help. :)
     
  2. Belial669

    Belial669 What's a Dremel?

    Joined:
    29 Aug 2006
    Posts:
    85
    Likes Received:
    0
    Hey, i ran one of these for a while never tried 2 at the same time.
    If you start it from a command line add the the shortcut you can add the address of the port you want it to run from.
    I don't know if by specifying the port, it will allow you to run 2 instances but it might be worth a try, as from looking at the source it appears that if you dont specify it'll just load the first device found.
    Hope this helps but i wouldnt count on it.
    Otherwise you may want to look at recompiling the source as a different file so the processes are independent entirely and assign the desired port to the seperate program.

    Cheers
    -Belial
     
  3. mattthegamer463

    mattthegamer463 What's a Dremel?

    Joined:
    26 Nov 2004
    Posts:
    2,804
    Likes Received:
    1
    Thanks for the response. I tried this, but when I did the program would just use the already running instance. Also, it didn't change which meter was running. If I ended the process and ran the modified shortcut it would work with the second meter, but only then.
     
  4. Belial669

    Belial669 What's a Dremel?

    Joined:
    29 Aug 2006
    Posts:
    85
    Likes Received:
    0
    Ah in that case i think all thats left is to modify the source.
    i was thinking about it and came up with a couple of approaches.
    1. Remove the function/code that brings up the menu when a second instance is created make it cmd/shortcut accessible only.
    I think by doing this running a second instance under a difference name shouldn't have interact with the first instance as long as the ports are specified at runtime.

    2. Get in there and get dirty , hard code in port addresses assuming that they wont/shouldn't change, then extend the current code essentially by making a copy of the current 8 addressable locations so that there is 16, with the first 8 addressed to the primary LPT port and the 2nd 8 addressed to the secondary LPT.
    In this way essentially you'd have to either extend the menu to access the second connection set, or do away with the menu entirely once again hard coding in what you want it to display.

    Option 2 is considerably more work i believe but i think it has a higher chance of working, i skim read the source before and i think its possible.

    Good luck
    -Belial
     
Tags:

Share This Page