How to use a Matlab Program within Labview

Hi
I saw in this forum that many users are using some matlab program
executed in Labview program. I have actually Labview 7.1 and would like
to use some of my matlab program in Labview. Is there an easy way to do
it ?
Thanks
Thomas

The MATLAB Script function is kinda buried in the function palette, and
can be found under Functions >> Analyze >> Mathematics
>> Formula.  Unfortunately this feature is not available in
the LabVIEW Base package.  Hope this helps!
Andy F.
National Instruments

Similar Messages

  • How to use a MATLAB license with password peotection?

    I am using a MATLAB network license, which is password protected, so when I use a MATLAB script node LabVIEW can't load the proper MATLAB license and fails.
    How can I submit the username+password info to LabVIEW?

    Hello malosh,
    Unfortunately the functionality is not in place for LabVIEW to pass your username and password into MATLAB for you. Is it possible to log into MATLAB and then run your LabVIEW application?
    If none of these suggestions help, or if I�m not correctly understanding your issue, please reply with comments or answers to the discussion above and any additional information that may help, and I�ll be happy to look further into it.
    Have a nice day!
    Robert Mortensen
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments

  • How to use standard report program [RPR_ABAP_SOURCE_SCAN]

    hi all,
    how to use RPR_ABAP_SOURCE_SCAN report program for checking my program. when i run it its asking me the report name and i gav it but, its showing me the error message as  'ENTER SEARCH STRING' .
    SO I NEED TO KNOW WHERE I DID WRONG.
    thanks in advance,
    suresh babu aluri.

    hi suresh,
    i hav tried that, its working
    enter like this,
    <b>program name : zpy_text</b>
    under search criteria.
    <b>Find string : select</b> 
    "******enter any string that is in that program, usually select will be there, then execute.
    With Regards,
    S.Barani

  • How To Use Exported Function "CallInstrument" of LabView.exe ?

    Hello!
    I want to use the function "CallInstrument" to dynamically call VIs with LabView. Did anyone has experiences with this function?
    All I kow is following:
    The function is used by LabView Internals and its Runtime Library. Its exported by LabView.Exe and lvrt.dll.
    Its prototype is maybe:
    int CallInstrument(CPStr* VIPath, int controlcount, int indicatorcount, int options, [ Variable List of Control/Indicator Parameters ]... );
    ( CPStr Type is a StringArray of PStr (Short PascalStrings) as it is used by LabView to store Path datatypes. )
    I whould be glad, if anyone has information about this function.

    Dear Rolf Kalbermatter,
    Thirst, thanks a lot for your answer! -
    You sure right, It whould be much much more comfortable to use the VI Server.
    And you're also right... using a undocumented dll-function is absolutly no longtime solution.
    Currently I am using VI Server for my problem, but it doesn't fit my interesst so much.
    But I will explain, what I'm trying to do.
    I want to call a VI dynamically from LabView, giving Parameters to its Controls and receive Results from its Indicators.
    Realy no big job, but VI Server only let you do this that easy if you have a VI Typedef. otherwise... with untyped VIs, its not that simple. Ok.. its not impossible, you can use "GetAllControlValues" and "SetControlValue" (functions from VI server) and the call "RunVi". But this can get slow (>100ms per call :/ )
    I'm looking for a alternative function, which let me call a VI dynamically with userdefined Parameters. Maybe you know the ActiveX Interface IVirtualInstrument and its Function "Call2" - it is a nice example, what kind of function i want.
    But this function is not directly available by the VI Server--- i don't know for what reason.
    Then i tried to make use of "Call2" from within LabView, and it took me some time to find out the right Parametersyntax but finnaly i got it and it worked fine ... but it was no long time until problems occur. I cannot tell what really went wrong, but sometimes labview simply crashed or hang into a loop reseting some VIs. And its also impossible to stop a running vi, with has made a call to "Call2", if the call doesn't return by itself.
    Next step is/was trying to take advantage of CallInstrument. So, yesterday... after hours of analysing assemblercode, i finnally found out the correct use of LabView.exe->CallInstrument and i'm very impressed about its speed (0-15ms per call). The prototype seem to be the same as you explained in your reply int CallInstrument(Path path, Bool modal, int32 nInputs, int32 nOutputs, ...)
    But It has the same problem as its ActiveX derivat "Call2".. if you call an endless looping VI, LabView cannot stop your caller-vi. The other bad thing is, that this function is using dynamic paramterlist, which are placed directly onto the stack!
    That means that the paramter count on the stack is NOT FIXED (printf makes it the same). LabVIews DLL InvokeNode doesn't support this.
    At my current position, it looks like i have three possiblities but no one fits into my interesst.
    (continued with next answer)

  • I am a professional photographer of many years standing and at the moment I have a student for 12 months, who I am teaching how to use various Adobe programs, but to introduce her to video editing, I have purchased Adobe Premier Elements 13 which is less

    I am a professional photographer of many years standing and at the moment I have a student for 12 months, who I am teaching how to use various Adobe programs, but to introduce her to video editing, I have purchased Adobe Premier Elements 13 which is less complicated than the Premier Pro that I use. The program works perfectly, except for one thing.... when adding a title to the short video sequence we are working with, if I use a particular font (Metallophile Sp8) which I obtained from my Adobe Typekit, it crashes the program,.... all other fonts work perfectly....can anybody help me please?

    clivephoto
    What computer operating system is your Premiere Elements 13 running on? And what video card/graphics card does this computer use?
    From your description, can I assume that this Mettallophile Sp8 font is being recognized by Premiere Elements 13 to the extent
    that it can be seen and remains seen in Titler's list of font choices - even after the crashes?
    If you opened a new project, imported nothing, and created a text title in the Titler with this Mettallophile Sp8 font, does the program crash?
    Please review the following which discuss fonts and Premiere Elements and determine if anything in it helps.
    Fonts & Crashes with Titler
    Let us start here and then decide what next.
    ATR

  • How to integrate Matlab program into Labview

    I have a Matlab program to do some data processing.
    The data source is from Labview, and the processed data will pass back to Labview for display.
    Finally the Labview program need to compile into exe program.
    Any way to make it. Thanks.

    hope this helps:
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    matlab.jpg ‏25 KB

  • Matlab routine within labview cannot get input after a few hours of use. What can be the trouble?

    I have a Matlab-within-Labview application that needs to run 30-40 times in a row. However after let's say 10 runs I get error 1047, that is, there is no communication between Matlab and Labview. I have to reset the computer to start re-running the application without problem. Note that Matlab is open on this computer all the time.

    Hello,
    The only information I could find on this from NI or MWorks is that MATLab must be running in order for LabVIEW to access the Matlab server. I would check to see if there is anything specific happening inbetween the 10 and 11th runs that causes the link between the Matlab server and LabVIEW to break, isolate where this happens and try to work from there.
    Doug

  • How to use a C# dll in Labview?

    How can I use a C# dll in Labview 8.2? With the "Import Shared Library" Wizzard I need the header file which I don't have. Is there another way
    to use such .dll to import the functions created in C#?
    Thanks in advance
                                  Norick

    Norick,
    afaik there is no tool which provides you the possibility to create something like an instrument driver for .NET assemblies.
    Maybe we should take a look into terminology:
    - Instrument driver: This is a set of functionality, which provides the user with an easy to use API for a special instrument. Very often, the driver itself is written in C/C++ and provided as a DLL.
    - "Import Shared Library" Wizard: This wizard enables the user to create an own API for any C/C++ DLL (or compatible) for LabVIEW. This wizard requires the information on all exported functions; this info is contained in the header file. The result of the wizard is a set of VIs containing one Call Library Function Node each for each exported function.
    - .NET assembly (extension .exe OR .dll): This can be compared to ActiveX. So the way to program with .NET is similar to ActiveX. Maybe you want to take a look into the examples of LabVIEW regarding .NET...
    - Global Assembly Cache (GAC): All assemblies contained here are registered in the system. Every application can easily work with assemblies contained here.
    - Private assemblies: This would be the way to work with .NET assemblies which are built on your own. You have to select the .DLL-file itself and make sure that the file can always be found in the same (relative)folder of your application.
    hope this helps,
    NorbertMessage Edited by Norbert B on 02-21-2007 02:16 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to use a c file in LabVIEW

    Hi All,
    I have a c file which communicates through serial port and J1850 protocol. I want to use the C file in labview and do the communication through serial port.
    Can any one give me an idea how I have to use the c file in LabVIEW.
    Thank you.!
    ---------------- Be Good. Do Good. ---------------------

    Have you tried reading the LabVIEW Help or even searching this web site? This question has been asked MANY times. There's a section in the LabVIEW Help called "Calling Code Written in Text-Based Programming Languages." There are also several articles written on this. Here's just one: https://decibel.ni.com/content/docs/DOC-1690
    Please do the research and then come back with a more specific question.

  • How to use another java program to stop this running prpgram???

    Dear Sir:
    I have following code and I run it success,
    import java.util.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.*;
    public class CertainAndRepeatTime{
      public static void main(String[] args) throws IOException{
        int delay = 1;
        Timer timer = new Timer();
        ActionListener actionListener = new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
              System.out.println("Hello World Timer");
        System.out.println("What do you want (Certain time or Repeat time)?");
        System.out.print("Please enter \'C\' or \'R\' for that: ");
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String ans = in.readLine();
        System.out.print("Please enter  ans=" + ans  + " IsTrue=  " + (ans.equals("R") || ans.equals("r")) +"\n");
        if (ans.equals("C") || ans.equals("c")){
          //System.out.println("This line is printed only once start...");
          timer.schedule(new TimerTask(){
            public void run(){
              System.out.println("This line is printed only once.");
          },delay,1);
        else if(ans.equals("r") || ans.equals("R")){
            timer.scheduleAtFixedRate(new TimerTask(){
              public void run(){
                System.out.println("This line is printed repeatedly.");
            },delay, 1000);
          while(true){
               //System.out.println("Charles print This line is printed repeatedly.");          
          } //This will make your main thread hang.
        else{
          System.out.println("Invalid Entry.");
          System.exit(0);
        System.exit(0);
    }But I hope to use another java program to stop it when it is running instead of pressing CRTL + C to stop it.
    How to do it??
    Any example??
    Thanks a lot!!

    Sorry, I think i did not express cearly. It is my fault.
    I re-write my requirements again:
    I have
    Class AAA1.java,
    Class AAA2.java,
    Class AAA3.java,
    Class AAA20.java...
    etc
    they all look like the program I posted first time,, once executed, they will run for ever, and they will be stopped until I press CRTL + C;
    Now I hope to use another java class StopProgram.java to stop them 1 by 1 or at once instead of pressing CRTL + C;
    In this case, how to code this StopProgram.java ??
    Thanks

  • What is access sequence tables and how to use them in program?

    hi all, I know a little about SD and access sequence tables, but I get a requriment like this:
    condition type is a paramater
    The condition types allowed in this report are: Note: A list of pre-defined condition types with their corresponding access sequence tables will be defined.
    How can I make it? How can I use it in program to get the price?

    Hi,
    An access sequence is a search strategy with the aid of which the SAP
    System searches for valid condition records of a certain condition type.
    For example, you can stipulate for a price that the SAP System first
    searches for a price for a specific plant, and then for a generally
    applicable price.
    For condition types for which you wish to maintain conditions with their
    own validity period, you must assign an access sequence. With this, you
    define which fields the SAP System checks in searching for a valid
    condition record.
    e.g. When you create condition record (e.g. Purchasing condition record) you enter condition type, system asks you the key combination to enter the entries. These key combinations are nothing but the access sequence. On the basis of combination of condition table it will search record. e.g. when u maintain condition record with acc seq Material/plant combination, it will transfer the same record in PO when u enter same material and plant in the PO.
    Example:
    An access sequence has been assigned to condition type PB00 so that
    prices can be maintained in purchasing info records and contracts.
    No access sequence has been assigned to condition type RC00 because it
    does not have a validity period of its own. In the standard system, it is
    always maintained simultaneously with the price and is valid for the
    period of the price.
    For more help
    http://www.sap-img.com/materials/steps-for-mm-pricing-procedures.htm
    Regards,
    Raj.

  • How to use BAPI in program

    Hi
    i have some data in the Legacy file and i have to update in SAP. For that I have to use BAPI, which is ME_DIRECT_INPUT_SOURCE_LIST  in the program not in LSMW.
    so i have to  use
    Function ME_INITIALIZE_SOURCE_LIST to initialize the structures and tables
    Function ME_DIRECT_INPUT_SOURCE_LIST to enter the data (see data mapping below)
    Function ME_POST_SOURCE_LIST_NEW to save the source list.
    But i don't know how to use this in the program.
    Please help me to solve this problem.

    Please check this FM - IDOC_INPUT_SRCLST, atleast you will one rough idea about mentioned FM's

  • How to use XVID MEPG4 DECODER in labview

    May i ask how to use Xvid MEPG4 Decoder to compress the AVI file. For this decoder have been installed in my computer but the VI(IMAQ AVI2 Get Codec Names)can not list this code name. So may i ask how can i use this decoder in the labview. For this decoder is relatively has good quality and also small size. Or what kind of other solution can be provieded for the relative small size of AVI file.
    Thanks
    Daniel

    I believe this was answered already in a different thread:  http://forums.ni.com/t5/LabVIEW/LabView-to-grab-and-save-video-to-mpeg/m-p/643864
    www.movimed.com - Custom Imaging Solutions

  • How to call a python program in labview 7?

    Hi
    I want to call a Vtk  python program in labview .Is it possible to open the program in the same front pannel of the labview program.
    Thanking you
    Shri 

    HI
    Thanks for the thread, but I am using the Python script that mainly has VTK and output for my program is a 3D model presented in vtk window. The thread provides examples that mainly pass strings. 
    Now I would like to know if it is possible to open this vtk window in labview or even as a separate floating window (since the window gets closed after the python program is finished)
    Thanking you
    Shri

  • How to use a Webservice (deployableproxy) within a portal component?

    hi,
    i need to know how to use a webservice using a deployable proxy within a portal component?
    i've created the proxies and they work (with servlets).
    i know how to use them in servletes (context lookup, jndi mapping, application references) but i cant find a way to use them in a portal component.. tried the context lookup way but cant figure out which jndi mapping to use.
    any help?
    thanks in advance,
    constantin

    i've found this document:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/cb2e29578c0262e10000000a11466f/frameset.htm
    but it doesn't help...
    i should add a privatesharing resource...
    <property name="PrivateSharingReference" value="SAPJ2EE::rh21.de/pca~wsproxy"/>
    which works
    this is my code
    public void doContent(IPortalComponentRequest request,IPortalComponentResponse response) {
       try {
         Context context = new InitialContext();
         WSPhonebook obj = (WSPhonebook) context.lookup("/wsclients/proxies/rh21.de/pca~wsproxy/de.rh21.wsproxy.phonebook.WSPhonebook");
         WSPhonebookViDocument phonebook = (WSPhonebookViDocument) obj.getLogicalPort("Config1Port_Document", WSPhonebookViDocument.class);
    } catch.....
    now the lookup works (i guess, no messages about that anymore), but i catch ClassNotDefFoundError-Exceptions, but the classes are there, i can strg+click them in the editor, they are in the used dc's etc.
    any help? its quite uurgent :/

Maybe you are looking for

  • Inserting Image Into XML Publisher Report

    I have a problem to insert an JPG Image(Dynamique Logo depending on setid ) into My XMLPublisher report. My Image is stored in database. My query return the field image I Use this syntaxe: <fo:instream-foreign-object content-type="image/jpg"> <xsl:va

  • How to find Parameter values of a non-default listener using LSNRCTL

    Hi, I have a non-default listener with name like "lsnr_abcd" in non-default port. I am on 10.2.0.4 database version. If I want to find out parameter values (like displaymode,dynamic_registration,etc) for a non-default listener, which command should I

  • My Mountain Lion wont download, what should I do?

    I just bought a new macbook pro and I received a free OS X Mountain Lion download. But it wont let me download the app because it says it wasnt signed or the file was not verified. Can someone help?

  • Can PeopleSoft act as a Identity Provider for Federation?

    Hi All, We would like to know about a trust federation (SSO) with PeopleSoft and following is my question: Can we use PeopleSoft as a Identity Provider for Federation Scenarios? we would like to onboard PeopleSoft as a Identity Provider for Microsoft

  • Equivalent of 'null' for integers?

    I was wondering if the integer data type has a value that is the equivalent to 'null'?