Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

stepper motor control +parallel port

Wel i'm sending you the VI's link

that i'm using if you can help me out

 

zone.ni.com/devzone/cda/epd/p/id/3611

0 Kudos
Message 31 of 45
(1,970 Views)

Of course, the ULN2003 is not a stepper. Could you provide the information on the stepper and define 'not working'. Are the logic levels from the parallel port changing. do you get an error, what?

0 Kudos
Message 32 of 45
(1,961 Views)

Hi,

I need to command a robot 5axes (5motors) with labview. This robot is connected to the pc with a parallel port so can you please help me finding a solution to command 5motors at the same time?

0 Kudos
Message 33 of 45
(1,753 Views)
You must use VISA to communicate to the parallel port. Attach your code and explain where you are stuck and any error messages you might have.
0 Kudos
Message 34 of 45
(1,739 Views)

actually I'm not going to command these motors! I'll explain: my program is to control a volume of a bottle : my robot has a sensor in his arm so I will put the filling level and he will take the bottle verify if there is enough water if yes he will continue and fill the glass with the filling water. If the level is achieved he will stop filling and return to his first place. This sensor is conected with a parallel port to the pc. what I have in my blanck vi is basics because i don't know how i can read or write on a parallel port

0 Kudos
Message 35 of 45
(1,721 Views)

As Dennis_Knutson said, you'll need to use NI-VISA to communicate over the parallel port.  There are several VISA examples available in the example finder.

Cody A.
0 Kudos
Message 36 of 45
(1,699 Views)

yep i know that i should use the VISA , but i dont have a parallel visa (like the serial defined on labview) so how can i do to control a parallel port ?

0 Kudos
Message 37 of 45
(1,687 Views)
There is no such thing as a parallel VISA like the serial port. You don't need to configure baud rate, etc. You just use a VISA Write with the parallel port (i.e. LPT1) selected as the resource name. For the data, you can set the string control/constant for hex display to send a single byte. You could create an array of U8 and use the Byte Array to String function.
0 Kudos
Message 38 of 45
(1,684 Views)

could you please send me a blank.vi allowing me to read and write from a parallel port. Im not getting what you mean 😞

0 Kudos
Message 39 of 45
(1,679 Views)
Have you downloaded the example linked in the third post?

It's extremely basic. Put a VISA Write on a block diagram. Create a control for the resource name. Create a control for the string to write. Done. The creation of the controls is a right click option that you should know.
0 Kudos
Message 40 of 45
(1,674 Views)