I'm trying to execute and possibly terminate a PERL script from Labview.

I am currently using the system exec.vi to run my perl script. I would like to be able to terminate it as well. Any suggestion?
I'm running from windows xp.

Try looking at http://www.jeffreytravis.com/lost/labperl.html
The download (LabPerl) gives you comms between Labview ' Perl and viceversa.
And doesn't take too long to fathom out how it all works.
The perl program is set running (manually or by labview command window - don't wait for completion) followed by labview control etc.
N.B.
Each labview write string requires a Linefeed - then chomp at perl end
The secret is to  have a good handshake method - each LabView read returns to perl an "ok"

Similar Messages

  • Hi, i am trying to open and view a report that comes from another server with different odbc connection

    hi, i am trying to open and view a report that comes from another server with different odbc connection
    i created a crystal report for a mysql database on my machine and everything works great
    but we have other reports that come from other machines with different odbc connection
    and this its not working when opens the report asks for credentials
    and i cannot use the remote ip for these reports that come from other machine
    question
    if i cannot connect to remote ip to open the report
    for each report i have to create a database the report database on my machine and then open the report ?
    or there is some other way to open the report ?
    i am using visual studio 2013 and mysql and
       <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
    thanks

    short
    i have a report that it was created on another server with a specific dsn
    now i am trying to open the report on my machine
    the database from the other server does not exist on my machine
    the server machine where the report was created the ip its not accessible
    question ?
    can i open the report on my machine or its impossible ?
    thanks

  • Is it possible to export a histogram from labview to excel

    is it possible to export a histogram from labview to excel,and of course get a fancy one

    Hi achfire,
    The LabVIEW Report Generation Toolkit allows you to create different graphs in Microsoft Excel, including Bar Graphs.  Check out the Report Generation Toolkit section of the White Paper below for more information.  I've also linked to a section of the Report Generation Toolkit Help document which gives more details on the different types of graphs you can export.
    Moving Data From LabVIEW Into Excel: http://www.ni.com/newsletter/51339/en/
    Common Graph Types for Reports: http://zone.ni.com/reference/en-XX/help/370274G-01​/lvrgthelp/graph_types/
    Thanks,
    Myriam D.
    Applications Engineer
    National Instruments

  • Is there any possibility running a Perl Script in JSP?

    Is there any possibility running a Perl script in JSP and get the value of the JSP variable? The JSP page is running in TOMCAT 5.0 server.

    i am created one script .... i want to replace it the older one ... it is possible in development server ..... is there any possibility to assingn the form in quality server ?????
    is there any other way to assign the form to transaction with out using NACE?.
    Well regarding you question about the system to have it assigned, ideally you need to assign it in development and mopve it up stacks. However, i aint sure of the roles you are assigned with for doing any config changes in QS. and the config needs to be done through NACE. Following is the process.
    You need to first find the Output type and the standard form attached to the existing program/ tcode. This info can be fetcehd from TNAPR table. Once you have got the details, you can then get into NACE tcode to configure your new custom form instaed of the existing Standard one. Get the application type, output type from TNAPR table. Then select the particular outpput type in NACE nad click on processing routine. This is the place where the new form name needs to be updated.
    Hope this helps!
    Cheers!
    Varna
    Edited by: Varna17 on Sep 24, 2009 7:10 AM

  • Executing a perl script from within java application

    Hi,
    Does anyone knows a way to execute a perl script from within java.
    ---kirk

    Runtime.exec("perl myscript.pl");
    Of course whether that "works" depends on what the script does and where the java program runs.

  • Urgent Problem in Executing perl script from shell script

    Hello,
    I've a shell script on one server (source) and a perl script on another (target).
    My perl script will check whether the directoryname, filename provided by shell script exists on the target server or not.
    My shell script is as follows:
    #! bin/bash
    cmd=`ssh user@target "perl /home/user/test_dir/validate_file.pl"`
    echo $cmd
    And my perl script uses a package CU_Functions.pm, which is in the same directory as the perl script on the target server.
    But when I invoke the perl script from shell script, I get the following error:
    Source:user> (db:ias10g12_mid_db) /home/user/perl
    $ sh /home/user/arcs/arcs_conn.sh
    user@target's password:
    Can't locate CU_Functions.pm in @INC (@INC contains: /local/perl-5.6.1/lib/5.6.1/i686-linux /local/perl-5.6.1/lib/5.6.1 /local/perl-5.6.1/lib/site_perl/5.6.1/i686-linux /local/perl-5.6.1/lib/site_perl/5.6.1 /local/perl-5.6.1/lib/site_perl .) at /home/user/test_dir/validate_file.pl line 13.
    BEGIN failed--compilation aborted at /home/user/test_dir/validate_file.pl line 13.
    Please let me know if I need to do any configurations prior to call the perl script.

    As for the Perl INC, I cannot recall the environment variable that sets that but the following example should work:
    ssh user@host "export ENV_VAR=/path/to/include/files:$ENV_VAR ; /full/path/to/script"

  • I am trying to copy and paste a series of numbers from numbers to pages but I keep getting a red triangle indicating formula error. Is there a way a way to open pasting options to copy just the value to avoid writing every single number??! Thanks..

    I am trying to copy and paste a series of numbers that were calculated in a numbers spreadsheet to a document on pages but I keep getting a red triangle indicating a formula error. Is there a way to open pasting options to copy just the value to avoid writing every single number??! Thanks..

    Hi Jess'D,
    Have you tried Menu>Edit>Paste Formula Results?
    quinn

  • Execute perl script from CPO

                       Hi everyone,
    Is it possible to execute a perl script directly from CPO without using a cgi or soap action, If yes, is there any documentation or model workflows that I can refer to...

    Its a prewritten script hosted in a linux box(svc cat server), first we tried to invoke it as a soap request...
    <?xml version="1.0" encoding="UTF-8"?>
    http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    ">
    #username#
    this worked but we want to discontinue this approach,
    so we tried to host the script as cgi and invoke the cgi directly...
    but this is not working, so wanted to see if we can execute the script from CPO either directly by using CLI or by hosting the script in a server

  • Execute Perl Script from Forms

    Ji all, is there a way to execute a Perl Script out of Forms beside WEB.SHOW_DOCUMENT ?

    Depends on where the script should be executed. If its on the application-server and you can wrap it into a shell-script, then you can also use HOST.

  • How to load a curve and the view automatically in diadem from labview ?

    Hello,
    I want to automate a system for processing and analyzing data and for that I am using labview.
    I recently discovered software diadem and already I am able to send data from labview.
     I would now like to obtain a curve directly in the "view" is that possible?

    Hello Beneuss,
    You can create a layout template in VIEW, save it to disk and then load it when DIAdem is started. These two lines will automatically load a VIEW layout called "Example" and display the VIEW window.
    Call View.LoadLayout("Example.tdv")
    Call WndShow("VIEW")
    To automatically have a curve show up in VIEW, make sure that you assign the correct curves in the VIEW layout before you save the layout. This is done with the drag&drop functionality from the DataPortal. Just assign the channel you wish to see, and then save the layout. It will "remember" all the channel assignments and automatically show all the channels you had assigned, as long as you don't change the channel names.
    Please let me know if that helps and if there is anything else we can help you with.
         Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • How can I get firefox to execute perl scripts from local files

    I have created perl scripts on my local host (file type ".pl").
    In MS Windows I have associated that type to a perl interpreter installed on my local host.
    IE allows me to create links to them and to execute them (after asking for permission).
    How can I get firefox to do the same? It doesn't seem to allow me to add application types, only to change those that are already defined. As a result, in firefox, they just show up as text, instead of being executed.

    First guess is that you did not use an .html extension on the file. The file may well be ''name.html.txt''
    * see http://www.bbc.co.uk/webwise/guides/file-extensions
    *http://windows.microsoft.com/en-gb/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista
    Forum Note
    This is normally offtopic for this forum. I say normally because now we cover webmaker questions. I wonder if this is therefore on topic as a webmaker question?
    I have tagged with webmaker-contribution

  • Possible data loss whlie transfering from Labview 7.0 into Matlab [binary]

    Greetings,
    I am kind of confused on binary data processing from labview to matlab. I tried to follow this thread by C. Minnella:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=211371&query.id=131675#M211371
    And it was a great help for me to understand many of my issues. However there is something wrong with data that I am writting and retrieving in Matlab
    Here is how signal looks in Labview
    http://img126.imageshack.us/my.php?image=picture1va4.png
    And its spectrum
    http://img126.imageshack.us/my.php?image=picture3hn6.png
    http://img146.imageshack.us/my.php?image=picture4br6.png
    And this is what I am getting in Matlab:
    http://img357.imageshack.us/my.php?image=picture7jq7.jpg
    my vi:
    http://img146.imageshack.us/my.php?image=picture2wn0.png
    The only change I did was replacing DAQ task with Global chanel constant, since it has original scaling for the data from Load Cell (Fx Axis in particular), this is the device I am getting data from, it is in rest, sitting on the table.
    I can't figureout what is happening, looks like it is clipped, besides the amplitude is not correct.
    Would really appreciate any insights,
    Oleks 

    Hello Ton,
    Thank you for the fast reply, here is a part of the code that reads from Labview data file:
    %Read header information, return in a structure[headerInfo,fileMark] = GetHeader(fileName,pathName, dataBytes);
     %Open binary file Big endian formatfid=fopen([pathName fileName],'rb','ieee-be');  %Move file marker to begining of scansfseek(fid,fileMark+startScan,'bof');  %Read number of requested scansy=fread(fid,headerInfo.NumChannels*scans,dataType);
     %Reshape data into a matrix [scans x channels]y=reshape(y,headerInfo.NumChannels,[])';
     %Close binary filefclose(fid);
    I basically followed example posted in 2006 on NI forum. I think my major concern is whether data is getting to matlab scaled correctly (it is scaled within global channel to Newtons) and looks like I am not getting the same data type in Matlab.

  • Executing a Perl Script from within a Servlet

    I'm trying to call a script from within a servlet.This is the code i'm using:
    Process process = Runtime.getRuntime().exec(new String[]{"sh","-c",script,nick,pass});
    InputStream input = process.getInputStream();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    int i;
    while ((i=input.read())!=-1) {
    baos.write(i);
    System.out.println(baos.toString());
    I can`t make it work.This is the output i'm getting.
    java.io.IOException: CreateProcess: sh -c /home/script.sh user pass error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.(Win32Process.java:66)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:551)
    at java.lang.Runtime.exec(Runtime.java:477)
    at java.lang.Runtime.exec(Runtime.java:443)
    at controllers.EmailAcountCreate.doPost(EmailAcountCreate.java:34)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    Thanks in advance.

    I am facing the same problem. Could you please post the answer if you have one now. Please treat this as very urgent.

  • HT1848 I downloaded a book on itunes on one computer and it is not listed on a seconded computer.  Same account.  I have tried updating purchases and transferring recent purchases, transferring purchases from another devices.  Still does not appear.

    I purchased a book on one macbook in my itunes account.  I tried to open it on another account while logging into itunes account.  The book does not appear.
    I have tried updating purchases, the bottom at the bottom-update purchases from another device.  Still does not appear.

    If it's an audiobook then you will need to copy it over from the first computer to the second computer - audiobooks are currently one-time only downloads, so they won't appear under the Purchased link for re-downloading.  If you copied it onto a device from the first computer then you should be able to copy it off that device to the second computer's iTunes via File > Transfer Purchases. If it's not on a device and both computers are on the same wifi network then you should be able to copy it over via home sharing (there are instructions on this page), or you can copy it to, for example, a flash drive (you can find it's location on the first computer by control-clicking it in your iTunes library and selecting 'Show In Finder') and then add it to the second computer's iTunes (File > Add To Library).
    If it's an ibook then you should be able to re-download it from the store : re-downloading.

  • Execute IronPython script from labview

    Hi,
    I am trying to add search paths and dll's for executing a python script. So for this I am using the SetSearchPath method.
    For this not i am unable to input the path by adding the path into a IList(since the paths input is of ICollection .net refnum).
    Can you please help me with this. Also i have attached the VI.
    Also, i would like to know how to redirect the console(cmd) to a string indicator
    Thanks and regards,
    Yogesh 
    Attachments:
    TestExecutive.vi ‏14 KB

    see whether this will help

Maybe you are looking for

  • ID3 Tags Questions

    What are id3 tags and which versions should I use? In iTunes, I have versions: 1.0,1.1,2.2,2.3 and 2.4. Which is the best for burning MP3 cd's to play in my car? Also, even though my car has an MP3 player, it sometimes has trouble reading the songs a

  • What are the two different rules for organizational data determination

    What are the two different rules for organizational data determination???

  • Can't use Keynote Remote Because of iPhone 5's Bluetooth

    I use Keynote Remote with my iPhone 5 to MacBook Air. WiFi works well but Bluetooth doesn't work at all. How to solve this problem. P.S. iPhone 5 - iOS 6.0.2 MacBook Air - OS X v.10.8.2

  • Exchange 2007 Wildcard Certificate Supported in iPhone?

    Does the iphone support the use of a wildcard certificate? Our exchange infrastructure utilises a wildcard (*.companyname certificate) from godaddy. All the windows mobile 6.0 devices work fine however I know that windows mobile 5.0 did not support w

  • N95 autofocus problem software related

    I've had an N95 for more than a year. Part of the reason I bought it was the 8 GB - could take lots of pictures and video. I'm very disappointed. For reference, I am an eye doctor. I know a lot about prescribing glasses, I know optics, and I have don