Using a usb digital scale in vb.net -


i developing fedex shipping application , trying scale read either dynamically or when user ships. need trying connect , data usb scale in vb.net. know how serialport have no idea usb. how go this?

this serialport code tried getting port name read usb, kept saying "port name not contain com/com in it".

private sub testscale()         dim data string         serialport1.close()         serialport1.portname = "com1"         serialport1.baudrate = 9600         serialport1.parity = io.ports.parity.odd         serialport1.databits = 7         serialport1.stopbits = io.ports.stopbits.two         serialport1.open()         serialport1.write("w" & vbcr)         data = serialport1.readexisting         txtoutput.text = data         serialport1.close()     end sub 

i able achieve wanted using site: http://www.bumderland.com/dev/usbhidscale.html. using hidlibrary.dll , converting c# code vb.net.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -