Can not get example to work after following instructions given in "Getting Started with the NI LabVIEW C Generator" guide

We explored using sbRIO for our project, for different reasons we ended up going with a different embedded solution . We are currently evaluating the LabVIEW C Generator to convert some of the core analysis routines from LabVIEW to C so the team that will be creating the embedded solution don't have to re-implement them from scratch. 
Before converting our code, I followed the instructions given in the "Getting Started with the NI LabVIEW C Generator" manual to create a static library created inCygwin using GNU Compiler Collection (GCC). 
I managed to compile the code, but when I type "run GCD.exe" in the Cygwin console, I just see the window flash with no time to see if the result is correct or not. I modified the main.c cde to add a getchar(), but the window still just flashes and now I am left with the GCD process still running and have to kill it using Windows Task Manager.
Has anyone else got this example to run? I am sure I am missing an obvious setting or step, please help me.
More details below.
Thanks,
Fab
Here is a video showing the steps I followed 
If you don't want/can't see the video. Here are some screenshots of what I have done so far:
GratestCommonDivisor.lvproj C Generation build specs Information:
C Function prototype definition:
I copied Makefile located at: C:\Program Files (x86)\National Instruments\LabVIEW 2011\examples\CGenerator\Tutorial\Cygwin
and replaced both Makefile and Makefile.cygwin in the directory where the C code was generated
I also copied main.c from the same location and replaced the one generated
Here is the snapshot of the results after executing "make GCD.exe"
Then to run it I just type 
I see a window open and close really quickly and I never see the result. I have tried adding the getchar() line to the main.c file, but still I don't get to see the results.
Certified LabVIEW Architect * Certified Professional Instructor * LabVIEW Champion

Hi Kevin,
I hope you had a good Thanksgiving. I am attaching a zip file with the LabVIEW project, my build specification and my version of "Greatest Common Divisor.vi", which should be the same as the one that you have that ships with the LabVIEW C Generator, but just in case. I am also attaching a zip file with the C files generated by the LabVIEW C Generator.
You can also see the video I posted earlier with the steps I followed. I hope you are able to point out where I went wrong. 
Thanks,
Fab
Certified LabVIEW Architect * Certified Professional Instructor * LabVIEW Champion
Attachments:
GreatestCommonDivisor.zip ‏8 KB
CGen Files.zip ‏71 KB

Similar Messages

  • Re: Can not get example to work after following instructio​ns given in "Getting Started with the NI LabVIEW C Generator" guide

    Fab,
    Like you, I'm looking into using the LabVIEW C Generator for an embedded application.
    I would be interested in your opinion of the LabVIEW C Generator. Also, roughly how much does it cost?
    Regards,
    Vito

    Himura_Kenshin wrote:
    Hi all,
    I'm trying to compile the same generated code (from GCD.vi) but with a Keil µvision 4 ( the default target: Luminary).
    I followed line by line the tutoriaI and i used the µvision project (example.uvproj) mentioned in the manual  (edited under µvision2).
    I have 0 errors but many warnings (35) divided on 3 main types:
     warning:  #177-D: variable "    " was declared but never referenced
     warning:  #174-D: expression has no effect
     warning:  #68-D: integer conversion resulted in a change of sign
    Have anyone encountered these warnings ?
    I'm suspecting my µvision version... if anyone managed to compile the example under µvision 4 or 5 ?
    Thank you
    Best regards
    We never got a reply from NI. I don't know if the bug I found got fixed after LabVIEW 2011.
    Perhaps someone from NI can tell us if CAR##327027 was fixed and see if that is related to the issue Himura_Kenshin is seeing.
    Regards,
    Fab
    Certified LabVIEW Architect * Certified Professional Instructor * LabVIEW Champion

  • Hi, my wifi button just greyed out a few minutes ago and I can't connect to wifi. Have followed instructions given by Apple support but it's still not working. Does anyone have a solution? Thanks

    Hi, my wifi button just greyed out a few minutes ago and I can't connect to wifi. Have followed instructions given by Apple support but it's still not working. Does anyone have a solution? Thanks & Happy New Year :-)

    First, you don't have a 5+ year old 3GS. The 3GS has only been around for under 4 years. In fact, 5 years ago there were NO iPhones; the original iPhone (2 generations before the 3GS) came out on June 29, 2007 - not quite 5 years ago. The 3GS was released June 19, 2009.
    That aside, you can sync multiple phones to one computer - see http://support.apple.com/kb/HT1495. boogeyman is wrong. It is 100% safe to create an additional user name on her computer, log in with that name, and back up the phone. See this for details on what you want to do: http://support.apple.com/kb/HT2109

  • Hi, I got the problem with Firefox 27.0.1. I can not run Selenium on Firefox after login a website for automation testing. The browser is not responding.

    Hi, I got the problem with Firefox 27.0.1. I can not run Selenium on Firefox after login a website for automation testing. The browser is not responding. However when I close Nunit, the page is back to be normal. The title is returned to the name of website without "not responding". I sure this problem did not happen on Firefox version 26. I just got this problem when firefox upgrading automatically to version 27. Please help me fix this problem because it is very important for my work. If you need more information pls send your concerns via my email address.
    Thanks so much

    Hi, the work around suggested above should put you in working mode in the meantime. However to help investigate the issue it is possible to analyze what is not loading or taking a long time by analyzing the network traffic or http headers of the Nunit web page.
    *[https://addons.mozilla.org/en-us/firefox/addon/live-http-headers/]
    *Web developer Tools > Web console
    If you post the results with out the user data, we are happy to help.

  • Can not change my security questions after following email

    i have  tryed to purchase itunes but cannot because i have forgotten my answers to security question answers i have followed every instruction giving an still cant get in to change them even the email can any one help me

    What instructions have you followed, and what happened when you followed them ? Have you got a rescue email address (which is not the same thing as an alternate email address) on your account : http://support.apple.com/kb/HT6170, and if you do have you received the reset email to it ?
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions), or you do but aren't receiving the email to it, then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps on this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5620

  • Firefox will not open or uninstall even after following instructions

    iv tried uninstalling in safe mode but nothing works

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer run

    New Adobe Photoshop elements 11-can not share pictures. I do use AOL email. Get error of "Elements 11 Organ. has stopped working,  I have looked into sharing tab and my only option is Adobe email settings.  I do have outlook set up to work on computer running windows 8.1  Please help, Mainly use to share pictures.  Thanks!

    One thing puzzles me:
    RedClayFarmer wrote:
    I then found one suggestion that the problem might involve permissions. The suggestion was to right click PhotoshopElementsOrganizer.exe in its installation folder (which on my computer is at at D:\Photo\Elements 11 Organizer) and run Organizer as an administrator. This also failed.
    I don't understand why running the exe from the installation folder would have worked.
    I would have simply tried to run that exe from its real location :
    Sorry, I can't help you more about permissions...

  • I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR

    I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR I never had this problem before was there some kind of update that could of cause this?

  • TS1410 MY LAP TOP DOES NOT RECOGNIZE MY IPOD. AFTER ABOUT 20 MINUTES I GET A MESSAGE THAT SAYS MY IPOD HAS BEEN CORRUPTED AND NEEDS TO BE RESTORED. ALSO THE IPOD ITSELF HAS FROZEN AND CAN NOT BE TURNED OFF OR RE-SET BUY HOLDING THE MIDDLE BUTTON.

    MY LAPTOP DIES NOT RECOGNIZE MY IPOD. AFTER ABOUT 20 MINUTES I GET A MESSAGE THAT SAYS MY IPOD HAS BEEN CORRUPTED AND NEEDS TO BE RESTORED. ALSO AFTER THE IPOD HAS BEEN CONNECTED TO THE COMPUTER THE IPOD WILL FREEZE. I AM ONLY ABLE TO USE IT AFTER THE BATTERY HAS RUN OUT. WHAT COULD BE CAUSING THESE PROBLEMS AND HOW DO I RESTORE MY IPOD!!!!!

    Hey gwscrt,
    Since iTunes directed to you to restore your iPod, I'd check out the following article that goes over the steps to do so:
    Restoring iPod to factory settings
    http://support.apple.com/kb/ht1339
    I would read the document in full, but here are the applicable steps for you:
    How to restore iPod
    Verify that you have an active Internet connection, because you may need to download new versions of the iTunes and iPod Software.
    Download and install the latest version of iTunes if necessary.
    Open iTunes. Connect your iPod to your computer using the USB or FireWire cable that came with your iPod.
    After a few moments, your iPod will appear in the Source panel in iTunes.
    Select your iPod in the Source panel. You will see information about your iPod appear in the Summary tab of the main iTunes window.
    Click Restore.
    If you are using a Mac, you will be asked to enter an administrator’s name and password.
    A progress bar will appear on the computer screen, indicating that stage one of the restore process has begun. When this stage is done, iTunes will present one of two messages with instructions specific to the iPod model you are restoring.
    Disconnect iPod and connect it to iPod Power Adapter (typically applies to older iPod models).
    Leave iPod connected to computer to complete restore (typically applies newer iPod models).
    During stage two of the restore process, the iPod displays an Apple logo as well as a progress bar at the bottom of the display. It is critical that the iPod remain connected to the computer or iPod power adapter during this stage.
    Note: The progress bar may be difficult to see, because the backlight on the iPod display may be off.
    After stage two of the restore process is complete, the iTunes Setup Assistant window will appear. It will ask you to name your iPod and choose your syncing preferences, as it did when you connected your iPod for the first time.
    Have a good one,
    David

  • OUtlook 2013 can not connect to exchange 2013 after exchange maibox member of DAG failed.

    hi ALL
    OUtlook 2013 can not connect to exchange 2013 after exchange maibox member of DAG failed.
    Exchange environment contains 2 Exchange Mailboxesserver ,( one Failed , virtual Machine)
    2 cas Servers
    first databases could not be mounted but after we run the below command , users can use OWA but outlook could not connect
    Start-DatabaseAvailabilityGroup -Identity DAG -MailboxServer MBX1
    please support
    thanks

    Hi,
    According to your description, I understand that Outlook client cannot connect to Exchange server 2013 while one member of DAG failed.
    If I have misunderstand your concern, please do not hesitate to let me know.
    I want to double confirm whether all account store in MBX1 experience this issue, users in MBX2 works fine.
    Please run following command to double check the database status:
    Get-MailboxDatabase –Status | select Name,Mounted,MountedOnServer
    If it works in OWA, the issue may be related to Outlook side. Please run “Test E-mail AutoConfiguration” and “Outlook Connection Status” to get more details, expecial the setting of proxy server, it’s more helpful
    for further troubleshooting.
    Additional, please try to recreate a profile for testing. Besides, please move active DB back to MBX1.
    Best Regards,
    Allen Wang

  • I get a message: "Itunes could not back up the Ipod, because a session could not be started with the Ipod." What can I do? I cant put any videos into it. HELP!

    I get a message when downloading video to the Ip[od: "I tunes could not back up the Ipod, because a session could not be started with the Ipod." What does this mean? What can I do? I cant put in any video. HELP!

    I get these issues too, Even with a restore?
    I work around it, (and would appreciate feedback on if this works for everyone) by :
    Right clicking device in iTunes and selecting "backup", I then get the error; I quickly "ok" the error, then select "backup" again, then I often get the error a second time, but on the third attempt (in very quick succession) of selecting backup, the task initiates, and completes successfully!
    Exactly the same for a restore!
    Did this work for you?

  • Hello my ps 2014 can not open it shuts down after 10-15 seconds. the old version run fine

    Hello
    my ps 2014 can not open it shuts down after 10-15 seconds. the old version run fine

    There are several things you can do I understand.
    1) Check the battery condition using a program like the widget iStatPro (free). If the battery health is less than 80% then Apple have a free replacement program for this.
    2) Switch the machine off and disconnect the power supply. Remove the battery and leave out for several minutes - to allow complete discharge of all electronic components, I think. Then re-instal the battery, etc and restart. I'm not 100% clear on all steps in this procedure but it provides a reset which sometimes resolves problems at least temporarily.
    3) Disconnect all peripherals and see how it works. One of these might be calling for more power than it should.
    Neville

  • HT2534 How come I can't avail the "none" option after following instructions in review payment info?

    How come I can't avail the "none" option after following instructions in review payment info?

    If you are doing this on the iPad, try accessing your account in the app store. Tap the featured tab and you can access your ID in the lower left corner.
    If that doesn't work, perhaps you can be a bit more specific in what you have tried already.

  • HT201210 I can not activate my iPhone 3 after I have updated the new iOS software

    Please help. I can not activate my iphone 3 after I have updated the new ios software because the activation servers not available
    this is the message I get.
    We're sorry, we are unable to continue with your activation at this time.
    Please try again later, or contact customer care.

    If your iPhone was jailbroken and unlocked unofficially, it has been locked again. Insert official SIM to activate.

  • I can not use ipad smart cover after upgrade ios 7.

    I can not use ipad smart cover after upgrade ios 7. It makes reboot again again...if i cover up ipad with smart cover. i never had this problem before. please fix this bug!!!!

    Change your iPod DNS to 8.8.8.8
    That should work. Cheers

Maybe you are looking for

  • Quotation to Sales order with QTY block

    Hi, I want, while creating Sales order from the quatation if the Qty in sales order is less than 25% of Qty in quatation. Order should not be able to process (Block) &  it will ask for creating another quotation. does it requrie baddi or  user exit &

  • NW04s WAS 7.0 displays some texts in chinese language

    I have installed NW04s ABAP instance (WAS 7.0)with all the default settings. When I logged in to the SAP system, I noticed that all the text messages are being shown in some Chinese language. Later I realized that, not only this screen but also all t

  • Work Order check while completing PM Notification

    Dear Friends, I want a check in my PM Notification. while the notification is completed the related work order status should be "Technically completed". Can this be achieved by config? thanks & regards, Sudhahar R

  • Transports in r/3 is been lying under someone else request!!

    Hi All, Some one has activated the standard datasource and the request is lying on there name in the r/e which i need to transport to quality. There are couple of request in his task, and since i cant rename the cts on mine and transport it. What pro

  • Re-downloading not the answer. Songs are stuck in Purchases.

    I've subscribed to and used iTunes Match since it was first offered. I have also had a consistent problem with it from that day. On my main computer, any song purchases, songs added to the Library, or songs imported from CDs appear in the Purchased s