LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial commands from LabView and NI Max timing out with ASI stage

Hello all, 

 

I've recently gotten into LabVIEW and have been working with an LX-4000 ASI controller linked to a MS-2000 stage. I have been successful in getting the stage to move with Micro-Manager and a program called TLX4000, which let me send serial commands directly to the stage. 

 

However, when I try to send serial commands using the TG-1000 library provided by ASI (https://www.asiimaging.com/support/downloads/ms-2000-control-using-nis-labview-and-the-serial-port/) I receive a timeout error. I also tried running the NI Max Visa test panel and any serial commands sent return "\07\03" regardless of what command I send. The baud rate is the same as Micro-Manager at 115200 and all other configurations are the same.  After examining the library supplied by ASI it seems to be the correct serial commands. 

 

It seems to refuse to communicate with anything related to NI and after extensive troubleshooting I've yet to find the reason as to why. 

 

stephnw_0-1718666691498.pngstephnw_1-1718666717289.pngstephnw_2-1718666762021.pngstephnw_3-1718666829990.png

 

0 Kudos
Message 1 of 3
(364 Views)

Figured out the issue, hope this helps someone. It needed termination characters so appending "\n\r" to the end of the command allowed it to go through!

0 Kudos
Message 2 of 3
(307 Views)

As an additional note, the \07\03 being returned are likely ASCII control codes indicating an error:

 

\07 is "BEL", i.e. "Bell", meaning to make a beep or other noise indicating a problem.  It, along with \15 "NAK", i.e. "Negative Acknowledge", are sometimes used to indicate errors or other problems.

 

\03 is "ETX", i.e. "End of text", sometimes used as a terminator character.

0 Kudos
Message 3 of 3
(302 Views)