02-25-2024 10:59 PM
I have one Heidenhain ND 287 device. When i try to send data over VISA Serial communication, it shows time out error when trying to read.
NI MAX also shows time out error. But when manually press the Print button, it works. The command for Print button is <ESC>F0002<CR>.
STX Command is CTRL B. What could be issue in my code?
I implemented According to the manual it uses XON-XOFF protocol, but the issue persists.
02-27-2024 12:51 PM
The timeout indicates that the instrument is not responding.
Did you check the pinout of the cable ?
Page 105
https://content.heidenhain.de/doku/oma_nd_pt/pdf_files/ND200/ND287/662_206-21.pdf
02-27-2024 01:12 PM - edited 02-27-2024 01:13 PM
It also would help to enable the Display Style glyph on the string constant.
You definitely have a disconnect between what you send in Max and what you send in LabVIEW:
x1B\F0002\r versus \x1BF0002\r
\F is not a valid character escape sequence, so VISA Interactive Panel will send the x1B\F literally as 5 characters.
Depending what display style the LabVIEW string constant uses, you may not send the ESC character as you think but literally \x1B as 4 characters.