Results 1 to 10 of 10

Thread: VB Net Plugin Help

  1. #1
    Join Date
    Nov 2007
    Location
    Little Rock, AR
    Posts
    10

    Default VB Net Plugin Help

    Hi fellows. I need some VB Net help. I got out programming at VB6, just before .net came along. Now I'm back in and trying to get over the learning curve of VB net. I’m working on a plugin to communicate with a PLC via ModbusTCP. I have the Modbus portion written and working. Now, I’m trying to integrate it into a Vixen plugin. The problem I’m having is that after I reference vixen.exe, I can’t seem to get the inheritance setup correctly. Do you fellows mind putting a second set of eyes on and see if I’m missing something obvious? I’ve attached the source files. Thanks in advance.

    Duck-
    Attached Files Attached Files

  2. #2
    Join Date
    May 2007
    Location
    Broken Arrow, Oklahoma
    Posts
    414

    Default

    I will see if I can look at it this weekend and get the methods implemented for you.

  3. #3
    Join Date
    Nov 2007
    Location
    Little Rock, AR
    Posts
    10

    Default

    I think I've hit a milestone with the source. I'll post back if I have some more specific questions. Thanks for the offer, but I think I need to muddle my way through more of the code.

  4. #4
    Join Date
    Nov 2007
    Location
    Little Rock, AR
    Posts
    10

    Default

    I give. I can't VB to reference correctly. I can reference, compile, and run the plugin with C#. I guess its time to learn a new language. C# doesn't look that bad. Thanks again for the offer to help teberle.
    Don't divide by 0 and don't be the circuit.

  5. #5
    Join Date
    May 2007
    Location
    Broken Arrow, Oklahoma
    Posts
    414

    Default

    I helped someone earlier this year with getting the vixen interface implemented in VB. I will post something shortly.

  6. #6
    Join Date
    May 2007
    Location
    Broken Arrow, Oklahoma
    Posts
    414

    Default

    Jduck,

    I couldn't open your solution as it says you are using a newer version than I. I am using VS studio 2005 professional, so anyway I created a new solution and just implemented the Vixen interface for you. Attached is a vb.net class for .net 2.0 that has the methods implemented. You will need to add code to the following routines.

    Event
    Initialize
    Setup
    Shutdown
    Startup

    HardwareMap may need modified based on what you are doing.

    Let me know if you have any questions.

    Tony
    Attached Files Attached Files

  7. #7
    Join Date
    Nov 2007
    Location
    Little Rock, AR
    Posts
    10

    Default

    Thanks for the code. I've got the plugin working, crudely, but working. I'll worry about error checking and form validation next year. I've got the source anybody wants. I consider it still too rough to post it for general use.
    Don't divide by 0 and don't be the circuit.

  8. #8
    Join Date
    May 2007
    Location
    Broken Arrow, Oklahoma
    Posts
    414

    Default

    Glad I could help.

  9. #9

    Default Source Code Request

    Not sure if I sent the private message correctly as I am new to this forum...
    I am interested in a copy of your source code for your ModbusTCP vixen plug-in. I have some Modicon Momentum IO blocks running some Christmas lights currently (ladder logic) and would like to sync them to music using Vixen.
    Thanks in advance...if I make any worthwhile changes, I'll send them to you.

  10. #10
    Join Date
    Nov 2007
    Location
    Little Rock, AR
    Posts
    10

    Default

    Send me an email. crazeequack at yahoo dot com
    Don't divide by 0 and don't be the circuit.

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
  •