Communications :: Stepper Motor With Parallel Port

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


ADVERTISEMENT

Send Data / Signal To H-Bridge Then To DC Motor Using Parallel Port In Program?

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

VS 2010 Creating An Exe File To Run A Stepper Motor?

Nov 30, 2009

I am working on a project to use a stepper motor to pull film and then stop and take a photo of the frame. I have a stepper Bee controller and motor and everything works fine with there gui interface tool. Now what I am looking at is making a VB script that I can control the motor. They provide a dll file for the stepper controller and lots of doc data but is confusing to me since never used VB scripting. I have Visual Studio 10 installed and not sure if that is what i need. So here goes. It requires this at the beginning.

Declare Function InitStp Lib "stp.dll" () As Integer

Declare Function RunMotor1 Lib "stp.dll" ( ByVal steps As Integer,
ByVal interval As Integer,
ByVal direction As Integer,

[Code]....

Now the part I do not understand is I open a new project and select one of the many different FrameWork Applications. I no idea what to select. What I wish to end up with is an exe file that I can click on to start or run from a command line if needed. Here is a link to the site and scripting deal. [URL]

View 1 Replies

Communications :: Parallel Port Input State Change?

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

Detect The Address And Port Number Of The Parallel Port In Computer?

Jun 9, 2010

I would like to detect the Address and Port number of the Parallel Port in computer.

View 4 Replies

Communications :: .net MSComm Port USB 4 Port Relay?

Oct 20, 2011

I am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay

"01+//" - Relay 1 is switched ON
"01-//" - Relay 1 is switched OFF
"02+//" - Relay 2 is switched ON
"02-//" - Relay 2 is switched OFF

[code].....

So i am confused as to how to separate each relay out with that code above and just be able to turn on any number 1-4 relay on or off independently from each other!

View 1 Replies

Print To Parallel Port In Net?

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

Communications :: Serial Port - Run Program, "Access To The Port 'COM1' Is Denied"?

Oct 15, 2008

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?

[code]...

View 1 Replies

Call The Parallel Port With Vb Codes?

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

Check Or Map If Parallel Port Is Mapped?

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

Connect To Parallel Port Printer?

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

Interface Spi Using Parallel Or Serial Port?

Dec 29, 2010

i need to interface an spi analog switches using either a parallel or serial port. Is this possible?

View 1 Replies

Parallel Port And Relay Control?

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

Programming USB To Parallel Port Converter?

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

Timer To Control Parallel Port?

Mar 11, 2010

i want to control pc parallel port using vb.net/vb6 , i need timer coding .

View 1 Replies

VS 2008 - DLL For Parallel Port In Windows7

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

VS 2008 Parallel Port Equivalent?

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

VS 2010 Acessing Parallel Port?

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

Activate The Control Lines Of The Parallel Port?

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

Parallel Port Control In 2010 Express

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

Use The Parallel Port To Communicate With Self-made Circuit?

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

VS 2010 Writing To Parallel Port / Windows 7 64-bit

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

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

USB To Parallel Printer(CEN36) - Doesn't Appear As LPT Port Device

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

VS 2010how To Transfer Or Receive Data Via Parallel Port

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

Converting Visual Basic Parallel Port App Using Inpout32.dll In To Delphi?

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

Communications :: Like A Serial Port

Mar 8, 2010

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.

View 2 Replies

Communications :: Printing Through Com Port?

Feb 26, 2009

i am working with a printer connected to port1 this is not like regular printer.it is like a current bill generator printer.when we type data directly it has to print on paper

Mscomm1.Output = txtMessage.Text & vbCr

the code is working the problem is iam not able to set the fonts?

View 1 Replies

Communications :: Listening To The Serial Port?

Sep 21, 2011

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:

[URL]

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.

Code:
Imports System.IO.Ports
Imports System.Text
Public Class ArduinoSerial

[code].....

I am really new into the vb.net. I am sure there are some horrible mistakes with this code but I am kind of stuck for the past 2 days on this one.

View 5 Replies

Communications :: Reading From Serial Port?

Dec 16, 2008

i am using serial communication to read from a plc.The plc will send a string :&H3A as a header byte then C(which is a variable that contains data)I want to read and mask out the header byte.I use the following code but cannot read anything.

Private Sub btnread_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnread.Click
Msg = SerialPort1.ReadExisting
count = Val(Mid(Msg, 1, 2))
Lblno.Text = count

[Code]...

View 1 Replies







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