Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to control scanner planar using labview

Solved!
Go to solution

Hi I am dealing with a project to control NSI scanner planar, the interface is going be serial using DB25 port,PM341UNIT and limit switch.

I've no ideas about how to start. please i need support.

0 Kudos
Message 1 of 17
(5,846 Views)

1. Read the manual for your 341 driver, especially the RS-232 section and programming commands.

2. Connect up the hardware, connect to the serial port and confugure and use Hyperterminal to send commands as a test.

3. Then in LabVIEW, search examples for Basic Serial read and Write.vi to send commands and read data back.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 17
(5,839 Views)

I have written a basic serial communication code on VI; connected the hardware which are the PM341 VIA RS232 cable connect to PC SERIAL PORT AND OTHER END CONNECT TO PARALLEL PORT ON PM341. The driver (PM341) connected to motor 1& motor2. Then I send a simple commands on labview based on the PM341 manual, but it doesnot read back, but when I send the command on hyper terminal it read back the command and as well move the motors to sometimes.

 I also did some troubleshooting by connecting transmitter and receiver together on female serial port, then I send a command on Labview it read back the command and as well show the byte styring word which I send. so I dont know why is not working the RS232 cable which I connected to the Pm341 machine (driver).

Please you can as well check the attached code below if there is anything wrong with the code.

thanks

 

0 Kudos
Message 3 of 17
(5,731 Views)

All that you have done is attach the example program that comes with LabVIEW. You haven't written anything as far as I can tell. No one has any idea what commands you are actually sending, what format you are sending them in, or what command you are supposed to be sending. Enter a command and then go to the Edit menu and select 'Make current values default'. Save the VI and then post that. Attach the manual as well. My guess is that you are not sending a command with a proper termination character.

 

The loopback test does nothing to confirm that the commands you are using are correct, that you have the correct cable, or that you have the correct com settings. At least you used Hyperterminal to confirm the cable and com settings.

0 Kudos
Message 4 of 17
(5,725 Views)
i cannot send the manual book, though I've save the command base on the manual on the VI. PLZ see the attached.
0 Kudos
Message 5 of 17
(5,710 Views)
Could you save it as 8.6? I don't have 2009 here.
0 Kudos
Message 6 of 17
(5,701 Views)

i got no 8.6 version

cheers

0 Kudos
Message 7 of 17
(5,647 Views)

awans wrote:

i got no 8.6 version


You should open the file you want to convert. Click on file menu, then select Save for previous version. Then choose the one you need to downconvert.

 

I did it for you this time.

0 Kudos
Message 8 of 17
(5,643 Views)
You are sending a line feed. Have you tried sending a carriage return (\r) or a carriage return/line feed (\r\n)?
0 Kudos
Message 9 of 17
(5,633 Views)
i still not can not read back my command
0 Kudos
Message 10 of 17
(5,614 Views)