Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with a simple structure...

Status
Not open for further replies.

hades1876

Computer
May 11, 2005
2
Hy guys!
I'm an 18 year old just-starting engineer from austria, and just started using labview 7.1.

Now, I need help in a probably very simple but very specific problem:

I read 4096 byte from a serial port, and do have to "cut 'em down" in strings of 4 byte each.

So, I'm looking for a solution to:
1.
take the 4096 byte string and split the first 4 byte off. (not that difficult, due to the "Search/Split String"-function)
2.
hand these 4 bytes to the rest of the program (ok, still easy.. simply wire the output to the rest of the block-diagram)
3. (actually, this is where the my probs start)
Now, take the 4092 byte, the rest of the original string, and perform the same operation as above until the whole original string is split in 4 byte strings (=until this "cut-4-byte-off-operation" was performed 1024 times)

I hope my english's not too bad, and I thank you very much for spending your precious time!

Thanks a lot! Martin
Solutions welcome under mkdsohm@gmail.com
 
Replies continue below

Recommended for you

I would try a for loop (1024 times)
and use the string subset function.
This function inputs the string , an offset , and length.
outputs a string of the specified length
(ie. 4 bytes).
Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor