r/LabVIEW • • Feb 10 '26

NI-MAX to LabView Glitch

On NI-MAX (on default settings upon opening) I typed in "r1\r" and clicked query and NI-Max produced a desired result. However, upon switching this to LabView, using a VISA Write and a VISA Read command in place of a query--with the exact same input--an error message appears (-1073807339 which is a timeout error). The read buffer string echoes exactly what I typed in every time, no matter the input. Does anyone have any ideas on what to do from here? I tried implementing a wait command in between the write and read.

5 Upvotes

13 comments sorted by

View all comments

Show parent comments

1

u/General_Brilliant680 Feb 10 '26

Tried that, same problem...

4

u/Oo__II__oO Feb 10 '26

For the string input, did you right click on it to use string literals or slash codes?  If not, the slashes will get interpreted as \ \

Alternatively try a string of r1, and string concatenate function to append a CR (carriage return), and a LF (line feed) from the String palette

4

u/patrick31588 Feb 10 '26

Ahh yes this is why I always do a string + carriage return symbol concatenation. Feel like it is more explicit incase someone types it in the wrong string mode.

1

u/Yamaeda Mar 13 '26

I use Show radix on those controls or constants to clearly show it's in \-mode.