Writing A String To LPT1, The Parallel Port?
Dec 18, 2011
I have a fairly old radio receiver. (Icom R70) A friend and I have built an interface to control it from my computer. The interface is parallel. For me the interface is a black box. (My friend is the electronics specialist) In the description (25 years or more old) the statement to set a frequency and receive mode (like Am, FM etc) on the receiver is:print ".0:087330"
Today I am working in VB.Net and on Windows7 pro. I have already spent several days figuring out how to do this, but can't get it to work.I have found inpout.dll, but that does only allows me to write one byte at the time, and if I break up the above string and send nine individual characters, it does not work.
View 13 Replies
ADVERTISEMENT
Mar 11, 2011
Does anyone have experience writing data to the parallel port (printer port) in Windows 7 64-bit. I have been trying inpout32.dll, inpoutx64.dll and following all the info on http://www.highrez.co.uk/ and www.logix4u.net but can't get anything to work. I have an on-board parallel port at &H378 - not an add-on card - and have tried various modes in the BIOS (standard, ECP etc). I have a background in electronics so I am confident my testing methods are sound; I just cannot get a data bit to change state under program control. I need to send data to an 8-bit port on some 20th Century electronics so serial/USB interfaces are not really an option. There must be a way to control those 8 data bits in Windows 7, mustn't there?
View 14 Replies
Jun 9, 2010
I would like to detect the Address and Port number of the Parallel Port in computer.
View 4 Replies
Aug 26, 2010
I want to print some strings to LPT1 printer, but i dont find the way in VB2010 In earlier VB6 a use this method :
Sub PrintZPL()
Dim f As Integer
f = FreeFile
Open "lpt1" For Output As #f
Print #f, "^XA"
Print #f, "^PRC"
Print #f, "^LH0,0^FS"
Print #f, "^LL114"
[code]....
How can i do this thiong in VB.NET It's a Windows app not a web?
View 10 Replies
Aug 24, 2010
I have a little program made by my in earlier VB6 to print some labels to lpt1 printer Now in VB2010 i want to send a string to lpt1 to be printed but i cand find the way I have this string and i want to copy to lpt1, how please
'Dim labelPrint As String = "^XA^PRC^LH0,0^FS" + _
' "^LL114^MD0^MNY^LH0,0^FS" + _
"^CWI,E:ARIAL.FNT" + _
[code]....
View 2 Replies
Dec 31, 2008
I use the following code to print to the receipt printer on the parallel port in vb 6.0, but it seems that it doesn't work on vb.net.[code]...
View 2 Replies
Jul 14, 2011
How to call the parallel port with vb codes.I'm going to make a helicopter to control with my pc.
View 3 Replies
May 31, 2010
i want to work with it in vb. 1st i want to check if port is already mapped or not, if not then map it and once done remove the mapping. The one way is using shell and pass command in it, but not sure how to get already map status and also wondering if there is any other method to get it done.n :)
View 1 Replies
Apr 24, 2012
I have a program that connect to 2 printers at the same time. Ribbon Printer and Label printer.
I have set the ribbon printer to be the default printer of the server so that normal document printing can be printed using it. This is very simple and i already finsih the code for it.
However i have a Parallel printer at Port LPT1 which i wish to use it to print label. I have search online but find no solution on how to open connection to LPT1 and print the document in coding.What i can find i only send a window command to the port LPT
View 1 Replies
Dec 29, 2010
i need to interface an spi analog switches using either a parallel or serial port. Is this possible?
View 1 Replies
Oct 26, 2009
im new around here and also to VB.NET infact any aspect of programming, im hoping to be able to some useful stuff but at the momment im a little stuck i only have basic knoweldge so anyway here goes im programming in VB.NET 2008 Express edition, im also using inpout32.dll which is running ok and also controlling the parallel port fine.the problem i have is as follows the program so far is controlling the 8 outputs at the momment, i can turn each individual one on but when i try to turn multiple outputs on it will only turn on one and the other that was turned on goes off i understand its controlled in a 255 bit array but how to decode it is a little tough
View 5 Replies
Jul 4, 2010
I am new to VB and am needing to write to the parallel port. I am using a laptop so have got a USB to parallel port converter and need to know how to write to it using VB (I am using Visual Basic Express 2010)
View 7 Replies
Mar 11, 2010
i want to control pc parallel port using vb.net/vb6 , i need timer coding .
View 1 Replies
Sep 18, 2010
I need to program Parallel port. For accessing port I used inpout32.dll but it is not working with windows 7.
View 1 Replies
Oct 14, 2010
In my project I was using Parallel port to drive a relay circuit with the help of inpout32.dll. But as we all know nowadays parallel ports are getting extinct and USB is getting replaced in its place. Is there any other means I could adapt for driving external circuits from PC, instead of using Parallel Port
View 1 Replies
Jun 18, 2012
I've been trying to this application in Visual Studio 2010 to only write to the parallel port, so supposedly it would be a very easy task, and by all the tutorials in the internet i've seen before it really is! Although it throws me always the same error which is too generic and don't give enough information for me to solve it. I'm doing this using the "Inpout32.dll" library to make the communication between VB.NET and the port..
[Code]...
View 2 Replies
Nov 1, 2009
I have written a programm with visual basic 2008 express edition and I'd like to use the parallel port to communicate with my self-made circuit. I want to controll 120 LEDs with the parallel port but I don't get it how. I know how to activate the databus but not how to activate the control lines of the parallel port.
View 3 Replies
May 25, 2009
I have created a program using inpout32.dll to run my stepper motor . I can run stepper motor now but the problem is that it is running very slow! is there any better way i can run my motor fast as i want.
i used following method.
option explicit on
Dim myTime as object
public sub Form1
[Code]....
if i set the value of mytime less then 2000 my motor does'nt work at all. i tried also with the timer tool and i wrote the code in the tick event of timer but it is also very slow.
View 2 Replies
Oct 12, 2010
Can someone tell me if the functionallity to control a parallel port in MS VB 2010 Expess exists? I was expecting to have to add a reference such as the microsoft comm control 6.0. However this reference does not appear in the list. Everything I search for references .net 2005/2008.
View 4 Replies
Nov 24, 2009
I have written a programm with visual basic 2008 express edition and I'd like to use the parallel port to communicate with my self-made circuit. I want to controll 120 LEDs with the parallel port but I don't get it how. I know how to activate the databus but not how to activate the controle lines of the parallel port.
View 5 Replies
Apr 3, 2011
What i want it to do is 'listen' to the lpt port, when a sensor is broken then display the time. there are two sensor to measure the time of the first and then the second sensor.How do i get VB to listen to the sensors which are on two different inputs of the lpt port and time stamp in micro seconds. I can get it to read the state of the input on mouse click but i need it to display the time in micro seconds when the input changes. i will then use the times from the two sensors to work out the time it took between both sensor changing.
View 5 Replies
Jan 26, 2012
I'd try programming in vb.net with a usb to parallel printer but it doesn't appear as LPT Port Device. It show as a USB Printer Support in USB Controller. Just to receive and send a bit in different pin to be in servo controller/driver.
View 4 Replies
Dec 19, 2011
I want to control the D0-D7 pins of the parallel port(LPT) with VB2010. I do not need to transfer or receive data via this port, all I want is to set high or low (5V or 0V).Is it even possible?
View 4 Replies
Nov 23, 2011
I've been given this simple VB application and library which I'm told can open a door/turnstyle attached to the printer port at 0x378 base address.'Inp and Out declarations for port I/O using inpout32.dll.
Public Declare Function Inp Lib "inpout32.dll" Alias "Inp32" _
(ByVal PortAddress As Integer) _
As Integer
[code]....
how to declare the library functions and what to declare the variables as (&H378 is obviously not an integer)
View 2 Replies
Jan 21, 2012
How will I send data or signal to H-Bridge then to DC Motor using parallel port in vb.net?
View 2 Replies
May 14, 2011
here is my code
Public
Class
Form1
[code].....
View 1 Replies
Jan 13, 2009
I am kinda a newbie to programming. I am looking to switch a KVM switch via a VB (express 2008) program.Which would require me to write {SCROLL LOCK}, {SCROLL LOCK}, and {UP ARROW} out of the PS/2 port (or out of a serial port). I have tried using the Keybd_event function, but this is apperently not what the KVM is looking for. Currently I have the PS/2 port hooked directly to the switching port of the KVM switch and an additional keyboard plugged in USB (the computer has found both ports).
View 1 Replies
Sep 16, 2011
I have a problem interfacing with the Parallel Port. I have tried using the "inpout32.dll" to communicate with the port, but it didn't work for me. I have used another program (coded in C++), and I have successfully read the S-port-data - and that's what I mainly need the application for.
Do you guys have an "easy" way to interface with the Parallel Port using VB .Net?I don't want to use C++.
View 4 Replies
Sep 16, 2010
I'm trying to connect to a Mettler Toledo Scale via a serial port to read in the weight of an object and output the wieght into a label or text box on the form.so I have a button and a text box. Here is my code
Private Sub btnSendText_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSendText.Click
Dim Port As SerialPort = New SerialPort("COM1", 9600, Parity.None, 8, StopBits.One)
Port.Open()
[code]....
My problem is that the program hangs there doing nothing when I click the button.
View 29 Replies
Nov 27, 2010
I'm having problem while writing data to serial port. This piece of code is meant to write all the integer numbers in a text file to the SerialPort (connected to a USB-Serial Converter) when StartButton is clicked. However, it only managed to send two numbers and stopped at "USBSerialPort.Write(t, 0, 2)".
Private Sub StartButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StartButton.Click
USBSerialPort.DiscardOutBuffer()
[Coe].....
View 8 Replies