Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Acuity Laser AR1000 Serial communication

Solved!
Go to solution

Hi,

I am hoping someone has got one of these lasers and is using with Labview and would be kind enough to share their VI, I am a novice to Labview and struggling with basic communication and VISA commands  with this laser if anyone could show me how to simple turn the laser on and show a reading i would appreciate it greatly.

Attached is the manual section 5 explains basics of how to connect the laser but i have been unsucessful.

 

Cheers

Martin

0 Kudos
Message 1 of 3
(2,805 Views)
Solution
Accepted by topic author MagpieSwift

This should at least get you started.  The default serial port settings should work just fine unless the device has been commanded to be different.

 

The important thing here is that the instrument ends each message with a CR LF.  So we can use that to our advantage by using the Termination Charater.  The VISA Read will stop when it reads the number of bytes it was told to read, encounters a terminal character, or timesout.  So by having the termination character enabled and set to LF (all default), we can just tell the VISA Read to read more bytes than we expect and we will get the full message.

 

What was not mentioned in the manual was if the instrument needs a CR LF at the end of the messages sent to it.  So we may have to concatinate an End Of Line to our messages.

 

VI was saved in LabVIEW 8.0.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Download All
0 Kudos
Message 2 of 3
(2,784 Views)

Hello,

 

I understand this post has been solved and it dates to 2017.. but I have a similar laser acuity (AS2100) for which I also created a forum discussion (here is the name: ACUITY LASER AS2100 DISTANCE MEASUREMENT,RS-232 TO USB, section: INSTRUMENT CONTROL (GPIB, SERIAL, V...and could use some help from an expert to get started to read some data continuously.

 

If you could help me with getting started to read continuous reading it would be greatly appreciated, as I am a novice labview programmer and i cannot get the connection right to get some data out. I want to communicate by serial RS232 and to read data converted to distance in mm.

 

I have uploaded the manual and section 4 provides info on the code, but i cannot get something out to read.

 

Thanks,

 

 

0 Kudos
Message 3 of 3
(343 Views)