Driver To Interface With VB That Will Allow To Connect To More Than One Modbus/TCP Device?

Mar 8, 2012

I am developing a software that will monitor/poll serveral Modbus/TCP devices on a network.

I have managed to connect to one device using VB.Does anyone know of a driver or perhaps a 3rd party software I could use that will enable me to connect to more than one Modbus/TCP device?

View 2 Replies


ADVERTISEMENT

Access A Device With Modbus In VB Or C#

May 5, 2010

I'm trying to access a device with modbus in VB or C#. I've been searching all over for a simple way to do it. I know that It would be connecting through a TCP Connection, and I know the address of the device. I need to read the input on it (whether of not it's on), and to toggle the relay on it as well.

View 3 Replies

Windows Cannot Load The Device Driver For This Hardware Because There Is A Duplicate Device Already Running In The System (Code 42)

Nov 13, 2009

A Problem in accessing a device from VB Windows cannot load the device driver for this hardware because there is a duplicate device already running in the system. (Code 42) This error is because i am using 2 devices of the same company which has the mass usb storage on it and when i install one of the device the other hides. So one is detected the Other is not. It also give a error called designed dragnonacally something...

View 2 Replies

Continously Reading Data From A Modbus TCP Device And Store Data In A Textfile?

Mar 2, 2012

I have a modbus TCP device that I have managed to connected to through my VB source code.

I want to poll (continueously read) data from certain registers of the device, and store the polled data in a file (text,csv, excel).

View 1 Replies

Get Device Driver INF File API?

Mar 11, 2012

I seem to recall that there is an API which will return the INF file associated with a device driver but I'm drawing a blank. I want to get the path to the INF File, File Name Section Name and File Date.

View 17 Replies

Get Device Driver Start Codes?

Mar 16, 2012

Is there an API which will tell you the start code for a device/device driver?

View 4 Replies

.net - Handling Exceptions In A Class Library Enveloping A Device Driver

Sep 28, 2011

I am writing a class library that envelopes an USB device driver. This device has its own class library, provided by the hardware vendor.

Very often, especially if you handle with old DLL or COM assemblies, there are methods (functions to be correct) that return TRUE if all was OK, or FALSE if any error happen. Often these methods return information about the error in one of their parameters or separately in a GetLastError method or even if in an OnError event.

Now, normally I handle all native .NET exceptions in my class libray handling locally or re-throwing to the client if the error is useful to know. But what to do with all other errors that are hidden in the vendor's methods? (in the true I have no exceptions, but only returned TRUE or FALSE values).

Let's make an example with the method "CONNECT" that connect the client to the USB device.

I envelope the method in this way:

Public Sub Connect()
oVendorDevice.connect()
End Sub

now if any connection error happen, the vendor's connect method return FALSE. But I do not know why the connection failed. To know why the connection failed I have to call (for example) the method GetLastError that gives me information about the error. (but do not forget that other vendors use other strategies like returning the error in a method's parameter or in a OnError events.

Now, in order to follow a good .NET exception handling strategy I could write something like this:

Public Sub Connect()
Dim res As Boolean = oVendorDevice.connect()
If res = False Then

[Code].....

View 1 Replies

Mysql Odbc Driver Not Found Unable To Connect?

Feb 9, 2011

odbc driver not found unable to connectmysql 5.1 odbc already installed and i have the following code to connect mysql

Imports System.Data.Odbc
Conn.ConnectionString = "DRIVER={MySQL ODBC 5.1 Driver};SERVER=localhost;" + "DATABASE=apdata;UID=root;PASSWORD=acelle;Port=3306;"

[code].....

View 1 Replies

Connect String - Data Source Not Found And No Default Driver Specified

Aug 1, 2009

I need a connection string for connecting database. I have already used the connection string following.
connStr= "Provider=MSDASQL;Driver={Microsoft Access Driver (*.mdb)};DBQ=c:\mydb.mdb;Data Source=SampleDSN";
But, I got error as "Data source not found and no default driver specified".
[URL]

View 8 Replies

VB Interface To LibUSB-32 Device?

Apr 2, 2010

I'm trying to build a VB application that will interface with a USB device that uses a LibUSB-32 driver. I haven't had much luck with google search or looking through MSDN yet as most of the content focues on HID devices. I know the Vendor ID & Product ID of the USB Device. I also know the 16-byte protocol used to communicate with the device.

Most of my experience has been with serial communication which is why I'm here posing this question to help build the "tunnel" from .Net to the LibUSB-32 driver. As soon as the application is sending/receiving data with the USB device, I can handle everything else. I'm not asking anyone to write the code, but more to let me know what I should be looking to do to complete the task.

View 1 Replies

Connect To A Device Through A USB Port

Nov 5, 2009

How do I connect to a device through a USB port. Saying I know what the device ID is. I want to open up serialized communication between me and the device.

View 3 Replies

Detecting Usb Device On Connect?

Aug 19, 2011

i'm kind of new to this. I'm using VB2008 and i need to write a code for recognizing a usb's details. like port number and letter and serial number if they have one. if i need to be more specific, then i have to say its for a machine that records data and i need to transfer that data over to my laptop through a gpib to usb cable. the cable has a specific "id" and i need to find that out and type it into the program interface that i'll make when i know how to detect that "id" so it can connect.i've read a few forum posts by others and they are really informative but not what i could use or i could not make it work.(yet)[URL]..and the other links posted there.for reading and helping. thats the clearest way i can explain. if anyone needs a more specific detail, just ask because i dont know if i left out anything else.

View 5 Replies

Connect A Scanning Device To A Computer Using .net?

Jan 29, 2011

How can i connect a scanning device to a computer using .net? Code 128.

View 4 Replies

Connect Device With System Design?

Aug 11, 2009

I have 1problem...i want to connect device and then the device can display the output in mysystem design.the system is for display value output in decimal.so,how to create code for the projek?and than the device use port usb...how to connect device with my system?

View 4 Replies

ASP.NET Webpage To Device Connect To Server's USB (COM) Port

May 19, 2009

I am working on a way to send commands to an Arduino board from a web site. The Arduino board is connected to the computer via a USB port (a COM port).

I have managed to connect and control the board using a VB.NET program. I also wrote a VB.NET class that can instantiate a COM connection and send and receive messages.

My next step is to basically create a program that will act as a proxy between my web server (IIS 7 running on Windows Vista) and the Arduino board. When a user gets to my ASP.NET page, the page will then send a command to the proxy to open the COM connection. When the connection is open and ready then I can send commands to the proxy. In turn, the proxy will send these commands to the board and listen for the responses it receives from the board. The proxy will then pass these messages back to the ASP.NET page.

The main issue I see occurring is that if a second user opens the web page and tries to open the COM port, there will be an error. Will this cause the first connection to fail? I guess I can first check if the port is already in use and give the second user a message. Are there any other potential challenges I am missing or not seeing?

View 1 Replies

Connect Barcode Reader Device Into 2005?

Jun 17, 2011

how to connect barcode reader device into visual studio 2005? My device model is acanlogic cs-2030?

View 6 Replies

Connect To External Device Using A Serial Port

May 25, 2010

I'm trying to connect to an external device using a serial port. I found a couple of tutorials with demo code and tried these. Unfortunately they all return the same gibberish unreadible result.[code]I'm sure my port settings are correct (I have the communication protocol of the device.)

View 20 Replies

Driver Detection - Tell User That It Is Safe To Close Program Once Driver Is Install

Jun 1, 2011

Trying to figure out if there is anyway built into windows 7/Vista/XP and/or Dpinst to verify that a driver is installed? I created a program that uses DPinst to install a driver and now I need to figure out how to tell the user that it is safe to close the program once the driver is install as the driver takes longer on some machines to install. Would anyone know how to get this to work?

View 7 Replies

Connect The EPP (Encrypted Pin Pad ) Device To Computer By Using Mscomm Control?

Mar 14, 2012

Currently, i am trying to connect the EPP (Encrypted Pin Pad ) device to my computer by using mscomm control. May i know what are the possibility problems may cause the DSRHolding does not return to "True"?

View 3 Replies

Simulating Click On Human Interface Device And Retrieving Data

Apr 7, 2010

I have USB device that is detected as human interface device (HID). The device has one button on it. I want to have more of same devices attached to one PC. I would like to simulate a click on that device (it is not a mouse!). It should be simple using Windows API, but I just can't seem to find an example or at least function that does that (I successfully found code that takes position of a MOUSE, and sends click to a MOUSE, but I need that for my HID). What i really need is an example how to simulate click on HID (something like joystick).Second question is a bit more complicated and I can't find a solution. The HID when button is clicked returns data (5-6 bytes). But data returned is immediately printed to the screen (like i typed it on keyboard) and it is followed by CR, however no data is left on clipboard. I don't know how to get that data to my program. Detecting keystrokes using Windows API (something like keylogger), or to make a control (richtextbox) and retrieve data from that control? Thou important notice is that my program is complicated, involves multithreading (cross-thread operations are a mess) and is TIME CRITICAL (as much as it can be on Windows - you get what I mean), so cross-thread access of control will slow me down a lot or even just won't work. Something like this:[code]Even if this problem is solved it still makes it buggy because user should be able to use GUI all the time.

View 5 Replies

What Kind Of Handheld Device / OS To Use To Interface With A Win Forms / SQL Server Express App

Oct 29, 2010

I'm currently working on an VB.net application using Win forms and SQL Server Express 2008. One of the major functions of our program is to generate work orders for field engineers. These engineers typically work in a factory and have to walk around the factory to complete these work orders doing things such as recording pressures and voltages of certain equipment. Right now they are printing out the work orders and writing down these values then entering them into the computer when they get back from doing the work.

We would like them to have some sort of handheld device we could push their work orders out to that would allow them to enter values/complete work orders and then come back and sync up with our app. Something like an ipod touch or maybe a bit larger seems like a good kind of device. Not really sure what kind of device would work for this and what OS it should run. I'm guessing it will be easiest if I can get something that can run SQL server on it. Also, how would I implement something like this?

View 2 Replies

Connect Barcode Reader Device Into Visual Studio 2005?

Sep 5, 2011

how to connect barcode reader device into visual studio 2005? My device model is acanlogic cs-2030?

View 2 Replies

Developing An Application Which Can Connect To An Ip Address To Transfer/receive Data To The Handheld Device?

Aug 25, 2009

I am developing an application which can connect to an ip address to transfer/receive data to the handheld device via gprs network.

View 2 Replies

Windows Mobile - Connect Sql Database Compact Edition On Visual Studio 2008 With .net (smart Device)?

Apr 24, 2012

I'm doing a project with vb.net (smart device) on visual studio 2008 and I need to connect to a database on the device itself (I do not have a physical device to test, only emulation). How should I go about doing it? I would like the database to be in the device on start up.

View 1 Replies

Error - (10061) ERROR [HY000] [MySQL][ODBC 3.51 Driver]Can't Connect To MySQL Server On

Jun 4, 2010

I'm connecting to my mysql server using ODBC in vb.net, the database is shared throughout the company because it is used in an accounting program (simply accounting), each user has their own account user/pass to login to the database. I have developped a program that uses the accounting database and combines it with other information, my problem is that at least once a day I get this error when I run my program: "(10061) ERROR [HY000] [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on"and the error persists for at least 4 hours, for some reason it starts to work again later on in the day.

View 1 Replies

Forms :: Create Database Connection String Builder Like SQL Connect To Server Interface

May 21, 2009

I am trying to build a user control that will do exactly what the SQL 2005 Connect to Server interface do, eventually create a connection string and store in a app.config file. It should allow user to select server type, server name, authentication, user name and password. It should also automatically load available servers and domain login by default.

View 11 Replies

Develop Modbus RTU Master Program

Jul 11, 2010

I want to develop Modbus RTU Master program ..

I am expert in Modbus communication and I have designed the Modbus pre-programmed remote controls ,, Now I want to interface some Modbus RTU slave devices to my own developed application ...

I am much familiar with the Modbus RTU syntax and I've tried following to initiate the the master query but I am getting initial 3 bytes ok ,, rest of the bytes are changing the values on COM port so slave is not responding to my command ..

CODE:

View 8 Replies

Communications :: Develop Modbus RTU Master Program?

Jul 11, 2010

I want to develop Modbus RTU Master program ..I am expert in Modbus communication and I have designed the Modbus pre-programmed remote controls ,, Now I want to interface some Modbus RTU slave devices to my own developed application ... and looking for kind guidance ..I am much familiar with the Modbus RTU syntax and I've tried following to initiate the the master query but I am getting initial 3 bytes ok ,, rest of them are changing the values on COM port so slave is not responding to my command ..

******************************
Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
Dim BYTE1 As Byte = 1
Dim BYTE2 As Byte = 6

[code].....

View 1 Replies

Modbus Data Frame, CR+LF HExadecimal Conversion?

Oct 18, 2010

i m working on an application which communicates with PLC machine using Modbus protocol. Now i m able to generate and communicate a modbus data frame with PLC the only problem that i m facing is that in all the data frames of modbus the last ascii characters should be Carriage return + Line feed which should be read by the PLC as 0D 0A that is in Hexadecimal form. But i m not able to do this. The rest entire string is properly read by the PLC but How do I make it read the CR+LF.

View 2 Replies

Communicating Trough A RS 232 Comport To A Modbus Protocol Controller?

Apr 19, 2010

I need to interface between a PC and a Microcontroller based Controller to transfer data between the PC and the Controller?

Ive got acces to the register numbers or names in the Microcontroller.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved