NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
mhs100
Posts: 155
0 Kudos

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     

Trusted Enthusiast
RobertoBozzolo
Posts: 4,570

Rif.: few questions regarding labwindows

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.




Using LW/CVI from 3.1 on.

My contributions to the Developer Zone Community
________________________________________
If I have helped you, why not giving a kudos?
Member
Guillaume Dargaud
Posts: 101
0 Kudos

Re: few questions regarding labwindows

> 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/
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page