LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial read write

Solved!
Go to solution

hello,

 

I am trying to use serial i/o to communicate with a sensor.  The sensor waits for the Send command followed by a carriage return, then passes out its value.  I have attached the program I am using below.  I can get this to work using the instrument i/o assistant, but I would like to do it how I have it below.  The error I recieve is -1073807339 (VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.).  I have a feeling this is most likely due to the fact that it is waiting for data and never recieves it. I think the problem has something to do with it not recognizing my send command or the carriage return.

0 Kudos
Message 1 of 4
(2,868 Views)
Solution
Accepted by topic author smot678
You're not sending a carriage return. You are sending the characters '\' and 'r'. Enable '\' Codes by right clicking on the constant.
Message 2 of 4
(2,862 Views)
Then using \ codes the control\constant must be put in that modus. Right click on the string and select '\' codes display


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 3 of 4
(2,860 Views)
Thanks, that solved the problem.
0 Kudos
Message 4 of 4
(2,851 Views)