キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Serial read not giving an output?

解決済み
解決策を見る

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

0 件の賞賛
メッセージ11/41
1,377件の閲覧回数

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 件の賞賛
メッセージ12/41
1,374件の閲覧回数

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 件の賞賛
メッセージ13/41
1,371件の閲覧回数

I did just get this error however

 

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

 

from the attached VI. 

0 件の賞賛
メッセージ14/41
1,368件の閲覧回数

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 件の賞賛
メッセージ15/41
1,361件の閲覧回数

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

0 件の賞賛
メッセージ16/41
1,357件の閲覧回数

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 件の賞賛
メッセージ17/41
1,347件の閲覧回数

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. 

すべてをダウンロード
0 件の賞賛
メッセージ18/41
1,342件の閲覧回数

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 件の賞賛
メッセージ19/41
1,327件の閲覧回数

 

ComPortRead.png

Omar
0 件の賞賛
メッセージ20/41
1,325件の閲覧回数