Running networked labview apps without root permissions

I noticed that it is not possible to use the tcp vi's, i.e. tcp create listener or tcp open (I even tried the supplied examples dataserver.vi and dataclient.vi in tcp.llb) without running them as root, any body has an idea, no one would like to let the end user use root to run the application!. Is it a labview configuration or a unix one?.
Thanks,
mike_lachaine

I found a defora core 1 release and verified your problem (on LabVIEW 7.0). It's because the fedora kernel uses native posix threads instead of pthreads. This changes the behavior of signals.
If you recompile your kernel and use pthreads the problem should go away. (Although I have not done this myself).
We have fixed this for the next release of LabVIEW (I did verify this). It required a change in the architecture, and therefore there is no patch available for it.
What I meant by usinc nc and telnet for testing (without LabVIEW) is to "echo hi | nc -l -p 2000" in one window, and "telnet localhost 2000" in another. If your networking is working, you should see "hi" in the telnet window. But, telnet and nc are not affected by
the npt kernel as LabVIEW currently is.
For now, use a non NPT kernel.

Similar Messages

  • Reading the ethernet address without root permissions

    Hello,
    Is there a way to get the ethernet address of a network interface without root permissions (in a user program)?
    I need the mac address in order to generate DCE's uuids. The mac address is used as a unique machine identifier.
    Serge

    HI
    You may use this program copied from a technote 2856-09 to get MAC address in C. Works fine only if arp cache is present though . It
    does not talk to the driver directly . May be usefull to you. Compile
    with "-lsocket -lnsl" flags.
    <pre>
    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/sockio.h>
    #include <sys/socket.h>
    #include <net/if.h>
    #include <net/if_arp.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <netdb.h>
    #include <errno.h>
    main(argc, argv)
    int argc;
    char *argv[];
    int sockfd, i;
    struct arpreq arpreq;
    struct sockaddr_in *sin;
    struct hostent *hp;
    char host[256];
    if(argc != 2)
    printf("Usage : %s hostname\n", argv[0]), exit(1);
    strcpy(host, argv[1]);
    bzero(&arpreq, sizeof(struct arpreq));
    arpreq.arp_pa.sa_family = AF_INET;
    sin = (struct sockaddr_in *)&arpreq.arp_pa;
    sin->sin_family = AF_INET;
    sin->sin_addr.s_addr = inet_addr(host);
    if (sin->sin_addr.s_addr == -1) {
    hp = gethostbyname(host);
    if (hp == NULL) {
    fprintf(stderr, "%s: %s: unknown host\n",
    argv[0], host);
    exit(1);
    bcopy((char *)hp->h_addr, (char *)&sin->sin_addr,
    sizeof
    (sin->sin_addr));
    if ( (sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0 )
    perror("can't open datagram socket");
    if (ioctl(sockfd, SIOCGARP, (caddr_t)&arpreq) < 0)
    if (errno == ENXIO)
    printf("%s (%s) -- no entry\n",
    host, inet_ntoa(sin->sin_addr));
    else
    perror("SIOCGARP IOCTL failed");
    exit(1);
    printf("Hostname : %s", host);
    for (i=0; i<6; i++)
    printf("%c%x", i == 0 ? '\t': ':', (unsigned
    char)arpreq.arp_ha.sa_data);
    printf("\n");
    close(sockfd);
    exit(0);
    </pre>

  • How to run Firefox OS apps without Simulator

    Sorry, just making sure, but is there a way to run Firefox OS apps in Firefox WITHOUT the Firefox OS Simulator?
    I have the Simulator (I actually have mutliple versions), but I would like to see if there is some way to "trick" Firefox into to thinking that it's Firefox OS so I could just go to the Marketplace and get apps.

    You can install Firefox Marketplace Apps from your Firefox web browser itself! You can just visit the marketplace (https://marketplace.firefox.com/) and start using the apps. But few apps like cut the rope maybe only available on mobile phones (hence you may have to depend on simulator)

  • Possible to run web dynpro apps without a portal??

    Hi
    Is it possible to run Web dynpro apps on a WAS without a portal?
    Thx

    Ah,
    Absolutely possible.
    Use url like
    http://host:port/webdynpro/dispatcher/com.your-company/yourappdc/AppName
    in your browser address bar
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How can I run a LabVIEW app as a service in 8.2

    I have need to run a LabVIEW created Executable as a Service using LabVIEW 8.2. I have heard 8.2 can host it but I cannot find any docs on this. Any help would be appreciated. SvcAny was not an option that worked.

    I would suggest trying to add the exe to the services under Control Panel >> Administrative Tools >> Services.  This should cause the exe to launch as a service.
    Brian R.
    District Sales Manager
    Washington DC
    National Instruments

  • Running a LabVIEW app on a MAC yosemite without LabVIEW

    Hello all !
    When you compile LabVIEW codes on a Mac, you create a ".app" instead of a ".exe". I would like to run my ".app" on another Mac running with Yosemite (OSX 10.10) and without LabVIEW on it.
    I downloaded the latest RunTime Engine for LabVIEW on that Mac in order to make the application run but it does not seem to work ...
    Has anyone already done such a thing and would have a method to follow ? :-)
    Thank you in advance !
    Solved!
    Go to Solution.

    gvanhoeke wrote:
    When you compile LabVIEW codes on a Mac....
    LabVIEW VIs are always compiled. You are probably talking about building a standalone executable.
    gvanhoeke wrote:
    I downloaded the latest RunTime Engine for LabVIEW on that Mac in order to make the application run but it does not seem to work 
    Instead of the "latest", you need the runtime engine that matches the LabVIEW version used to develop the program.
    (Sorry, I have no direct experience with Macs)
    LabVIEW Champion . Do more with less code and in less time .

  • Running a labview installer without installing drivers

    Ouch. I have to install multiple LabView programs onto the same machine and they were all compiled with different versions. I don't have the luxury of rebuilding them. When I try installing some of them, the program won't let me install because newer drivers are already installed on the machine. Is there a way of running an installer to install the program without installing the drivers?
    Solved!
    Go to Solution.

    The folder where the installer was placed into should have a bunch of folder in the "bin" folder all starting with "p". These contain the various installers that are run. The actual installer for your executable should be in there somewhere, so you could try running it directly.

  • How to run Labview apps in tablet with android os

    How to run Labview application in tablet with android operating system?
    Can we use Labview mobile module or we must use google play data dashboard for labVIEW? how to install it in PC?
    Solved!
    Go to Solution.

    If you had looked at data dashboard and some of the other links on Android, you would see that you cannot run a LabVIEW app on Android. Nor can you use a serial port. With Data Dashboard, you have a pc running LabVIEW and it publishes to network shared variables. Data Dashboard on the Android allows you to view those variables.

  • Run labview executable without installing

    Hi
    We need t run a LabVIEW executable without the need to install the runtime engine first.
    In fact we use a LabVIEW program to distribute LabVIEW within our company.
    We add our own library and a special license request form and make it possible to install a LabVIEW development environment
    with only the push of one button.
    In LV8.2 however this no longer works. First the runtime environment has to be installed before we can run our LabVIEW application.
    Previous LabVIEW versions worked OK.
    Are we missing an option in the installer somewhere or can somebody show the way to make this work again otherwise we have to keep 8.01 until infinity....
    greetings from the Netherlands

    Hi Albert,
    Long time no see... Perhaps at the user group meting okt. 5?
    We (Andre) did some experiments with this just last week. He copied everything from the normal installation directory (program files) runtime directory to a new directory on a clean PC. In the same directory he put an executable, and it did run properly (although I think he also copied the models directory to get proper control images).
    Only thing is that at the startup of the exe, we get a dialog "Installing...". Still working on that. This might even work from a CD...
    He made a big effort to remove all previous LabVIEW stuff, but to be honest, we didn't try it on a completelly "clean" system.
    Regards,
    Wiebe.
    "Albert Geven" <[email protected]> wrote in message news:[email protected]..
    Hi We need t run a LabVIEW executable without the need to install the runtime engine first.In fact we use a LabVIEW program to distribute LabVIEW within our company.We add our own library and a special license request form and make it possible to install a LabVIEW development environmentwith only the push of one button.In LV8.2 however this no longer works. First the runtime environment has to be installed before we can run our LabVIEW application.Previous LabVIEW versions worked OK.Are we missing an option in the installer somewhere or can somebody show the way to make this work again otherwise we have to keep 8.01 until infinity....

  • Need to run fmsedge process without root access

    1937396
    On Linux, the fmsedge process needed to run without root access.

    I see that in the release notes
    new in this release:
    1937396
    On Linux, the fmsedge process needed to run without root access.
    However I have not found any documentaion on how to do this?
    I would love to run the fmsedge process run as non-root so tht root does not own the 1935 listening port.
    fmsedge   26837  root   19u  IPv4  4007676       TCP localhost:19350 (LISTEN)
    fmsedge   26837  root   24u  IPv4  4007679       TCP *:1935 (LISTEN)
    fmsedge   26837  root   35u  IPv4  4007717       TCP localhost:19350->localhost:59625 (ESTABLISHED)
    fmsedge   26837  root   57u  IPv4 26532589       TCP localhost:19350->localhost:58913 (ESTABLISHED)
    This appear to not be the default setup.
    Thanks in advance if anyone has tackled this!

  • How do I run an app as root at Login?

    Hi,
    I need to run an application as root at login (not startup). The terminal command to do this is:
    sudo -b /Applications/MarcoPolo.app/Contents/MacOS/MarcoPolo
    Is there a way to run "/Applications/MarcoPolo.app/Contents/MacOS/MarcoPolo" as root when a user logs in?

    Perhaps there is a more graceful way to do this using launch daemons (you should ask on the [Unix forum|http://discussions.apple.com/forum.jspa?forumID=735] but the following will work.
    paste the following into Script Editor and save it as an application. Add that application to your login items.
    do shell script "/Applications/MarcoPolo.app/Contents/MacOS/MarcoPolo" user name "your-admin-username" password "your-admin-password" with administrator privileges
    You'll have to enter your admin username and password in the above in open text. This is a clear drawback of course.
    I don't know how to incorporate -b option in this.

  • Labview app wont run on fresh reboot unless MAX is started.

    I am a Labview NOOB. I am the only IT here and started about a year ago and basically got thrown into the "labview" with 0 labview experience.I had to take an xp machine and turn it into a win 7 machine.
    Here's some specs: labview 8.2 32bit running on windows 7 32 bit with IO libraries 16. Driving a gpip to usb 34970A data aquisition unit and a temperature compensation oven. Heres the situation. When i restart the PC my "temp_comp.exe"(application that labview consultant wrote) will not run. I get a few errors One as soon as i start the app: "oven Communication Fault" and one when i try to run the oven with shortened testing times and temp:
    error 107387202 occurred at visa close in HP34970A close.vi-
    34970A_read.vi>measure oven temp.vi->wait for oven to reach temp vi-
    a comp loop.vi - a test loop sequence.vi>main temp comp.vi
    Possible reasons VISA: hex 0xbfff009e a code library required by VISA could not be located or loaded.
    I have reformatted a machine with xp and was able to get this running fine.
    So here's the kicker. If i open up MAX and expand the devices and interfaces tree the program works fine and dandy. no errors. I have ran 3 batches in the oven over night with no problems. I figured i would just do an easy work around and have the max program start during startup but i have to manually expand the devices and interfaces tree before it will work.
    Any ideas will be super helpfull Cheers!
    Solved!
    Go to Solution.

    It never ceases to amaze me what managers think is possible.  It would be difficult for even an experienced LabVIEW programmer to port a LabVIEW app from XP to Windows 7 using a version of LabVIEW not supported on the operating system.  Tell them you'll see them in a few months.
    I ran into an issue once where a vendor's Win7 dll had different default settings than the priginal and we couldn't figure out why we couldn't communicate with the I/O card.  Seems that they inverted the address bits as default.  Of course, there was no documantation on the change - unless you count the source code itself.
    It was an intentional change which would make sense if you were someone who bought a new card and never used the old dll before.  But guess what?  The card was already obsolte/unsupported, so there AREN'T GOING TO BE ANY NEW USERS!
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Is it possible to run labview app on windows embedded compact 7?

    Hi,
           I have a low cost single board computer from ICOP, running embedded compact 7 from windows. The board has all the features such as ethernet, usb, serial, vga etc. Is it possible to install labview runtime and run the labview developed apps on this platform?? If so please provide me the links to any related resources.
    Thanks in advance
    More details on the board here...
    http://www.icoptech.com/SPARK
    Regards,
    Vipul

    Thanks so much Gene. I really appreciate your time and suggestions.
    Btw, should have been clearer  as one couldn't imagine I meant that 5.5 (i.e. ancient one). The adobe website also has this info: Windows 8.1 compatibility for Adobe Photoshop version 5 which just says version 5.5 under compatibility. So it does seem possible indeed to run this but perhaps for someone more techie. Had a look at the thread re: 6.0 and tried to run it as admin. Tried copying the contents on the desktop and change the compatibility under properties (even ran compatibility trouble shooter under properties) - but in vain. Must be doing something wrong. Prolly easier to return the CD (:/)
    If anyone could drop an idea in relation to how/where to buy a genuine and legal copy of a CS5/CS6 I woudl greatly appreciate. I bought the 5.5 off eBay and probably will search for the right version this time on there again. But it's a bit of a question mark for me in regards to how do I make sure that I buy a genuine licenced version which I can register with the Adobe.

  • Where do I sync/back-up my iPhone3G (4.2.1) notes on my MacBookPro running 10.6.8 'WITHOUT' configuring Mail App ?

    Where do I sync/back-up my iPhone3G (4.2.1) notes on my MacBookPro running 10.6.8 'WITHOUT' configuring Mail App ?
    I use my mbp for professional audio recordings and I do not wish to configure mail cause it'll just eat up space on my internal HDD with messages.
    By the way, is there a way to configure mail to store all messages and synced notes on an External HDD ? I would be most pleased to know and do that effectively...

    Seems Apple is making things more difficult with every OS update. Back in the day you used to be able to organize your applications instead of having them all in one folder. You used to have a lot more freedom. More and more it is just easier to use a third party app. So I'm gonna install Thunderbird until Apple comes up with an easy way to fix the mail app. it seems that eveything in help says you just gotta reinstall the system from scratch. I would rather just use an open source product that I can put into any forlder I want without having to worry about it screwing itself up. Had similar experience with Safari now it seems like it is time to get rid of Mail.

  • Is there a way of compiling a VI so that it runs on a PC without Labview installed?

    Is there a way of compling/exporting/publishing a finished VI so that it runs on another PC without LabVIEW installed on it?
    Message Edited by bluefocs on 04-29-2009 10:34 AM

    You will always need the LabVIEW Runtime Engine of exactly that version the VI was built in.
    Every VI is executable in the appropriate runtime engine without the need for the developement system.
    In order to start the execution of a VI without using the developement system, you most often use .exe or sometimes .dll as files. And i think you are up to this.
    You need the LV Application Builder to build an exe or dll containing your application. The Application Builder is part of the LV Professional Developement System, the other ones (Base and Full) can include it as an extra tool (liable to pay costs).
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

Maybe you are looking for

  • HT5622 Can Face Time be used to connect with more than one person at a time?

    Can I connect with more than one person at a time when using Face Time?

  • Downloading my audiobook again

    hi, for some reason i delete or lost one of my audiobooks, is there any way to download it again without paying for it?

  • How to set TimeOut in URL

    Hi everyone, " URL u = new URL(url); InputStream is = u.openStream(); BufferedReader dis = new BufferedReader(new InputStreamReader(is)); " My problem is, 1. if host is down,my program waits for dafult time to connect 2. After connecting to server, t

  • OVM Servers trying to start non-existing VM??

    Hi, all of my OVM servers log(AdminServer.log) are continually reporting error message: [2011-10-24 16:33:25 15835] ERROR (OVSCommons:142) catch_error: Command: ['xm', 'create', '/OVS/Repositories/0004fb0000030000944aa10331c83564/VirtualMachines/0004

  • Fetching Email-Id from ZTABLE.

    Dear All, I have a requirement in which i have to fetch email-id of users from a Z-table based on workcenter (for Tcode IW31/32) value. The Z-table contains the Workcenter - Email Id combination. I have the work center value in my workflow container