We have a weigh bridge connected to PC via serial port.A VB code fetches the data from serial port and puts it in clipboard,which can be used by other applications like SAP.
We have several different makes of weigh bridge at different locations, each with separate settings(baud rate,data bit,parity), hence we need to change the VB code each time a new make weigh bridge is installed.
can we write a generic VB code which can automatically detect all these settings and capture the weight?
im using VB 2008 and been trying to use the RS232 at 5 baud and setting the baud to that rate seems to go ok but when put in pratice it seems way to quick and doesnt work. I put that down to its to slow baud rate and not supported. I only want to send 1 byte so tryed it manualy by this ........
i am a absolute beginner and i want to use vb to receive data from micro controller through serial port using rs232 standards, i found this code to receive the data serially, can any one tell me where should i paste this code, so that the data received will be displayed in message box.Private Sub DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) HandlesSerialPort1.DataReceived
The link below has code to connect to a modem thru the serial port but it is for an earlier version of VB. when I convert the code, it does not fully convert and has 4 errors that prevent building the project. can someone tell me what needs to be changed or added?
I have a stand alone VB.Net 2005 application that uses a serial port that generally stays open while the application runs on a Windows XP system. In trying to bullet-proof the UI, I ran into a problem when the USB to Serial Converter normally used to provide the serial port is disconnected while the serial port is open. In trying to handle the resulting error when accessing the port, I find I cannot close the port.
When trying to do so, the error message says something like "unable to close the port. You may not have sufficient permissions." Reconnecting the USB/Serial Converter does not reactivate the port.
I have a Windows form.in windows form have a combo box that give me a list of available port serial with it code (Dim ports As String() =SerialPort.GetPortNames())for example( Com1,Com8,Com15,...).but I want to give me fullname of serial port in device manager for example in dvice manager is these (Comunication Port(COM1) - Printer Port(LPT1) And USB Serial Port(COM8)).how to Get it?
If I uninstall the COM1 and reboot, it works. If I shut down (power off) and restart, I get the message below. If I uninstall then click on Scan for Hardware Changes,The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name:portName
Im having problem with the Serial Port. When i run my program, "Access to the port 'COM1' is denied". What does that mean? Im not sure whats happening because theres no error in my code. Someone suggest me to use 'COM2'. Which is also the same result. I have a microcontroller, programmed and run it. And i need to capture the data onto my vb, which is on a multiline textbox. How to i do that?Just to double check my code?
i am trying to indicate if the tax is at single rate (18%) or the family rate of (15%)This is what i got so far i could do the rest but just cant do the Mstatus part.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Name As String 'Name of employee Dim hrWage As Double 'Hourly wage Dim hrsWorked As Double'Hours worked this week
I am trying to buld a DLL in VB.NET 2010 that will be use to control a vending machine.Whin a call into the DLL to a function to open and setup the comport the first time its opens it just fine, but if a call into the DLL again it does not know that the port is open even if it is still open. I can check with another program and is shows the port is open and if I try to call into the DLL again to open the port I get an error that the port is already open. Any idea how to set this up so it will work
I have a Windows forms control in VB.NET. I want to detect if the computer the user runs my program on has a serial and/or LAN port connected to the computer. native windows API for detecting Serial and LAN connection? S
I need to automate the installation of some Antivirus applications. I can easily do it by utilizing the Process Class, but I also needed to know if there was a way to automatically input the serial key.
I thought I remember someone mentioning a property or something that could be used for that, but I can't remember what it was or who said it.
i'm creating a windows form to send/receive data to/from serial port.At first : i send the data as string to the serial port .Second: i tried to read the string again for test the successfull transmission , but i recieved empty string
For my application a need to set a breakstate on/off of 25ms.In Xp this runs fine when I set breakstate=true and wait for 25ms and then breakstate= false and wait 25ms.In CE6.0 when I set breakstate = true, it only throws a puls.It is even not possible to keep breakstate on.
how to solve this or is there an alternative to simulate a breakstate?
For many years, I have sent data between 2 computers using serial ports."Here is the data", "Thank you for that data!" type stuff.Where do I get more information for doing the same thing with 2 computers that are networked together? Assume a local ethernet connection.I have experimented with serial-ethernet modems and that works well but I don't want any more hardware.Is there a good thread here I should read?I want 2 VB programs running and I want to exchange data periodically.
I know things have changed in VB2005.net and i have Express and i want to controll the serial port. I have a program from VB6 that i understand and i tried to convert it but i get alot of errors and i have know idead what they mean. As you can tell i haven't been programming very long.
If someone can point me in the right direction for programming the serial port in VB2005 .net i would appreciate it or tell me what differences there may be.
I am developing a UI for an embedded device that I have designed and built. The device uses an FT232 chip which, when connected via USB is automatically assigned one of the COM ports. I was wondering if there is a way to set up a loop which would automatically detect which COM port the device has been assigned. I could then add some handshaking to verify that the port is correct.
I am facing problem reading data from Serial port. Actually I am connecting with the hardware device called Crimp Force Analyzer. It gives the data on hyperterminal and I have to read that data from my <acronym title="Visual Basic">vb</acronym>.net program. The data is somewhat like this:
I am trying to interface with a Sylvac Gage over the Serial Port, but I can not get read any information sent by the gage.I am using the IO.Ports.SerialPort Object (called serialPort), and I can successfully write to the device. I can tell it to turn off by: serialPort.Write("off" & vbCrLf)But I can't seem to get any information back from the Gauge when I ask it to send information serialPort.Write("?" & vbCrLf)
I am trying to listen to the COM3 port and display the output in the TextBox.If I understood correctly I will have to implement this by using eventhandlers, delegates.I tried following these articles:
And this is the code I came up with...Unfortunately it doesn't display anything. App just starts display "True" and no data is being displayed.I am monitoring Arduino platform which I know is sending data constantly.
Imports System.IO.Ports Imports System.Text Public Class ArduinoSerial
I am doing a project on receiving the serial port. but the problem is that I am a lost now because I am in the dead end because my project is near the dateline. I am at blank now. Can anyone help me to teach me step by step on how to do the part on receiving sms using the modem?
There is a bug report [URL] on serious problems that can occur if you are using a USB to serial port converter and the user pulls the USB while the serial port is in use. Apparently the bug is still present in VB2010, and Microsoft still has the bug closed.
I am trying to make my own hyper terminal. I have used the serial port component and after setting all the configuration for the com port I press the button Enable ComPORT. The problem is that, when I press the enable com port button the program goes unstable untill the reception starts from the COM port. After the reception is start the program starts working fine.