06-17-2024 06:06 PM - edited 06-17-2024 06:27 PM
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.
06-19-2024 05:28 PM
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!
06-19-2024 06:13 PM
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.