LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

few questions regarding labwindows

Hi all,

 

 I am using CVI 2009 and  i have two simple questions
 
 1) I have written a code in Labwindows CVI which is in little Endian. Can i
    convert whole of this application into Big Endian ? I actually mean that is
    there any option in Labwindows CVI which changes the Endianness?


 2)  If there are few lines of code from 1 to 50 and i have to exactly reverse their order i-e
     from 50 to 1. Is there any shortcut available in labwindows for doing this?

 

  Regards,

 mhs100     

0 Kudos
Message 1 of 3
(2,661 Views)

Hi mhs100,

 

starting from CVI9 you can find HostIsBigEndian function in the Programmer's Toolbox: based on the result of his function you can use the other functions in Endianness section of the toolbox to convert format according to your needs.

 

With reference of your second question, I'm not aware of such a utility which could be of some help.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(2,652 Views)
> With reference of your second question,
> I'm not aware of such a utility which could be of some help.

As a (linux) command line, you use tac or rev, depending on exactly how you
want to reverse them.
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 3 of 3
(2,636 Views)