LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to terminate with <null> when writing to GPIB

Solved!
Go to solution

I'm trying to write a program to communicate with my spectrometer. It seems I need to terminate a certain command with a <null> character. I've tried concatenating an empty string constant but still does not work. I'm more familiar with the C programming method where you append a "\00", which designates the <null> character, after the command. Any help would be appreciated and thanks in advance.

0 Kudos
Message 1 of 3
(2,368 Views)
Solution
Accepted by topic author sdkpark

Instead of an empty string, concatenate a string diagram constant containing the null character. (Right-click the constant and select \-codes display, then enter \00, or select hex display and enter 00)

0 Kudos
Message 2 of 3
(2,365 Views)

Thank you very much. I will try it tomorrow and let you know how it goes!

0 Kudos
Message 3 of 3
(2,362 Views)