02-15-2012 09:50 PM
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.
02-15-2012 10:12 PM
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.
02-16-2012 01:11 AM
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.
02-16-2012 08:59 AM
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?
02-16-2012 09:44 PM
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.
02-16-2012 10:13 PM
@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?
02-16-2012 10:47 PM
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?
02-16-2012 10:56 PM