ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combining 2 bytes

Hey.

I have a thermal camera with 16 pixel where each pixel is 2 byte ( High/low)
Id like to combine these to and show it in a intensity graph.

Having issues with how I should do this....
I have succeeded receiving 32 bytes from the "string to byte array"
I tried with a FOR loop where I put an index array inside.,
I've added the VI. 
Does anyone have experience combing a high and low byte? 

 

0 Kudos
Message 1 of 2
(5,862 Views)

All you probably need is a simple "join numbers" or "type cast" the entire array with an U16 array as type.

 

Frankly, your code makes very little sense. If you are autoidexing in a 8x8 2D array, you get a max of 8 iterations, so why would you wire a 16 to N? So you get 8 elements that you then try to reshape into a 8x8 2D array. There is really not enough useful data for that.

 

Can you run your VI so the "unsigned byte array" contains typical data, then right-click the terminal and "create constant". Save and attach the VI. Now we have data to play with.

0 Kudos
Message 2 of 2
(5,844 Views)