Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control a parallel port using VISA

Hi,

 

I have a XY stage which I can control using mach3 software. I want to control a signal generator, VNA and the XY stage at the same time. I have programmed SG and VNA using Labview VISA but I am having difficulties controlling XY stage using Labview. I have never controlled an instrument connected through parallel port using labview.

 

Can anybody give me some ideas to start with? How do I use VISA to control the parallel port? I really appreciate your help. Thank you in advance.

0 Kudos
Message 1 of 19
(9,180 Views)

Accessing a parallel port is no different than accessing a serial/GPIB/Ethernet port. The alias for the printer port is typically LPT1 but use whatever is listed in MAX. What you write/read to the port will depend on the instrument - just like any other instrument. A basic example is shown here. Without details on the xy stage, impossible to provide any more information.

0 Kudos
Message 2 of 19
(9,177 Views)

Per LabVIEW Help  --->

(Windows) NI-VISA supports interaction with parallel ports as well as with serial ports on your computer. You can use the VISA properties to communicate with parallel ports in the same way you communicate with serial ports.

0 Kudos
Message 3 of 19
(9,175 Views)

Hi Dennis,

Thank you for the reply. I went through the example. but PC does not communicate with XY stage. what changes I should do to the program.

XY stage has two pac-sci Nema34 stepper Motors

slo-syn ss2000D6 Driver

sound logic breakout board

 

Thank you

0 Kudos
Message 4 of 19
(9,128 Views)

I have no idea what changes you made to the example in order to send a command or what commands are supposed to be sent. You have to provide those sort of details if you want any kind of help.

0 Kudos
Message 5 of 19
(9,125 Views)

I tried to run the example program. But I can not detect LPT1 port in VISA resource name. so I get an error(-107.....). tried several methods given by other people. what should I do to detect parallel port? my Labview version is 10.0

 

Thanks

 

 

0 Kudos
Message 6 of 19
(9,116 Views)

Posting a partial error code is just silly. Agian, what sort of help do you expect? Your version of LabVIEW is irrelevant. You, of course, need to have NI-VISA installed and the parallel port should appear in MAX. It is a built-in port, isn't it?

0 Kudos
Message 7 of 19
(9,112 Views)

problem is MAX does not detect the parallel port in VISA resources. please help me to resolve this problem.

0 Kudos
Message 8 of 19
(9,099 Views)

Finally some details.

 

How is the port shown in windows device manager? Does anything change if you click 'Device enabled' box? What version of NI-VISA are you using and what is your OS?

0 Kudos
Message 9 of 19
(9,095 Views)

In Device manager, its enabled. I use NI VISA 5.2 and my OS is windows 7.

 

I get this error when I pressed Open Visa test panel in MAX

Error opening resource:
ASRL10::INSTR

VISA:  (Hex 0xBFFF00A5) The interface type is valid, but the specified interface number is not configured.

 

Error -1073807342 occurs when I tried to run a Labview program

 

Thank you

0 Kudos
Message 10 of 19
(9,081 Views)