From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

instrument control NI visa RS232

Hello everyon, I am beginner on Labview and i wish to get your help please! 

Indeed i want to develop an application ton control a laser (connected in serial port, protocol RS232), i want to parameterize it (write the control mode, write the preamplifier diode current set point, write the bosster diode current set point ...) I have this instruction from the constructer: 

Baud rate =19200 bps

Nimber of bits= 8bits 

Stop bit= 1

Parity= None 

Handshaking = None 

Delimiter /r 

I used Ni VISA, i can connect and disconnect my instrument (i see the com and i don't have any error message) but i can't turn on my laser nor emit a laser beam.

Can someone assist me please ? Would you have some examples for me ? 

Thanks in advance.

 

Merci

0 Kudos
Message 1 of 5
(836 Views)

Hi Liluo,

 


@Lilou_lilou wrote:

Can someone assist me please ? Would you have some examples for me ? 


How should we assist on communicating with an unknown (to us) device?

Solution: read the (programming) manual for that device and use the commands given in there!

 

Generic answer: when you want to communicate with external devices you need to know their communication protocol. Most often this is described in the manuals…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(833 Views)

On top of what GerdW said, I suggest you should watch this video and learn the proper way from the start:

 

VIWeek 2020/Proper way to communicate over serial

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 5
(801 Views)

Hello GerdW
I appreciate your answer, thank you, indeed on the manual of my instrument I have no specific information except for commands not adapted to labview I think.
I give you some examples: IC2? Read the booster diode current set point.
TD1? Read the actual preamplifier diode temperature ...
But I will try to find out more. Thank you for your help.
Have a nice day.
Best regards.
Lilou 

0 Kudos
Message 4 of 5
(774 Views)

Hello,
Thank you very much, this will certainly help me! Have a nice day.
Sincerely

0 Kudos
Message 5 of 5
(773 Views)