LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you change Endian-ness in LV VISA Serial Communications?

It is basically an array that you index.  See attached.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Download All
Message 11 of 13
(460 Views)

A lookup table is definetly a possible solution for any kind of swapping/rotation.

I am wondering from your given bytes:

Do they rotate by 1 (01111111 => 11111110 => 11111101 => ...) or

Doe they swap "symmetrically" (0110|1001 => 1001|0110, '|' marks the virtual line of symmetry and is of course not part of the byte)?

 

As already mentioned, a lookup table will always work, but depending on the situation (like questions above indicate) there might be better performing solutions (at least in regard to exeuction time, maybe even memory consumption).

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 12 of 13
(453 Views)

I agree, please show us a few example where there is less symmetry in the bytes.

0 Kudos
Message 13 of 13
(441 Views)