hannibal Posted May 2, 2006 Report Posted May 2, 2006 Hi I'm new to LabView. I have an assignment on Data Acquisition via RS232 from a Weather Transmitter. This is a big problem for me. But I want your help about establishing a communication setting. I must have two vi. One is for transmitting, the other is for receiving. But now I don't know how to start. Because through RS232, we must use string to recognize a bulletin(this word is suitable in using RS232? ). Could u show me a vi that you used for communicating or tell me briefly some clues? I need your help. Thank you Quote
hannibal Posted May 2, 2006 Author Report Posted May 2, 2006 I want to add some more details. The assignment is to display the parameters of the environment such as wind speed, air pressure,temperature,... and they will be collected into one database. Each data message must include all parameters and the form of it is, for instance: 0R2,Ta=23.6,Ua=14.2P,Pa=1026.6H<cr><lf> Ta= air temperature Ua=relative humidity Pa=air pressure <cr><lf>=response terminator Can I use the serial.vi and modify it to transmit the message? I appreciate the suggestions from you 'coz I don't manage the communication via RS232 yet. Thanks! Quote
i2dx Posted May 2, 2006 Report Posted May 2, 2006 maybe this example can help you. you have to change the parsing string to detect "your" string. It should look like: 0R2,Ta=%f,Ua=%fP,Pa=%fH\r\n (or similar ...) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.