LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial read not giving an output?

Solved!
Go to solution

If i run the hyperterminal it says that another program is using the device.....I closed everything even labview though. 

0 Kudos
Message 11 of 41
(1,334 Views)

Give byte count at read visa as 10 and try. If you not get succeed, try to send some other command from your device manual and see whether the device responding or may be the problem with your serial device.

0 Kudos
Message 12 of 41
(1,331 Views)

No luck with 10, and those are the only two commands in the manual. I have attached the entire manual the secion on comunication is in chapter 6. 

0 Kudos
Message 13 of 41
(1,328 Views)

I did just get this error however

 

VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.

 

from the attached VI. 

0 Kudos
Message 14 of 41
(1,325 Views)

Drag the close Vi out of your loop and give the time 2000 between you write and read visa. I would recommend you to look the basic example and play around in that example. I have posted that example in this thread.

0 Kudos
Message 15 of 41
(1,318 Views)

I am getting error -1073807339 the timeout read error. what does this mean? 

0 Kudos
Message 16 of 41
(1,314 Views)

The error means exactly what it says. Your read timed out. Your read timed out because you are not sending the correct string.

 

Have you been paying any attention at all to what people have mentioned about a termination character? Append a CR (Carriage Return) to the string you are sending.

0 Kudos
Message 17 of 41
(1,304 Views)

I did add the CR line , see the attached aa.vi. but it still stalls at the read funciton. 

 


@Dennis Knutson wrote:

The error means exactly what it says. Your read timed out. Your read timed out because you are not sending the correct string.

 

Have you been paying any attention at all to what people have mentioned about a termination character? Append a CR (Carriage Return) to the string you are sending.



and i found this program on the forum, but it returns back 0 bytes when i send it a TS command. 

Download All
0 Kudos
Message 18 of 41
(1,299 Views)

Ok when is send the device the command TS, i get a return count of 2. IN the spec manual it says 

 

"When communication terminal sends “TS” command to the OX400, OX400 will feed back datalogging packet periodically (approx. 200 ms.)" 

 

So how do i let labview know to just keep the port open after this and keep reading it? I thought that was what i was doing with the read function but it isnt working. If i send the string with the stop command in it as well as you have all been saying . wont i just get one value instead of a continuous read of the display? 

0 Kudos
Message 19 of 41
(1,284 Views)

 

ComPortRead.png

Omar
0 Kudos
Message 20 of 41
(1,282 Views)