How to tell your platform type?

I'd like to be able to tell the platform type (unix, mac, windows) that
a VI is running on so that I can better parse text files. Does anyone
know of a nice way to do this?
-- Stephen

If your problem is only about end-of-line characters, you can use the
"Convert EOL" input of the read and write file functions.
Reading a file with Convert EOL true will change the CR,LF, CRLF, LFCR
combinations into singles LF in the read string.
Writing a string to file with Convert EOL true will change them back to the
platform dependant end-of-line charater(s).
Jean-Pierre Drolet
"Michael Aivaliotis" a �crit dans le message news:
[email protected]...
> Sorry, it returns an empty string..
> Actually the solution to your problem comes from somewhere else.
>
> What you have to do is find out what an "End of Line" constant looks like
on
> each platform.
>
> If the "End of Line" constant is equal to a "Carriage Return" constant
then
> you have a Mac.
> If the "End of Line" constant is equal to a "Line Feed" constant then you
> have Unix.
> If the "End of Line" constant is equal to a "Carriage Return" constant
> concatenated with a "Line Feed" constant then you have a PC or a "Gates
> Box".
>
> Everything else is Unknown platform. I wonder what Linux returns....Hmmmm.
>
> Thank You
>
> Michael Aivaliotis
> Senior Developer
> Cymasoft Inc.
> Tel: 416.984.9100
> email: [email protected]
> web: www.cymasoft.com
>
>
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]]
> > Sent: Friday, October 20, 2000 10:46 AM
> > To: [email protected]
> > Subject: Re: How to tell your platform type?
> >
> >
> > Message from the Deja.com forum:
> > comp.lang.labview
> > Your subscription is set to individual email delivery
> > This message was sent to [email protected]
> > Deja.com: Best way to buy a PC
> > http://www.deja.com/channels/channel.xp?CID=13031
> > >
> > Can someone on a windows platform do an experiment? The "empty path"
> > constant, when routed to a path to string converter, returns the
> > empty string
> > for Macintosh and a forward slash for unix. I'm hoping that it
> > will return a
> > backwards slash for windows.
> >
> > Thanks.
> >
> > -- Stephen
> > who is still using labview 4.1
> >
> >
> > Paul Davey wrote:
> >
> > > Hi Stephen
> > >
> > > I asked this question once. You use the "Open Application Reference"
> > > function (Application Control) (with no inputs) and wire the reference
> > > number to a "Property Node". Then pop up on the element in the
Property
> > > Node and choose "Operating System: Name"
> > >
> > > Paul
> > > --
> > >
> > > Research Assistant
> > > School of Physiotherapy, Curtin University of Technology
> > > Selby Street, Shenton Park, Western Australia, Australia. 6008
> > > email: [email protected]
> > > Tel. +61 8 9266 4657 Fax. +61 8 9266 3699
> > >
> > > "Everyone who calls on the name of the Lord will be saved." Romans
10:12
> > > "For all have sinned and fall short of the glory of God, and
> > are justified
> > > freely by his grace through the redemption that came by Christ Jesus."
> > > Romans 3:23-4
> > >
> > > Stephen Boulet wrote:
> > >
> > > > I'd like to be able to tell the platform type (unix, mac,
> > windows) that
> > > > a VI is running on so that I can better parse text files. Does
anyone
> > > > know of a nice way to do this?
> > > >
> > > > -- Stephen
> >
> > --
> > Stephen Boulet
> > Senior Electrical Engineer
> > Schaumburg BTS COE Lab
> > Motorola Network Solutions Sector
> > Phone: 847-576-4399
> > Fax: 847-538-3765
> >
> >
> >
> >
> >
> >
> > _____________________________________________________________
> > Deja.com: Before you buy.
> > http://www.deja.com/
> > * To modify or remove your subscription, go to
> > http://www.deja.com/edit_sub.xp?group=comp.lang.labview
> > * Read this thread at
> > http://www.deja.com/thread/%3C39F05AB9.4F66DCD2%40comm.mot.com%3E
> >
> >
>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

Similar Messages

  • How to know the platform type

    Hi
    I would like to know the platform type am using in the frontend..am trying to use the static method
    cl_gui_frontend_services=>GET_PLATFORM...it returns '5'..am not able to interprete the importing parameter
    Please suggest
    Regards
    Panda

    PLATFORM_UNKNOWN     -1
    PLATFORM_WINDOWS95     1
    PLATFORM_WINDOWS98     2
    PLATFORM_NT351          3
    PLATFORM_NT40          4
    PLATFORM_NT50          5
    PLATFORM_MAC          6
    PLATFORM_OS2          7
    PLATFORM_LINUX          8
    PLATFORM_HPUX          9
    PLATFORM_TRU64          10
    PLATFORM_AIX          11
    PLATFORM_SOLARIS     12
    Regards,
    Rich Heilman

  • How to tell your movie clips apart

    I have a dumb question. I have several video segments that have subtle differences. I've given them names that reflect this. To my amazement, this information does not seem to be recorded in iMovie 09. Is this application targeted towards illiterates? It must be, because previous versions had quite a bit of information stamped on the clip as it sat in the bin. I don't see it in iMovie 09 and I've looked everywhere. I really need this information and am dumbfounded it is not easy to find. It's like hiding the name of the file you are working on. Can anyone tell me where the name of each clip is located in iMovie 09? Thanks.

    In previous versions of iMovie you could double click on a clip and it would give you its information. The clip name was also right on the clip in the "bin." It is absurd to change this. I don't see how video is fed in--via a camera or otherwise--has anything to do with these missing features. What if you fed in a dozen video clips from your vacation, but they all had similar first frames. They would all look the same in iMovie. How would you put them in chronological order if you didn't put them in that way?
    As I move through I see even more missing features. I don't see how to name the clips in the Event Library. When I import clips they are not identified in the Library! They are just nameless items in the bin. The "Inspector" tool is nice, but why not include the name. Also, I see no way to edit the clips. What happened to the tools like "split at tape head" and other ways to delete portions of a clip? I don't see any of that in iMovie 09. Am I missing something easy or is this product really degraded from its previous versions. It almost looks like they want to force you to by FCP or Express. I mean after all, if all iMovie does is slap clips end to end I can do that in QuickTimePro. Thanks for any help. Sorry I'm so frustrated by this product. I expected it to be better.

  • I see noticed that other peoples notification bar  tell them information like your this many minutes away from your house or it's this many degrees outside and stuff like that but mine doesn't how can I turn that type of stuff on?

    I see noticed that other peoples notification bar  tell them information like your this many minutes away from your house or it's this many degrees outside and stuff like that but mine doesn't how can I turn that type of stuff on?

    Ask these people what Apps they've installed that provides those features. Once you find out 'buy' those apps, install them and configure them to notify you of that information.

  • How can i remove comments from the "tell your frie...

    How can I remove comments from the "tell your friends how you're doing" section?

    Please do a Skype reset.
    Exit Skype : From the system tray >> right click on the skype icon and click "Quit"
    Press WinKey+R
    Type: %appdata% and press Enter.
    Rename the folder "Skype" to "Old_Skype"
    Run Skype.
    You will need your password to re-log on, and re-set any options from default
    Regards,
    Tamim
    Location - Dhaka | Bangladesh - Standard Time Zone: GMT/UTC + 06:00 hour
    If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.

  • Does anyone know how to change your country location ? I am traveling and I need to make a purchase and do updates. My App Store tells me I need to switch to a US store to make purchases.

    Does anyone know how to change your country location ? I am currently traveling and I need to make a purchase and do updates. My App Store tells me I need to switch to a US store to make purchases.

    Unless you live in the country and have a credit card with a billing address in the country-you don't.
    http://www.apple.com/legal/itunes/us/terms.html#GIFTS
    "The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance."
    Substitute whatever your home country is if it is not the US, terms are the same.

  • HT2534 Its is fake . i have bought iphone today but i haven't cred card so how i create account ? Your example type "none" window not come . New iphone but with out ID useless Phone :(

    Its is fake . i have bought iphone today but i haven't cred card so how i create account ? Your example type "none" window not come . New iphone but with out ID useless Phone

    Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here.
    Did you follow the instructions on that page exactly when creating the account (the instructions won't work with existing accounts) ? e.g. if doing it on your phone and you are currently logged into an account then log out of it, find a free app in the app store app, tap on its free price button, tap 'install app', and then tap on 'create new apple id' on the popup that you get. I tried those instructions on my phone a few days ago in response to another thread and I got the 'none' option on the payments screen.

  • How can I find out the current platform type?

    Hello,
    I want to find out the platform type (in the format of v$transportable_platform.platform_type) of a running Oracle instance (on 10g2 and 11g1). The v$transportable_platform shows a list of all supported platforms, and I want only the type that is encoded in the datafiles - v$datafile does not provide me such information.
    Thank you,
    Adrian

    AdrianM wrote:
    Hello,
    I want to find out the platform type (in the format of v$transportable_platform.platform_type) of a running Oracle instance (on 10g2 and 11g1). The v$transportable_platform shows a list of all supported platforms, and I want only the type that is encoded in the datafiles - v$datafile does not provide me such information.
    Thank you,
    AdrianDear Adrian, use the following query:
    select PLATFORM_NAME from v$database;

  • How can you tell your iPod t generation

    I Need to know how to tell which generation my iPod touch is. It only says 8GB

    Append the last three characters of its serial number to http://www.everymac.com/ultimate-mac-lookup/?search_keywords= and load the page.
    (121279)

  • How to protect your IP from skype resolvers!

    This is a guide on how to stop your Skype username resolved and your IP found.
    NOTE: This is for PC machines not for other devices (Unless you can locate to this area on your device, then do so and see if it works then great!), a side note if you have 2 devices logged into skype (I recommend only having one.) if you have to have 2 or you cannot change these settings for both devices then unfortunately they will be able to get the IP from the device that is not protected unless you sign out of the device that you cannot change the connection settings on.
    Follow these steps carefully.
    STEP 1- Tools > Options > Advanced > Connection
    On the top of the Skype application there should be headers, Skype, Contacts, Conversation, ect. Navigate to "Tools" and press, then go to "Options" after that locate to the "Advanced" header and find "Connection", press this and you will have settings ready to be changed.
    Images showing step 1.
    STEP 2- Read carefully.
    Follow these steps from the top of the settings to the bottom and you should do fine.
    1. "Use port [32535] for incoming connections." 
    2. Check "Use port 80 and 443 for additional incoming connections."
    3. Select "HTTPS" from the dropdown menu.
    4. Put the Host as [127.0.0.1] and the Port as [40031].
    5. Uncheck "Enable Proxy Authentication" if it is checked.
    6. Uncheck "Enable uPnP" if it is checked.
    7. Check "Allow direct connections to your contacts only."
    8. Then press "Save" in the bottom right corner.
    Images showing step 2. Check if yours looks the same.
    STEP 3- Finishing up step 1-3. Changing IP.
    Now that you have saved the editing of connection settings you should now sign out of your skype account, quit Skype and end any Skype.exe's running in the backround using Task Manager. If you do not have any knowledge on it, I recommend just restarting your PC machine for safer measures.
    When that is done this people most likley will still be able to get the IP address you have after changing them settings but if you change your IP address they will still have the old IP, not your new one. Now you are probably thinking "How do I change my IP then?", well Step 4.
    STEP 4- Changing your IP address.
    To change your IP there is two things you can do to my knowledge. To start CLICK HERE this will give you your IP address write or type that down somewhere so you can tell if your IP has changed later. First way to change your IP: Allot of ISP's (Internet Service Providers) these days will allow you to turn off your Networking Modem/Router (In Australia atleast.), for an extended duration of time (5-10+ minutes.) which would then change your IP this is called Dynamic. After doing this check back on the website or refresh the page and see if your IP has changed, if it has then you are done. You are safe from having your skype username resolved if your IP hasn't changed. follow the, Second way to change your IP: Simply call up support and ask them a way to change your IP address or look on online support, they will surely help guide you through and help you change it. Just tell them that people are DDOS'ing or are doing things with your IP online (explain what it is) or are going to and you want to protect yourself from it, that is if they ask why. If they do not allow you to change your IP then there is nothing I can do, unless you want to research another way on how to do it. One way or another most of the time there should be a way somewhere out there on how to change your IP just research on it. After your IP being changed you should be scott free if you have followed these steps correctly. To test use some Skyper resolving websites and use your own Skype username, if my guide has worked it shouldnt give a IP
    I really suck at English, sorry about how messy this is. I found out how to stop people from resolving my IP and I wanted other people to know about this really badly. If you find this guide not understandable please tell me, I can always make a youtube video and post it on this guide or edit it.
    You could also use a proxy to stop being resolved but it lowers your connection speeds for a gamer like myself this really affects me, that is why I posted this.
    Mod Edit: Edited post to comply with the Skype Community Guidelines and Skype Etiquette

    I apologies for the late reply, but if you read the whole thing your problem should be solved. If the person that is retrieving your I.P has gotten it before my steps, he then has your I.P, no matter if you stop anyone else from retrieving it, you need to change your I.P. I personally have a dynamic I.P so I can turn my router off to 5+ minutes and my I.P will change. This way when they then try to resolve my Skype, and try to retrieve my new I.P they are left blocked. There are also other ways to get your I.P, via streaming Skype calls he can get your I.P directly. You can always ring up your ISP (Internet Service Provider) and ask them for help on how to change your I.P address. You can also look around on the internet on how to set up a proxy, proxies pretty much defeat all the DDOS'ers that are wannabe hackers.

  • How to find out the type of the object ?

    how would i find out the type of an object reference variable ?
    it would be nice if there was some sort of getType() method that would return a string to tell me the type of the object -- just for testing purposes

    try
    Object.getClass().getName();
    or just
    Object.getClass().toString();
    so something like this in your code:
    Object obj = new Foo();
    System.out.println(""+obj.getClass());
    etc.

  • How  to change the billing type Rv to DG

    Dear all,
    when ever we are doing the return order to a sales we will create a customer credit memo through the VF01 T-code.where billing type will be customize one that is credit memo..
    once we save that the in customer G/L we are getting the document type as RV instead of DG.
    please tell me how to change the document Type in customer Ledger.
    regards,
    chethan

    Hi,
    Just to draw your attention that DG is doc.type used to issue credit memo from FI (t.code FB75), where it does not involve the inventory movement.
    Whereas the credit memo generated from OTC cycle (i.e.VF01) involves inventory movement. Ideally, both of these types of credit memos should have different doc. types, so that users can distinguish the returns based on doc. types later on.
    So, after explaining the above, please check with your business thoroughly if they really need to use DG instead of RV. I would suggest to create new doc. type 'ZC' and set up through VOFA.
    Thanks,
    Nirav

  • How To Use Your Own Router with Out Loosing Verizon's FIOS Services

    How to use your own router with Verizon’s FIOS Service
    First, you need a basic understanding of how FIOS works but unfortunately there are two types of FIOS systems out there. All of the systems utilize a fiber optic cable to bring TV, phone and internet to your location over one optic cable. In addition these systems provide interactivity including widgets, remote DVR, movies on demand and so forth via an IP (Internet Protocol) signal.  Your STB (Set Tip Box) requires both a video and IP signal. The IP signal is necessary for all of the aforementioned interactivity.  The fiber cable terminates at the Optical Network Terminal or ONT for short.  The ONT converts the optics into a digital signal that can be utilized by ones equipment.  From the ONT your video, phone and internet are provided to the location.  This is where things can differ as the internet signal can be provided via a coaxial (MoCA or Multimedia over Coax Alliance) or RJ45 Cat5 (Ethernet) cable.  It is important to identify and understand the differences of these two setups.  In my case I have my internet entering via Ethernet cable, which in my humble opinion makes things a heck of a lot easier.
    How does one tell the difference? In most cases it’s rather simple; just look at the Verizon’s router WAN (Wide Area Network) Port.  Does it have a RJ45 (Ethernet) or Coax (TV cable Cord) going to it? If the router’s WAN port doesn’t have a coaxial connector then one will need to convert the MoCA signal into a usable Ethernet signal that routers understand. The easiest way is to use Verizon’s router as a bridge. In this method the Verizon’s router simply converts the signal and passes it along to your own router. The challenge is to try to maintain the interactivity that FIOS TV provides. Because of this one needs to supply the IP routed signal back to the FIOS router.  There are multiple methods for doing this and I would recommend investigates which one make the most sense.   
    In my particular case the IP signal was provided by Ethernet.  Again there are various ways of installing one’s own router. The hardest is to utilize Verizon’s router as a bridge.  This setup requires configuring Verizon’s router as a bridge and also creating a VLAN (Virtual Local Area Networks). In addition one needs to set up their own router so it will work with the various routing tables and networks. For me this is too complex for the average person and it can be difficult to trouble shoot if something goes wrong. Please consider that Verizon will not support utilizing third party routers.   
    The easier method is to request an Ethernet signal (if you don’t already have one) from their ONT.  I would highly recommend getting your hands on a NIM or Network Interface Module. This device is used to convert Ethernet to Coaxial so it can be fed back to your STBs.  These can be purchased online and Verizon technicians can be a valuable resource with these sorts of acquisition.  At the very least they can point you to the right direction.  Once you have a NIM the rest is rather simple.
    Log into the current Verizon Router.
    Located the router’s MAC address and copy it down.
    Go to the port forwarding section and copy down the Applied Rules. 
    Example:  
    Network Computer/Device: 192.168.1.100:63145
    Application & Ports Forward:  Application UDP Any -> 6347  
    Note: There may be up to three entries for each one of your Set Top Boxes.
    Look at your current device list, typically found on the home screen. Copy down your STB MAC and IP address.
    Example:
    IP-STB1
    Connection Type: Ethernet
    * IP Address: 192.168.1.100
    IP Address Allocation: DHCP
    *MAC Address:                07:73:fFe:ad:8b:3f
    * Things you will need to write down
    Go to the network section and look for the main Ethernet connection.  Select this and then select more setting, typically found at the bottom. Release the current lease.
    Remove the Verizon router
    Install your router
    Connect the NIM by plugging in an Ethernet from one of the routers LAN (Local Area Network) ports to your NIM. Then connect the coax cable, the same cable that was used by Verizon router.
    Set you DHCP routing IP pool to accommodate Verizon’s STB IP’s  (note their IP’s start at 192.168.1.100)
    Go to DHCP section and reserve the STB IP’s by inserting the IP’s and MAC addresses. This shall ensure that nothing else utilizes the same IPs as the STBs thereby preventing IP address conflict.  
    Add the port forwards from Step 5 above.
    Clone Verizon’s Mac Address utilizing the info from step 2
    Finish setting up the router in typical fashion.
    Unplug and re-plugin your STB’s and test functionality.  It’s best to try using a widget or Movie on demand function.
    Note: if the new router can net get an internet signal contact Verizon’s support and have them release the IP and reset the ONT.  
    EVERYTHING should be working at this point.

     3 Go to the port forwarding section and copy down the Applied Rules. 
    Example:  
    Network Computer/Device: 192.168.1.100:63145
    Application & Ports Forward:  Application UDP Any -> 6347  
    Note: There may be up to three entries for each one of your Set Top Boxes.G
    Your display obviously is not like mine as mine does not dosplay the port associated with the ip address
    whatever, the STB's start at 192.168.1.100 and icement by 1 for each
    the port addr's will be 63145 alo incrementing by 1
    there is 1 entry for each in my pf list
    however each ip addr also has a port entry starting at 35000 also incrementing by 1 for each ip addr
    For some unknow reason these are duplicated e.g I appear to have 11 entries exaactly the same for each stb and as the fios services rules have no action switc there is nowhere to delete the extraneous garbage.
    Why do you clone the mac addr??

  • TS3694 How can I fix this type of error in iphone 4?"The iphone could not be restored. An unknown error occurred (3194) "please help me.

    Hi everybody !
    AT&T company is unlocked (factory)my iphone4 before 3 days ago so i want to restore to unlock iphone 4 with itunes but it is not restore.
    How can I fix this type of error in iphone 4?- "The iphone could not be restored. An unknown error occurred (3194) "
    please help me in nepali language(if posible) or english. thank you.

    http://support.apple.com/kb/TS3694#error3194
    This means that either your firewall/antivirus is blocking access to Apple's servers, or you have used your computer to jailbreak an iDevice in the past. The link above tells you how to resolve this issue.

  • How to Update Date data type field value in oracle

    I want to update records in a table that has a Date data type field. It's a oracle databse. I use the oracle thin drive to connect to the database. The everything works well, only when i try to update records that have date type value, something doesn't work.
    I use the following stmt to update DB:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Conn = DriverManager.getConnection("jdbc:oracle:thin:@hostname:portnumber:schname", "uid","pwd");
    stmt=Conn.createStatement();
    String updStr = "UPDATE Article SET Archive = ' Disable' WHERE ArticleDate = # " + sqlDate +"# " ;
    stmt.executeUpdate( updAStr ) ;
    But I always got the SQLException run time error, which is "ORA-00911: invalid character"
    Who can help me to find out how to write the above Update statement correctly? esp. that how to present the Date type variable in the statement.!
    BTW, sqlDate is a Java.sql.Date variable, Is it "# " + sqlDate + "# " the right way?
    Many thanks

    What do you get out of Oracle's TO_DATE that java.sql.PreparedStatement.setDate()
    won't give you? - MODWell, I don't know that I've used all capabilities of either, but when it comes to managing Date Strings my Oracle bias :) would be to code using Oracle's TO_CHAR and TO_DATE functions. Perhaps someone can tell me vendor neutral ways to do something simiilar to managing these input date/times (and hopefully just as easily, pretty much all done in a single line, single function)?
    WHERE aDATE > TO_DATE('2010','YYYY')
    WHERE aDATE > TO_DATE('2010 AUG 22','YYYY MMM DD')
    WHERE aDATE > TO_DATE( 'January 15, 1989, 11:00 A.M.', 'Month dd, YYYY, HH:MI A.M.')
    I believe most databases have something similar to this, although I have found Oracle's to be the most flexible and consistent, if not the most intuitive. Other vendors (DB2, SQL Server, Access) don't force you to always be explicit, and can accept a variety of date strings without masks. The problem is that while you might not be getting an error, it also may not be parsing your date as expected.
    One could argue that this vendor specific hodgepodge of literal date/time strings is only one program modification away from disaster. They might be right.
    Just to be clear. I'm not recommending using a vendor specific approach, but it's not a perfect world and somtimes you have to use what works easiest or best or fastest, and in some cases, that is the vendor specific alternatives.

Maybe you are looking for