Addopt embedded LV to embedded Linux - what do I have to do?

Hello.
I'm a student doing my thesis work in sweden and I'm quite new to LV.
I read the manual for porting emb.LV Runtime but don't have an idea where I have to start with.
my platform is an microcomputer (NetDCU8) with an ARM 9 prozessor, touchscreen, Network, serial ports, SD-Card and ADC's running embedded Linux (Emlix).
The graphic part I allready programmed in C/C++ and it could be running as a thread.
This is what I need to programm within LV:
- starting the graphicfunction as a thread
- reading values from ADC's and store them into global Arrays every 60 seconds
- doing some calculations with those values
- storing values into logfiles onto Networkfolder and SD-Card (both mounted when the target start up Linux)
I'm able to do all this stuff in C/C++. But as a part of my thesis work, I have to make emb. LV useable for programming for my target.
The BSP is only for Linux-Computers.
I'm not very familar with operating systems and have zero experience in porting anything.
But if there are some good hints, where I have to look at and what I maybee can use, that's already done, then I think I have a chance to manage it.
...I have only 1 month left for my work.... 
Best regards from Göteborg,
Tobias

Hi!
I got the first "Hello world" to run!!!
Jiiiiiiiihhhhhhhhhhaaaaaaaaaaa! 
I edited LVGenRTInit.c and removed all unneeded includes and corrected the Makefile:
/* CODE START */
APPLICATION = "/nfsroot/testcomp"
CC = "arm-linux-gcc"
LD = "arm-linux-gcc"
CFLAGS =  -DVAR_WAIT_ON_EXIT -DCHeadless=1 -I.  -O3 -fomit-frame-pointer -Dlinux  -w
LFLAGS =  -lm -lpthread -lnano-X -L"/2compile/"
OBJS = /2compile/linux_tryout.o /2compile/LVUnixInit.o /2compile/LVCGenRTInit.o /2compile/lvEmbeddedMain.o
INCLUDES = -I"/2compile"
LIBS = "/Targets/NI/Embedded/embLinux/libs/lvanlys.a" "/Targets/NI/Embedded/embLinux/libs/libaalcore.a"
%.o: %.c
    $(CC) -c $(CFLAGS) $(INCLUDES) -c -o $@ $<
$(APPLICATION): $(OBJS)
    $(CC) -o $(APPLICATION) $(LFLAGS) $(OBJS) $(LIBS)
/* CODE END */
Now I can work with the inline-C-node. the next step will be a timed loop. and also bringing the old dir-structure back from my actual header-soup....
Microwindows is the old name of Nano-X. Fortunetly I didn't have had to compile it for mz target. The libraries were readymade delivered....
so I can just show you some parts of my code to create windows and stuff in the attached file...
Maybee this can help you on your first tryarounds, when you have compiled nano-x for eCos.
I will post again, when the timed loop works.
have a nice day!
Tobias
Attachments:
nx_short_demo.txt ‏2 KB

Similar Messages

  • Java SE Embedded for ARM9 (ARMv5 Linux - Headful) gets rmiregistry failure

    Hi, all,
    I am using a embedded platform with TI Davinci ARM9 processor. I meet a technical problem when using Java SE Embedded 6 for ARM9 (ARMv5 Linux - Headful). I have a Java program working well in the PC with Java virtual machine.
    However, when this Java program can not run in the embedded platform. There is an error reported: "failed to start rmiregistry". The detailed error message is below:
    rmi:
    [java] rmiregistry not running
    [java] The RMI registry is not running, it will be started now.
    [java] If running under Windows you may have to hit ctrl-C after
    [java] it has been started and re-run the ant command.
    [java] Trying to start rmi registry: rmiregistry
    [java] Trying to start rmi registry: nullrmiregistry
    [java] Trying to start rmi registry: /bin/rmiregistry
    [java] Trying to start rmi registry: null/bin/rmiregistry
    [java] Trying to start rmi registry: \bin\rmiregistry.exe
    [java] Trying to start rmi registry: null\bin\rmiregistry.exe
    [java] rmiregistry not running
    [java] rmiregistry not running
    [java] rmiregistry not running
    [java] rmiregistry not running
    [java] rmiregistry not running
    [java] java.rmi.ConnectException: Connection refused to host: ; nested exception is:
    [java]      java.net.ConnectException: Connection refused
    I searched in the Java SE Embedded, there is no the file named rmiregistry. However, there is a file named rmiregistry in the PC's Java. Is it the reason caused the failure? Is the package of Java SE Embedded not complete? Anyone get idea how to solve this problem?
    Thanks.
    Best Rgds,

  • Basic tutorial shows adding a logo to lighthouse picture is easy, File + Place. I don't have "Place" in my dropdown. I only have "Place Embeded" and "Place Linked". What am I doing wrong?

    Basic tutorial shows adding a logo to lighthouse picture is easy, File + Place. I don't have "Place" in my dropdown. I only have "Place Embeded" and "Place Linked". What am I doing wrong?

    You are not doing anything wrong. The January 2014 update of Photoshop CC added the option to embed OR link Smart Objects. Until this Photoshop CC update, Smart Objects were always embedded in the Photoshop document. Although it made the file size larger, it was like a built-in backup plan because any placed files were included in the document. Now you have the option of embedding or linking the Smart Object. Linking references the file rather than actually copying it to your current file. In terms of your small tutorial, choose Embed. 

  • Is this the right to use or for iOS can use dynamic google maps embeded(can be embedded fo iOS)

    function displayMap(e) {
    var title = e.data.title,
        latlng = e.data.lat + ',' + e.data.lng;
    if (typeof device !='undefined' && device.platform.toLowerCase() == 'android') {
    window.location = 'http://maps.google.com/maps?z=16&q=' + encodeURIComponent(title) + '@' + latlng;
    } else {
    $('#map h1').text(title);
    $('#map div[data-role=content]').html('<img src="http://maps.google.com/maps/api/staticmap?center=>' + latlng + ' &zoom=16&size=320x420&markers=' + latlng + '&sensor=false">');
    $.mobile.changePage('#map', 'fade', false, true);
    my phonegap (Adobe press, Powers jQuery with dw 5.5) book (old book (c)2010-11) says for above code: // is this valid for today, is this the right to use or for iOS can use dynamic google maps embeded(can be embedded fo iOS)???
    On iOS, calling window.location loads the map directly
    into the app. That’s great until you realize that iOS devices
    don’t have a Back button, so there’s no way to exit the
    map. To get round this problem, I loaded a static map as
    an image in the map page block. It’s not interactive, but at
    least you can continue using the Travel Notes app after
    viewing the map by clicking the Back button generated by
    jQuery Mobile.

    Well, this took me a while to get solved, but it is indeed solved.
    I tried USB Overdrive and it could, and perhaps should work, but apparently it will not. When adding a device, it seems that USB Overdrive is not set up to handle any input device that does not register itself as either a Mouse or a Joystick. The VEC USB Footpedal that I'm using is "Device type: Other".
    So, I went for Quickeys. And Quickeys can do it all. It did recognize the device, I was able to assign it to the scope of the particular audio playback app I wanted to use (Amazing Slow Downer OS X - which is truly amazing. Any musicians reading this who are looking for a way to learn pieces by ear, this does it better than anything else I've seen yet).
    I created a shortcut in Quickeys for the ASD app; added the middle button of the foot pedal as the trigger; set one step, entering 'space bar' as the step (which toggles playback, similar to many audio players).
    It all worked.
    Quickeys is very confusing and seemingly featured with an endless array of options. Enter at your own risk. Ask me for help. This was the only way to get it done that I could find. I did write to the author of USB Overdrive asking him to please support additional devices as I did find some traction from gamers who like to use a foot pedal in addition to other input devices. There was a Windows-only management utility for the foot pedal that was intended for custom input, assigning the buttons to any keyboard input or mouse click event. It would be nice to have a simple and easy to use utility like this. But, Quickeys did do the job.
    Thanks for your help, you guys!!!

  • How to show embedded and not embedded font in TextField at the same time?

    Hi guys,
    I need to show embedded and not embedded font in my TextField at the same time. TextField has embedFonts = true and isHTML = true.
    Any ideas?

    Two different font won't work for me because I need to support all UTF glyphs.
    Idea with two TextFields one on top of other seems to be working. The only problem I see here - if half string is Chinese and hand Latin - then it will be quite problematic to properly position text...

  • When I click on a picture to enlarge it on a web page ( any webpage),a new blank page opens with nothing.It only syas search bookmarks and history.What do I have to do to view an enlarged view says

    Using Firefox to search a web page.
    When I click on a picture to enlarge it on a web page ( any webpage),a new blank page opens with nothing.It only says" search bookmarks and history".
    What do I have to do to view an enlarged view ? What settings do i have to enable in firefox.
    Any help would be appreciated
    Colincolin30

    See:
    * [[Images or animations do not show]]
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • I replaced my iPhone with a Galaxy 5 and am not receiving all of my text messages. The sales person told me to remove my phone number from iTunes to stop this from happening. Is that true? What does iTunes have to do with text messages?

    I replaced my iPhone with a Samsung Galaxy5 and I am not receiving all of my text messages now. The rep at the store told me to go to iTunes and take my phone # off of the account and that would fix the problem. Is that true? What does iTunes have to do with text messages anyway?

    You need to remove your phone number from the iMessage system.
    Read here: http://support.apple.com/kb/ts5185
    ~Lyssa

  • HT1893 After installing Mac OSX Snow Leopart 10.6.3 my HP Photosmart C5500 won't scan to computer.  The printer is working. What do I have to do to be able to scan again?

    After installing Mac OSX Snow Leopart 10.6.3 my HP Photosmart C5500 won't scan to computer.  The printer is working. What do I have to do to be able to scan again?

    Often, you have to download updated vendor software drivers when you switch operating systems. HP doesn't list a C5500 on their web site, however, here's the link to the OS X 10.6 C5540 software.  If you have one of the other C55xx models, look for the updated driver/scan software on their software/driver download section of HP.Com.

  • I recently bought an ipad 2 and wanted to use all the apps on my iphone4 on my ipad but have been charged when I use my apple id. What should I have done to share the apps?

    I recently bought an ipad 2 and wanted to use all the apps on my iphone4 on my ipad but have been charged for the first app I downloaded when I use the same apple id. What should I have done to share the apps and should I have been charged? 2 months ago when I got a new iphone, i was told in order to get all my apps back as I hadn't backed up my files, if I used the same apple id I would 'purchase' the app, but then would not be charged as apple would recognise that I have already purchased the app. That worked, but when I did the same thing on my ipad 2 using the same apple Id, I was charged... what should I have done and is this right as I thought the whole point of having multiple apple devices was I could share apps between devices. please help! thanks.

    Using the same Apple id and Password you should be able to download purchased apps without being charged again.
    I download to an iPad/iPad2/iPhone3 & iPhone4 with no problem.

  • I've recently updated my podcasts but now it kicks me out after 15 seconds no matter what. I have tried reinstalling and a soft reset but still happening. Any ideas please?

    No matter what. I have reinstalled it and done a soft reset but still happening. Any ideas.

    KaiserJDV wrote:
    Have been looking forward of owning a Macbook Pro since our family is a Windows user but if this persists, I might throw it away.
    Take it back and and exchange it for one that works. 14 day return policy.

  • HT204053 I have iphone 4 and it is using my wife  . My new iphone 5 and old iphone 4 both were used same apple password, but different e-mail address . Now both apple id has beed blocked. What do I have to do.

    My both of iphone id blocked. What do I have to do?

    Sorry, but nobody here can help you nor can Apple.  The only way to disable Activation Lock on your devices is to use the password for the AppleID associated with that devices iCloud account.  There is no alternative - you need that password, or you need your friend to disable those devices in their online account.

  • What does "you have data to Sync, go to TOC and press Sync" mean when I open the Bible  1 App.  I don't know what "TOC" is

    When I open my Bible +1 App the following appears - extremely too brief to read once - "you have data to Sync, go to TOC and press Sync.." on my iPad.  I don't know what TOC is, or where to go to Sync my data.  I also don't know WHAT data I have TO Sync.  Also, is there an Instruction "manual" so-to-speak that explains more about the latest update from November 27?  I'm working off an iPad 2 which is my ONLY piece of computer "anything" so all I'm woking on is my iPad.  I also do not have access to any person's lap top or  computer.  Can you help me?

    Went to Google, tonefox, and found the information.  As I told Meg, I am still "way over my head" with computers and still have to remember that you can 'Google" pretty much ANYTHING.

  • Hi! I sold my Iphone on ebay. The seller wants to connect the Iphone with his Apple ID, but it did not work because it says that the Iphone is already connected with another Apple ID. How can I get rid of this old connection? What do I have to do?

    Hi! I sold my Iphone on ebay. The seller wants to connect the Iphone with his Apple ID, but it did not work because it says that the Iphone is already connected with another Apple ID. How can I get rid of this old connection? What do I have to do?

    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
    MaggySimpson wrote:
    Hi! I sold my Iphone on ebay.
    Follow the instructions to remove a device you no longer have.
    From here  >  http://support.apple.com/kb/PH13695?viewlocale=en_US

  • My cousin wants to get music off my Itunes but it won't let her, I already have 2 Ipods on my account. What does she have to do?

    My cousin wants music off my Itunes. It won't let her though, and the music doesn't show in her Library, it shows her brothers music. What does she have to do to get my music.?

    If they are running 10.6.1, they have not updated their computer in almost two years and regardless of iTunes, they really should update.
    The posted system requirements have been flaky in the past. A few versions of iTunes required 10.4.11 or 10.5.6 or later. Don't kow if it would not work with 10.5.0 through 10.5.5 but the way it was worded, implied it would not but IIRC, it did actually work

  • I can´t agree on the terms and conditions to access icloud on my iphone cus it keeps saying that i have no server (wich i have) now that i´ve ios 7.0. What do i have to do?

    i´ve just got the now ios version 7.0 installed and now
    i can´t agree on the terms and conditions to access icloud on my iphone cus it keeps saying that i have no server (wich i have) now that i´ve ios 7.0.
    What do i have to do?
    The thing is that i´ve agreeded when i was first asked, and then i´ve asked to be emailed those terms and now i can´t accedd the Icloud.
    The problem is that it has my previous callendars and photos and i need to get them back.
    tks
    sp

    There's a discussion on this here: https://discussions.apple.com/thread/5321627?start=0&tstart=0 with several possible solutions that may work for you.

Maybe you are looking for