LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read error using RS232

Solved!
Go to solution

Unless you are trying to communicate to the same RadioShack DMM (and it does not look like you are), you do not have the same problem and the setting of the handshake lines will not do you any good.

 

Please provide the make and model of the instrument. Also, have you tried communicating in Hyperterminal? That was a recomendation early in this old thread. Have you verified the com settings and that you are using the correct type of serial cable? There are two basic types - straight-through and null-modem.

 

Also, you would not want to modify the shipping example like the image shows. I also have no idea what you clicked on to get that list of properties. It certainly wasn't the VISA property node.

0 Kudos
Message 21 of 38
(2,002 Views)
0 Kudos
Message 22 of 38
(2,000 Views)
That's one of the most unproductive responses I have ever seen. You did not answer a single question and I have no idea why you would circle the Wait (ms) function.
0 Kudos
Message 23 of 38
(1,996 Views)

Hi,

is it necessary to connect a cable to the Com1(RS232 with CompuLab)? I thought the simulation uses the buffer of Labview to read it out?

There is no more Error message in the Basic Sample since I use the new modified one with the readTimer. But there is no Read Output? Here is the error-debug:

 

 

0 Kudos
Message 24 of 38
(1,993 Views)

I understand your worries. I'am a german beginner student and it is not too easy to know what you mean.

But I will try.

Best regards

Sabrina Bangert

0 Kudos
Message 25 of 38
(1,988 Views)

You are still not making any sense to me. What the heck is CompuLab and what kind of simulation do you think you are doing. Posting the block diagram of a standard LabVIEW VI is not productive either. There is absoultely nothing to debug in that code.

 

Do you actually have an instrument connected to the com port?

 

Please fully explain (in words) what you are doing.

0 Kudos
Message 26 of 38
(1,985 Views)
You could also write your post in German. I don't speak it but there are a large number regular forum users who do.
0 Kudos
Message 27 of 38
(1,982 Views)

Hi,

with hyperterminal you mean something like that? But how do I use in this hyperterminal the existing BasicSerialWriteAndRead.vi?I have no idea.


 

0 Kudos
Message 28 of 38
(1,979 Views)

sabrinabangert wrote:

Hi,

with hyperterminal you mean something like that? But how do I use in this hyperterminal the existing BasicSerialWriteAndRead.vi?I have no idea.

 


 

You don't use the BasicSerialWriteandRead.vi in hyperterminal.  If you have problems with a LabVIEW serial VI, you need to determine whether you can communicate with the device using a terminal program such as hyperterminal.  To be certain that your baud, parity, and stop bits are correct.  That you are using the correct cable (null modem vs. straight through) and whether you need any type of handshaking.  Do you need to send a special command?  Are there termination characters you need to send?  That takes any LabVIEW programming questions out of the equation.  Once you get it working in a terminal program, then you can apply that knowledge to make the LabVIEW program do what you want.

0 Kudos
Message 29 of 38
(1,956 Views)

Hi,

I use LabView 8.5. I did not connect any hardware device to the com ports.

1. For the first I only wanted to try out the exemple "BasicSerialWriteAndRead.vi".

2. But I get no read-output      --      (but no error message, nothing. It terminates after timeout without any message)

 


 

0 Kudos
Message 30 of 38
(1,955 Views)