LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 communication

Hi

I am new to LabView and I need to write a program which can send a couple of commands through the RS232 port to another device and receive data. These commands are used to initiate the other device. The other device will send an answer for every command it receives before the next command can be sent. When this first part is done a command will be continuously sent to the other device and the other device will in turn send back 1000 bytes of data for every command. The data needs to be written to a file.

All the best
SZ
0 Kudos
Message 1 of 2
(2,496 Views)
There's a couple of shipping examples on serial communication. Just use the Example finder to look at them. You can also use the Instrument I/O Assistant to get started. Numerous examples on serial comm have also been posted to this forum. Do a search with "serial" as the search parameter and you'll find thousands of posts. There's also a lot of shipping examples on File I/O. There's an Express VI called Write LabVIEW Measurements File and functions like Write to Spreadsheet File and Write Characters to File. Look at these and decide how you want your data to appear. After you've looked at all of the examples, try writing a little code and see what happens. If and when you you run into any problems, please post back with specifics. For example, if you're using a specific instrument, mention it because there may be someone with experience with that model. The same is true with file i/o. Details on what format you want to write would be nice. Text or binary format. Comma or tab separated fields. Numeric data only or a mix of strings and numbers.
0 Kudos
Message 2 of 2
(2,479 Views)