LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Query about streams

    Hi
I want to Input a Stream of binary data (e.g; "1110001010") in to one of my vi which also returns a stream of binary data. can any one help how to build that stream and recieve stream data.

Thanks for help
0 Kudos
Message 1 of 3
(2,312 Views)

Using a queue is an easy method of streaming in labview.  Have the sender queue the binary data (a boolean array for 1 bit at a time upto a 32bit Uint depending on the chunk size you wish to send.)  in a seperate vi or parallel loop (thread) read from the queue, here is a very controlable data stream which will allow for asynchronous transfer.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 3
(2,307 Views)
Hello Mudassar,
 
Depending on the size of the chunks there are a variety of ways to do this.  Queus are the best way because you will not lose data.  You can also just pass the data in through wires or use variables.  Just create an array of booleans by using a constant or a build array.  You will then be able to use the completed array as the data type for a queue or as the information for a variable.
 
Steven T.
 
0 Kudos
Message 3 of 3
(2,290 Views)