LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interface protocol

Hi everyone,
I know this is really a basic, newbie question.
Is there any example of actual LabVIEW code of interface protocol that defines bit/byte/word?
This is a simple serial read/write to device.
I'll really appreciate the help if anyone can share the code or link the code.
Thank you and have a nice day~
0 Kudos
Message 1 of 3
(2,700 Views)
Not sure what you are looking for. You'll find all the VIs you need to do serial communication on the instrument palette. If there is a specific protocol you need to talk you need to build the code that codes and decodes the data you want to send/receive to and from the binary/ASCII strings accepted/given by those functions.

Could you specify what it is you would like to send (an example) or what it is you expect to receive? Then we can suggest how to implement it.
0 Kudos
Message 2 of 3
(2,700 Views)
Dan0818,

Thanks for contacting National Instruments.

Mads did a good job of outlining serial communication and where the VIs are in LabVIEW.

As far as definitions you requested:
Bit - A single boolean value stored as a 0 (false) or 1 (true) in digital memory.
Byte - A group of 8 Bits.
Word - The smallest unit of data (in bit length) that can be addressed and moved between storage and the processor. This length usually corresponds to the bus width (the number of bits the processor can input at once). It varies from processor to processor.

Also, LabVIEW ships with several example VIs for serial communication. If you are using LabVIEW 6.1 or 7, just go to the Example Finder (Help » Find Examples...), switch to the Search tab, and sea
rch for "serial". This will bring up several examples which demonstrate how to do serial communication in LabVIEW.

I hope this provides the information you need to get started. If not, please post a more specific question and we can talk about it further.

Sincerely,

Ross C
National Instruments
Applications Engineer
0 Kudos
Message 3 of 3
(2,700 Views)