LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i read data to labview via RS232 WITH CABLE interface

i had a strain indicator having RS232 WITH CABLE interface. i need to develop an application based on datas from this indicator. as a beginner i dont know how can i read data via serial interface. can you help me sir? if possible please send me one sample vi.

0 Kudos
Message 1 of 8
(5,371 Views)

Look in LabVIEW's example finder for "serial".  You'll find a few examples demonstrating how to communicate via the serial port.

 

You will also need to read the communication manual for your device to know what commands you need to send and how to read the response.

0 Kudos
Message 2 of 8
(5,365 Views)

i needs to collect a number of datas serially. ie,strain indicator contains more than one gauge. so if i send these all together , how can i separate these individually?

while reading via visa its showing error and buffer contains some garbage values.

 

0 Kudos
Message 3 of 8
(5,347 Views)

You will need to write some LabVIEW code to break apart the pieces.  There are several string and array functions that can do this.

 

If you are getting an error, what does it say?  What do the "garbage values" look like?

 

Have you read the manual for the device yet?

0 Kudos
Message 4 of 8
(5,333 Views)

it is showing some error 1073.... like that or framing error. it wil be removed while setting 9600 baud rate. After that it is reading" ANEy " like this. i am not an expert in this field. So can you help me to do this sir?

  

   i am using 3 channel strain data logger by NIC jaipur. it had a RS232 with cable interface. i need to read strain value from  that  to labview. can you please send me the vi for that?

i am using com port. so please considor my request sir.

0 Kudos
Message 5 of 8
(5,318 Views)

@sagar alias jacky wrote:

  

   i am using 3 channel strain data logger by NIC jaipur. it had a RS232 with cable interface. i need to read strain value from  that  to labview. can you please send me the vi for that?


No, I can't send you a VI.  It's not like it there is something magically already written out there.  (Though you can search http://www.ni.com/downloads/idnet/).

 

A framing error means you don't have the baud rate, data bits, stop bits, or parity set properly.  The manual will tell you what they should be.  Have you read the manual?

 

Do you have a link to it?

 

Is it sending out ASCII data that is human readable?  Or is it sending binary data which means it would look like garbage characters a lot of the time?

0 Kudos
Message 6 of 8
(5,314 Views)

That data logger is an  old one . so i lost that manual. i had that software cd for that logger. They used VISUAL BASIC for coding. When we run one executable file it communicates with PC and will show same readings as in LCD display.  what are the tools used for reading serial data from port via labview?

 

 

0 Kudos
Message 7 of 8
(5,311 Views)
You can't do much without the manual. There are no standards for serial instruments so unless you have something that explains in detail what it is doing, you are going to have a very difficult time.

You could attempt to use a sniffer such as portmon. Otherwise, throw it away and buy something with documentation.
0 Kudos
Message 8 of 8
(5,307 Views)