External convert samples don't work for PCI-6111

I'm trying to use an external convert signal for a single channel acquire on a PCI-6111. I'm using VB. The supplied example (DAQSingleBufExtConv_Eseries) doesn't work. I get error # -10003 at the DAQ_Config call. I have tried all sorts of combinations of DAQ_Config and Select_Signal, but have no success.
Why is this so? I'm using NI-DAQ 6.9.1.

Dave,
The Traditional NI-DAQ Function Reference Help for the DAQ_Config function contains the following comment:
Note: (61XX devices only) The only allowed values for extConv are 0 and 2. The conversions occur simultaneously for all channels and are controlled by the scan interval.
The Traditional NI-DAQ Function Reference Help is available in the following location:
Start >> Programs >> National Instruments >> NI-DAQ >> Traditional NI-DAQ Function Reference Help
So, you will want to assign the extConv parameter a value of 2 and use the Select_Signal function to route the signal accordingly.
Good luck with your application.
Spencer S.

Similar Messages

  • External UCube speakers don't work after awakening from sleep mode since 10.7.5 upgrade

    Ever since I upgraded to 10.7.5 when I wake my computer from sleep mode...my external UCube speakers don't work unless I unplug them and plug them back in. I've already tried resetting the SMC. It recognizes and shows the speakers in the sound preferences...but no sound unless I reconnect the usb cable. Worked fine in 10.7.4
    Any ideas? Its ridiculous all the audio problems being reported.

    I have a mac mini (A1283) with OS 10.7.4. Upon upgrading to 10.7.5 it did not start up again. Instead, the light was on and the hard drive did not start up. The light on the connected USB mouse was not lit.
    My solution:
    Cold start with Command-v pressed.
    This should start Verbose mode (see http://support.apple.com/kb/HT1492 ).
    What happened on my mac mini was that the grey startup screen with the Apple logo appeared for a long while before the login screen came.
    Maybe Cmd-v set open firmware params and fixed some corruption.
    Anyway: my mac mini works again.

  • I had to buy a new keyboard but F10, F11 & F12 don't work for the volume. What can I do to activate it?

    I had to buy a new keyboard but F10, F11 & F12 don't work for the volume. What can I do to activate it?

    Hello,
    I think Spark cured this for another person and the same problem...
    http://www.shadowlab.org/Software/spark.php

  • Labview programers, for your safety don't work for holotpics in Switzerland

    Ni programmer, for your safety don't work for holotpics in Switzerland, the chairman is a bad guy:
    he swindles National instruments by buy matérial on the black market
    and he don't pay its employes and a lots of others bad things.

    Never heard of the company, but if they don't pay their employe(e)s, then there won't be anyone at all working there soon.
    Otherwise, NI, delete this stupid post please.
    Personal opinions of this sort are trash and deserve to be removed.
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • I can't update my apps even when I do App Store purchased select all...... It don't work for me

    I can't update my apps even when I do App Store>purchased> select all...... It don't work for me

    When you tap on All at the top. That shows all of you purchased apps. You still have to manually go through each letter (on the left side) and look through every page of apps in order to find the apps that need an update. It is a pain and its time consuming, but that's how you have to do it.
    Is that what you are doing and it's not working for you?

  • I can't lock screen on Ipad mini. My lock screen button is working for shutdowning Ipad, but don't working for lock screen. Also I tried to lock screen from Assistive Touch and it's not working. When I click lock screen on assistive it nothing happens.

    I can't lock screen on Ipad mini. My lock screen button is working for shutdowning Ipad, but don't working for lock screen. Also I tried to lock screen from Assistive Touch and it's not working. When I click lock screen on assistive touch it nothing happens.

    Thank you for that update.
    I would next backup your device to iTunes with this article:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    And restore it first as a new device, and verify that it works properly, then restore from your backup with the same article below to ensure that it is still working.
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    If it does not work correctly when you set up the phone as a new device, I would next seek service for your iPad:
    http://www.apple.com/support/ipad/repair/other/
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • DNG converter don't work for some RW2-files

    Hi,
    i found out, that there ist now direct support from CS4 to my new Lumix LX5. :-(
    In  some forums i got the hint to use the free DNG converter. that works  for most of the files, but some rw2's it can't convert. yesterday i made  10 pictures and the converter only identificate 7 of them. The only  thing i noticeed ist, that this files are "only" 7MB. The others are  10MB. When i use irfanview to look the rw2's are no problems. the  pictures are all very good. somebody an idea whats wrong with the 3?
    Thanks
    pittip
    sorry for my english, but i hope you understand me!??

    I don't know anything at all about your file format, but it sounds as if there is an option to create compressed raw files.  I know Canon has this option.  It may be that somehow you used this compressed option, assuming that there is one, and it may be that the DNG converter does not support the compressed raw format.  If not, maybe someone else will have a better answer.

  • [Guide] Install and run Windows 7/8 from an external drive without using bootcamp (works for late 2012 iMacs with 3TB drive)

    This is a copy of a post from my blog, you can also Read it on my blog...
    Introduction
    After I received my new iMac with a 3 TB Fusion Drive, I was disappointed when I realized that Bootcamp was not running on this model and prevented me from installing Windows on it. I wanted to take advantage of the powerful iMac hardware to play games but I couldn't.
    There are a few ways of working around this limitation, but I found most of them quite complex and most of the time they required formatting the internal hard drive or repartitioning it and go for a brand new installation of Mac OS X. I was not comfortable with that.
    But there is another way, and that is to install Windows on an external hard drive, using either USB or Thunderbolt. Personally I used a Lacie Rugged 1 TB drive that has both USB3 and Thunderbolt connectors. Both work very well.
    This guide may interest you if:
    You have an internal hard drive of more than 2TB and you can't run bootcamp at all (like late 2012 iMacs with a 3TB drive)
    You have limited space or you don't want to dedicate disk space on your internal hard disk drive to a Windows installation
    What this guide will make you do:
    It will make you erase all your data from your external USB3/Thunderbolt hard drive
    It will make you install Windows on your external USB3/Thunderbolt hard drive
    It will make you install bootcamp drivers
    What this will not make you do:
    It will not make you modify anything on your internal Mac hard drive
    It will not make you use or install the bootcamp assistant
    It will not activate the Preference Pane for the default boot drive. You have to boot by pressing the ALT key to manually select your boot drive each tome you want to boot Windows.
    What you'll need
    An external hard drive with a USB3 and/or Thunderbolt connector. This drive will be formatted so ensure you saved your files before going further. You can use either an SSD drive or a classic hard drive.
    A Windows 7 or 8 install DVD or ISO (check whether to install 32 or 64 bits versions based on your Bootcamp drivers) and the corresponding Windows serial number.
    One of the following:
    Mac OS X with a Windows 7 or 8 Virtual Machine (use VMWare Fusion or Parallels Desktop for example. Note: VMWare Fusion seems to have some issues with Thunderbolt and USB3. Plug your drive to a USB2 enclosure or hub to work around this -it worked for me-, or use another VM software) → Read the important note below
    A PC running Windows 7 or 8 → Read the important note below
    Windows AIK (free) running on your Virtual Machine or on your PC, or just the imagex.exe file (the rest of the Windows AIK package is not needed)
    Download imagex.exe
    Download Windows AIK (this download and installation is not required if you have already downloaded imagex.exe)
    Bootcamp drivers for your Mac. You can get these either by running bootcamp from your Mac (Applications > Utilities > Bootcamp) or, if like me you have a 3TB drive and can't run bootcamp at all, use the direct download links here.
    A USB stick to store your bootcamp drivers
    IMPORTANT: If your Mac has a 64 bits processor, your Windows Virtual Machine on OSX, your Windows installation on your PC and your Windows DVD/ISO must also be in 64 bits!
    Step by Step guide
    Step 1: Get the install.wim file
    If you have a Windows ISO file:
    Mount the ISO
    If you're on OS X: double click on the ISO file
    If you're on on Windows 7: Use a software like Virtual Clone Drive (free)
    If you're on Windows 8: double click on the ISO file
    Open the mounted drive, then go to the "sources" folder and locate the "install.wim" file. Save this file to C:\wim\ on your Windows installation or virtual machine.
    If you have a Windows DVD: open the "sources" folder on the DVD and locate the "install.wim" file. Save this file to C:\wim\ on your Windows installation or virtual machine.
    IMPORTANT: If instead of a "install.wim" file, you have "install.esd", you can not continue this step by step guide. And an ESD file can not be converted into a WIM file. So you must get a version of the Windows installation DVD/ISO that has an install.wim file.
    Step 2: Clean, partition and format your external hard drive
    On your Windows installation or virtual machine, plug in your external hard drive (can be plugged using USB2, USB3 or Thunderbolt at this stage)
    Open the command prompt in administrator mode (cmd.exe). To run it in administrator mode, right click on cmd.exe > Run as admin.
    Type the following and hit enter to open the disk partitioner utility:
    diskpartType the following and hit enter to list your drives:
    list disk
    This will display a list of disks mounted on your computer or virtual machine. Make sure your drive is listed here before you continue.Identify the disk ID of your external hard drive. Replace # by your real external disk ID in the command below:
    select disk #Clean all partitions by typing the following (warning: this will erase all data from your external drive!):
    clean
    Create the boot parition by typing the following followed by the enter key:
    create partition primary size=350
    This will create a 350MB partition on your external driveFormat the partition in FAT32 by typing the following:
    format fs=fat32 quick
    Set this partition to active by typing:
    active
    Assign a letter to mount this partition. We will use letter B in our example. If B is already used on your PC, replace B by any other available letter:
    assign letter=b
    Windows will detect a new drive and probably display a pop-up. Ignore that.Create the Windows installation partition using all the remaining space available on the external drive by typing the following:
    create partition primary
    Format the new partition in NTFS:
    format fs=ntfs quick
    Assign a letter to mount this partition. We will use letter O in our example. If O is already used on your PC, replace O by any other available letter:
    assign letter=o
    Windows will detect a new drive and probably display a pop-up. Ignore that.Exit the disk partitioner utility by typing:
    exit
    Step 3: Deploy the Windows installation image
    Still using the command prompt in admin mode (you didn't close it, did you? ), locate the imagex.exe file mentioned in the "What you'll need" section and access its folder. In our example, we have put this file in C:\imagex\imagex.exe
    Type the following and hit enter (remember to replace o: with the letter you have chosen in the previous step):
    imagex.exe /apply C:\wim\install.wim 1 o:
    This will take some time. The Windows installation image is being deployed to your external driveOnce done, type the following to create the boot section (remember to replace o: and b: with the letters you've chosen in the previous step):
    o:\windows\system32\bcdboot o:\windows /f ALL /s b:
    If you get an error message saying that you can't run this program on your PC, then most probably you are running on a 32 bits installation of windows and you're trying to deploy a 64 bits install. This means you did not read the important notes in the beginning of this guide
    If you get an error message on the options that can be used with the BCDBOOT command, then it's because you're installing Windows 7, and the /f option is not supported. If that is the case, remove /f ALL from the command and retry.
    Step 4: Boot from your external drive and install Windows
    Plug in your external drive:
    If you've done all the previous steps from a Windows PC, unplug your external drive from your PC and plug it to your Mac, either on a USB3 or a Thunderbolt port.
    If you've done all the previous steps from your Mac using a Virtual Machine, ensure the external drive is plugged in to a USB3 or Thunderbolt port. Using USB2 should also work but you'll get very poor performance so I don't recommend doing that.
    Reboot your Mac and once the bootup sound is over, immediately press the ALT (option) key and release it only when the boot drives selection screen appears. If you did not get the boot drives selection screen, reboot and try again. The timing to press the ALT (option) key is quite short. It must not be too early or too late.
    On the boot selection screen, choose "Windows" using the arrow keys on your keyboard, then press enter.
    The Windows installation starts. Follow the on-screen instructions as normal. The installation program will restart your computer one or 2 times. Don't forget to press ALT (option) right after the bootup sound, and boot on Windows again each time to continue the installation.
    Step 5: Install bootcamp drivers
    Once the Windows installation is complete, plug in the USB stick where you stored the bootcamp drivers (see "what you'll need" section), open it and right click on "setup.exe" and select "Run as admin". Follow the on-screen instructions.If you have an error saying that you can't run this program on this PC, obviously you have installed a 32 bits version of Windows and the bootcamp drivers for your Mac are made for a 64 bits version. You have to restart the whole guide and make sure to get a 64 bits version of Windows this time!
    Once the bootcamp drivers are all installed, reboot and press ALT (option) after the bootup sound to boot on Windows again. And Voilà, you have Windows installed on your USB3/Thunderbolt drive running on your Mac.
    Now each time you want to boot on Windows, press and hold the ALT (option) key after the startup sound and select "Windows", then press Enter.

    Hi i'm trying to follow your guide, I installed windows 8 on bootcamp to do it planning to remove it after the operation is done, but i get stuck at part 3: every command i give to imagex i get a pop-up ftom windws asking how do I want to open this kind of file install.wim and imagex does nothing, what do i have to do to stop those pop-ups?

  • :*(  Form buttons don't work for all testers

    I created a form in Acrobat 9.1 using Forms> Add or Edit Fields. The form contains action buttons for next page and previous page, to clear all fields, and (with the generous help of a fellow forum member) to print the form and save it to disk. I optimized the form with compatibility set to Acrobat 8.0 and later, then enabled it for Reader. I sent this form to several users for testing.
    Those using Acrobat have no problems with it.
    Those using Foxit Reader have no problems with the action buttons or the form fields (except that date fields are finicky; Foxit doesn't convert the dates to the correct format the way Reader or Acrobat do). But, the yellow background that I created as a watermark -- so I could make it visible but not print -- is printing. That's not anything that Acrobat can help, but it is a very good reason to not recommend using Foxit. It would create a dreadful shortage of yellow inkjet ink.
    Those using Reader 8.0 to 8.1.2 are having several problems. For them, the action buttons don't work... except the "clear all fields" one. The buttons don't do anything; there are no errors, no messages, no activity of any kind except to change color when clicked.
    The buttons that don't work are all set up as Mouse Up actions executing a menu item... for example, "Go to page 2" is just View>Go To>Next Page. The "Clear all fields" button is, on Mouse Up, "Reset a form" with all fields selected... so it's the only kind of button that works for Reader users, and it's the only button that doesn't execute a menu item.
    Why is there a difference in actions these users can run? If it's a security issue... what possible risk is there in going to the next page, using a button instead of a scroll bar or Page Down key??? I can find no common sense here, especially because Reader users are the only ones barred from these form actions. Everyone else can use them.
    -- Also, these testers (Reader 8+) are having problems with the tab order. Some of the radio button groups (which have no more than three options, Yes, No and NA) at first appear to be tabbing correctly, because the Yes option receives focus in the correct order... but randomly, tabbing through several fields, suddenly the No option will get focus... in a radio button group nowhere near the current tab location. Tabbing is rendered useless, then, because these anomalies are unpredictable and it doesn't appear there's anything I can do to prevent this from happening.
    It's pointless to delete and re-add the afflicted radio buttons. That has no effect... and the radio button groups are already in the correct order anyway. I don't know how this could possibly happen... But it doesn't happen for the Foxit or Acrobat testers.
    • Why would Reader be the only app that can't use the buttons and can't tab through the fields correctly? I'd think Adobe's own software would work best with their own file format. •
    Is Reader 8 the problem --- should those users all update to the newest version? I don't have any Reader 9+ testers yet. Nobody seems interested in it. The testers all assume the problems are MY fault, so nobody's happy with me and no one wants to bother testing the forms because there's always something wrong.
    <hair-pulling> I seriously regret upgrading to Acrobat 9.1.  I know other forum members who agree this thing is catastrophically buggy -- I've wasted  weeks trying to iron out all the problems I've been having with these forms, forms that should have been quick and simple to create, and in past versions of Acrobat, would have been. Yet I'm still tearing out my hair over tab order! Worse, I fear I'm close to losing my job for all the time wasted and all the projects I've fallen behind in because of this. <no /hair-pulling in sight>

    I have no clue, but it might make a difference depending on the form being produced in Acrobat versus Designer. Acrobat will take you both places and one of them may have an issue with backward compatibility. I have not heard of that, but it is a possibility.

  • Pdf links don't work for imported text

    Hi.
    I imported some common sections located in their own frame file into three different books.
    I tried this by reference first because I want to make changes only once, to the actual file.
    When I make a pdf, the toc links to the imported reference text don't work. Nor do links within the text to other locations in the text.
    When I import by text, the links work. But import by text defeats the purpose of having one source for multiple books.
    I appreciate any help on this.
    Bibs

    Unfortunately, cross-references in FM files imported by reference into other FM files ("text insets") are not converted to PDF links -- this applies to all versions of FrameMaker and Acrobat.
    Limited workarounds are to (1) convert the text insets to regular text (on a temporary copy that is discarded after the PS/PDF is created; this can be automated using FrameScript) or (2) use hypertext links to create the PDF links (these are converted properly even when in a text inset).
    Shlomo Perets
    MicroType * http://www.microtype.com
    FrameMaker/Acrobat training & consulting
    "24 easy ways to improve your PDFs with FrameMaker-to-Acrobat TimeSavers/Assistants",
    http://www.microtype.com/ImprovePDF.html

  • MY EXTERNAL SPEAKER PORT IS NOT WORKING for hp envy

     MY EXTERNAL SPEAKER PORT IS NOT WORKING .WHEN I CONNECTED TO A EXTERNAL SPEAKER ,THERE WERE NO SOUND AUDIBLE.SO WHEN I DISCONNECTED THE CABLE FROM PORT,I WAS ABLE TO HEAR WITH THE IN BUILT SPEAKERS.EXTERNAL SPEAKER IS I GOOD CONDITION.I CHEKED WITH MY HEAD SET ALSO.IT WAS NOT AUDIBLE.MY LAP IS HP ENVY .KINDLY HELP

    Hi ano87, welcome to the HP Forums. What is the model or product number? What version of Windows is installed?
    Guide to finding your product number
    Which Windows operating system am I running?
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Mail rules work for some users, don't work for others

    Ready to pull my hair out over this one:
    Leopard to Snow Leopard upgrade went uneventfully, except for the fact that server-side mail rules (accessed via browser at FQDN -> Mail Rules) work for several users (two, to be exact) and don't for the rest (about 15 or so).
    The usual culprits have been reviewed: 'Enable Server-Side Mail Rules' is checked in Mail -> Settings -> Filters, 'Allow users to configure server-side mail rules' is checked in Web -> Sites -> Web Services, users can create vacation notices and email rules without issue via browser, permissions look fine on the contents of /Library/Email Rules and /var/spool/imap/dovecot/sieve-scripts, logs give no indication of any foul play (at least the Email Rules -> debug.log generates the same entries for both functional and non-functional users), etc.
    I have noticed that /var/spool/imap/dovecot/sieve-scripts contains only two items, which - you guessed it - line up with the GUIDs of the two functional users. Theoretically every user with a rule should be represented here.
    As suggested in this thread:
    http://discussions.apple.com/thread.jspa?messageID=11171395&#11171395
    I created both a vacation notice and an email rule for several users, thinking that may force the folder creation for those users, but no dice. I even manually created folders for a few users with their GUIDs as the folder names and assigned each user ownership and read/write access. Still nothing. Created a few new test user accounts just to rule out any legacy account weirdness (although it's worth noting that I completely redid the OD and recreated user accounts after the upgrade) and replicated the problem with these, as well. Lastly, used Inspector to compare OD attributes between functional and non-functional accounts, with no glaring differences.
    Help!

    Did you find an answer? I encounter the same problem on my new MiniServer. Deleted and created all users several times, but just for some accounts mail is working.
    Do you have the answer?
    (new to this site, read a lot already, but not found)

  • Links to samples don't work

    The links the samples on the http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_sqlj/sqlj9i.html page don't work!
    Could someone from Oracle fix them?
    Thanks

    These links have been restored.
    Regards, OTN

  • Samples don't work under Oracle 10g w JDeveloper 10g

    I have downloaded and attempted to use 3 different samples, and not a single one of them works properly without modification. These were all developed a couple of years ago, probably tested under earlier versions, but do not work under the most current. Does Oracle have any plans to update these samples to work with the most current products, or would the company rather leave its customers frustrated?
    For reference, I am running Oracle 10g (version 10.2.0.1.0) on a Windows 2000 workstation. I'm simply trying to set up a demo application, so I haven't put it on a more powerful server as of yet. I am using JDeveloper 10g (version 10.1.2.1.0 build 1913). The three samples which I have tried to use are:
    Oracle Label Security - Illustrating Ols Function API
    Oracle9i JDBC Sample OCI Connection Pooling and Middle-Tier Authentication Sample
    Oracle Connection Cache Sample Application
    The OLS sample does not even compile properly if not modified. It is necessary to add "jsp:useBean" declarations in order to get past the compiler errors. The documentation for this is also in error. The text describing the application indicates that Figure 3 will show the details for EMP_OPN (the same as for Figure 2), but the actual figure shows the deatils for EMP_RESCH. Thus the resulting discussion and the figures do not match. At least I could finally get this application to work.
    The other two I have not yet figured out the proper drivers or calling sequence. The drivers that work for the first application do not work for the latter two, or the calling sequence are wrong. I get lots of connection errors, loader errors, and others. I am about ready to give up on using the samples, as so far they have wasted more of my time than they have helped.
    All I want to achieve is a demo that shows a database that uses connection sharing or pooling (for performance reasons), does middle-tier authentication, allows the application set a user context and then make database queries, having OLS enforce the access control policy based on the user context (vs. the user used for the shared connections). If there is other sample code that demonstrates this that works under the configuration described above, I would most greatly appreciate knowing about it, or receiving such sample code via email.

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • Symlinks don't work for app bundles?

    Anyone seen the following?
    I'm pretty new to OS X programming. I'm using CMake to help me build cross-platform code on OS X 10.5 (in addition to Linux). I'm using CMake's "MACOSX_BUNDLE" option for the executables. My GUI is created with the FLTK library.
    When I build application "foo", I get the expected bundle file tree: "foo.app/Contents/MacOS/foo".
    If I directly run ...../MacOS/foo on the command-line, the program works just fine.
    However, if I create a symlink *pointing at* ...../MacOS/foo, and execute the symlink, the program doesn't work right. The window appears, but it's not made the front-most window on the desktop, and the menus don't respond. This reminds me of how programs acted before I found out I was supposed to build them as application bundles.
    Does anyone know why symlinks aren't working for me?
    Thanks,
    Christian

    conveycj wrote:
    we'd need a really good reason to write OS X-specific GUI or IPC code.
    Writing good software isn't reason enough?
    So, you may be right that I'm asking something of OS X that it wasn't really designed to do. But given my cross-platform and small-code needs, I'm not sure if there's really a better solution.
    OS X can do whatever you want. You are trying to build a Mac tools with CMake, which I'd never heard of until a couple of weeks ago and which apparently can't built a Mac application if it had to.
    You are free to use whatever you want to build your application, but I strongly encourage you to bit the bullet and just try it on a Mac once. See how Xcode does it. Then, if you want to build it with some wacky tool, go right ahead. But you need to have a working example first. Even if you don't want to build your entire app in Xcode, at least do a simple "Hello World" app that can run with our without the GUI. Then hack up your CMake to build your app like Xcode built the HelloWorld app.
    I have done what you are trying to do in Xcode. All you have to do is look for the "-psn" command-line argument that indicates you are running in the GUI. If you have "-psn", you are in the GUI and you don't get any other command-line arguments. If not, you were launched from the command line, so parse away.

Maybe you are looking for