Notifications
Clear all

VB Net Plugin Help

10 Posts
3 Users
0 Reactions
6,275 Views
Posts: 10
Topic starter
(@jduck)
Active Member
Joined: 19 years ago
[#1379]

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-


9 Replies
teberle
Posts: 641
(@teberle)
Honorable Member
Joined: 20 years ago

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


Reply
Posts: 10
Topic starter
(@jduck)
Active Member
Joined: 19 years ago

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.


Reply
Posts: 10
Topic starter
(@jduck)
Active Member
Joined: 19 years ago

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.


Reply
teberle
Posts: 641
(@teberle)
Honorable Member
Joined: 20 years ago

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


Reply
teberle
Posts: 641
(@teberle)
Honorable Member
Joined: 20 years ago

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


Reply
Posts: 10
Topic starter
(@jduck)
Active Member
Joined: 19 years ago

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.


Reply
teberle
Posts: 641
(@teberle)
Honorable Member
Joined: 20 years ago

Glad I could help.


Reply
Posts: 1
(@kirschnet)
New Member
Joined: 19 years ago

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.


Reply
Posts: 10
Topic starter
(@jduck)
Active Member
Joined: 19 years ago

Send me an email. crazeequack at yahoo dot com


Reply
Share: