LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delete 8 bit first

Solved!
Go to solution

output bit stream is "0000000001010000" but I want to delete 8 bit first 
for last out put is "01010000". what should I do ?

thank you 

Download All
0 Kudos
Message 1 of 3
(3,146 Views)

Hi OAT,

 

when those "bits" are given as 1D array you should use ArraySubset with an offset of 8…

(Otherwise delete the first char of your input string using StringSubset.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(3,144 Views)
Solution
Accepted by topic author OATTelecom

If you want to modify input stream, I would use Decimate 1d Array.vi (after string to byte array) 

More notes:

It is generally better to put convert inside loop

If you add 18 to reshape size after first loop, you will get the same input bit immediately - without extra build array (right click -> concatenate arrays in these cases) and second reshape.

 

Edit: May be I did not understand you. Do you want to remove only first byte from long message? Then array subset (or delete from array) will work. I thought it is 2 byte points, you want to get rid of the first byte for each of them. Overcomplicating...

Message 3 of 3
(3,098 Views)