LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial data reading using rs232

Solved!
Go to solution

Hi friends,

                        Actually I want read Data through RS232. I have done earlier one month before. Now I want do same program. I did all connection. But I not receive data from my VI. I checked HyperTerminal That time is fine but I tried LV, I not receive output. Baud rate, Stop bits, Parity and data bits everything I gave what they given in the manual (machine manual). But still I not receive the data. I don’t know why this is not working. I add serial open vi also that also not working . I attached my Block Diagram Image also front panel image please help me.

 

Note: HyperTerminal working Fine

Thanks

Arunkumar

India.

Download All
0 Kudos
Message 1 of 5
(4,331 Views)
It's silly to have the configure serial port inside the loop. The VISA Open is not at all necessary. It's silly to have the termination character enabled and use VISA Bytes at Serial Port. It's silly to stop the loop when more than 0 bytes are available. Just have the VISA Read inside the loop with some arbitrarily high byte count. Have a stop button to terminate the loop.

And are you sure the device streams data without having to write a command to it?
0 Kudos
Message 2 of 5
(4,305 Views)
Hi Dennis ,
I am say to sorry . I am not familiar in the LV. Actually I used that program in lv example only. And I did some modification . I used one instrument which is to measure weight of the sample . and this is one way process I.e only send the data not receive. but I got output one month ago. Same program with same instrument but now this is not working . I will change what you told in last msg. And I will tell tomorrow. Thanks for reply .
0 Kudos
Message 3 of 5
(4,286 Views)
Solution
Accepted by topic author arun575

Arunkumar,

 

     Before trying to use LabVIEW itself to read from your device, try using MAX, the Measurement and Automation Explorer (or Hyperterminal for LabVIEW Devices -- I should Trademark that!).  If you don't have MAX installed, that may be "part of the problem" -- it is part of the installation of NI's Device Drivers.

 

     Others more knowledgable than I might chime in and say that you don't need Device Drivers if you are only using VISA -- I'm not sure, but I always do install the Drivers, if only to get MAX.

 

     If you open MAX, you should be able to open the COM port you want to use and open a Test Panel to "play with it" -- set Baud Rates, send and receive data, etc.  If you get that to work, you'll at least know the parameters you need to use for setting up VISA and the appearance of the incoming data.

 

Bob Schor

0 Kudos
Message 4 of 5
(4,250 Views)

hi Bob_schor

 

  I got answer . earlier I am not installed VISA driver, that is the reason I not get result. now I installed then I got output .

 

Thanks For all replies 

 

Regards

Arunkumar M

India.

0 Kudos
Message 5 of 5
(4,166 Views)