LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read error using RS232

Solved!
Go to solution
I don't know more about the Basic programm, I download it from the radioshack website
0 Kudos
Message 11 of 38
(5,022 Views)

Have you tried running that Basic code to see if it works?  (Though I'm not sure if newer versions of Windows still supply Basica or Qbasic).

 

Are you sure you have the right cable?  Null modem vs. straight through.

 

Have you tried communicating in Hyperterminal yet like Dennis mentioned?

0 Kudos
Message 12 of 38
(5,016 Views)
I managed to dig up this page that discusses those OPEN options. It appears that the configuration is to basically ignore the state of the various serial port lines.
0 Kudos
Message 13 of 38
(5,009 Views)

RTS and DTR? must not be asserted or the meter will not send data. Some details here on pg6:

 

http://www.utsc.utoronto.ca/~quick/PSCB01H3S/Manual/ApA.pdf

 

and on pg11 here:

 

http://www.utsc.utoronto.ca/~quick/PSCB01H3S/Manual/Ch05.pdf

 

As already suggested, verify your cabling and start with Hyperterminal.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 14 of 38
(4,991 Views)

The Basic programm is working

 

I have checked the serial port with Hyperterminal, I type "D", but there is nothing feed back on the screen.

 

0 Kudos
Message 15 of 38
(4,990 Views)
Solution
Accepted by topic author qinchao

AnalogKid2DigitalMan wrote:

RTS and DTR? must not be asserted or the meter will not send data. Some details here on pg6:

 

http://www.utsc.utoronto.ca/~quick/PSCB01H3S/Manual/ApA.pdf

 

and on pg11 here:

 

http://www.utsc.utoronto.ca/~quick/PSCB01H3S/Manual/Ch05.pdf

 

As already suggested, verify your cabling and start with Hyperterminal.

 

-AK2DM


I found the first item on page 8 of the ApA.pdf.  That seems backwards to me for a normal serial protocol that the lines should be unasserted.  Smiley SurprisedSmiley Mad

 

But that explains why it won't work in Hyperterminal.  When you open the port in hypertermina DTR and RTS go high.  I don't know if there is any way to force them to be low from within Hypterminal.

 

Within LabVIEW, those lines can be set to low.

 

(Also double check your baud rates.)

 

Message Edited by Ravens Fan on 10-29-2008 04:14 PM
Message 16 of 38
(4,971 Views)

RavensFan:

 

I agree, probably the best best would be to leave them unwired (physically in the real world, not virtually in LabVIEW), just use the RXD, TXD, and GND wires since there is no flow control protocol.

 

Sorry I did not preview your attachment.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 17 of 38
(4,965 Views)

The problem has been solved. Thank everyone

 

AnalogKid2DigitalMan gave me two useful PDF.

 

The problem is "The instrument does not support handshaking, but the RTS line must be unasserted or else the DMM will not send.6"

 

When I add a property Node and set RTS state = 0 ,then it is working.

0 Kudos
Message 18 of 38
(4,959 Views)

Hi,

I have the same problem. What can I do? Here is my error-screen:

0 Kudos
Message 19 of 38
(4,759 Views)

Where do I have to add the property node? Here:

 

 

0 Kudos
Message 20 of 38
(4,754 Views)