LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial communication with non-SCPI device

Solved!
Go to solution
Solution
Accepted by topic author Joshua38

@Joshua38 wrote:

OK, I have tried removing the "\n" and wiring a "false" constant to the "enable terminating character" terminal, but that didn't solve the problem.  


Is that a logical AND or is it an OR? If it is an AND then you may have changed one variable in the equation to much. I would expect the device to need to receive ONE termination character (sequence) in order to know when the command is finished. And it may not be "line feed" (\n) but could be also "carriage return" (\r) or the DOS end of line indication which is both characters after each other (\r\n). Other characters are absolutely possible too such as "End of Text" (\03) or whatever the developer of that device fancied at that day! Smiley Very Happy

Without a proper protocol documentation you can keep trying the next 100 years and maybe never get a working solution. Even with protocol documentation it takes usually a few hours or days, as developers are surprisingly bad at documenting a communication protocol in an unambigous and easy way.

Rolf Kalbermatter
My Blog
Message 11 of 14
(553 Views)

Success! Adding the \r in front of the \n did the trick. Thanks for all the helpful advice. 

0 Kudos
Message 12 of 14
(541 Views)

Anyway you could send me the vi for this? I don't have a serial settings object in my library and would also like to examine the other bits too.

0 Kudos
Message 13 of 14
(430 Views)

@crash_override wrote:

Anyway you could send me the vi for this? I don't have a serial settings object in my library and would also like to examine the other bits too.


You are probably looking for the VISA Configure Serial Port.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 14 of 14
(405 Views)