LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to ready dynamic data

Hi Friends,

 

I am new to LabView and I am using LabView 8.5 from last 3 weeks.

 

My requirements are I am getting data and I need to divide that data in frames of 8 bytes.

 

For example

case 1) I am getting INPUT DATA of 15 bytes

Case 2) I am getting INPUT DATA of 60 bytes

 

INPUT DATA can vary in any range.

In both cases I want to divide INPUT data it in frames of 8 byte.

 

This means INPUT DATA is not of fixed length and I don't know which Data Type and Control to use for it.

 

 

Thanks

Manoj

0 Kudos
Message 1 of 2
(2,452 Views)
I would use string as container of my bytes, since most drivers accept string data to be sent. The split up the string into frames of 8 bytes use a while loop and get string subsets of 8 characters, until less than or equal to 8 characters are left in the string. The frames can be stored in an array of strings to be created using the auto indexing option of the output terminal.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 2
(2,443 Views)