Matlab & Labview - portabilit​y

Hello everybody
I have a Matlab script in Labview, but I want to create Labview
standalone application. Is it possible to run it without Matlab
installed? Maybe I can migrate to HiQ easily?
Thank you for help
Best regards
PP

To use the Matlab script requires the installation of Matlab on the target computer. The ease of migrating to HiQ will depend on the functionality you require. Make sure you check this out in the HiQ help. You might also be able to develop a purely G code instead of using the script nodes.
Marc

Similar Messages

  • Call a function from matlab labview

    hi,
    I would like to know how can I do to write a string on the front panel of Labview and write simultaneously in the Matlab command window.
    Thank you

    You can pass the string to a MATLAB script node and use eval() to execute it in a MATLAB environment.

  • Problems with matlab labview interface

    I wrote a code to check the interface of Matlab and LabView. I am reading a matrix from a file and created two 1D subarrays using index array out of it. I am passing the subarray as input in the matlab script to calculate its length. With subarray 2 in the vi I am getting the result I expect. When I choose the subarray 1  as input to the Matab script, LabView crashes.
    Is there any problem with my code?
     

    There is no need to host files somewhere else.  Feel free to upload them to the forums and attach them to your post.
    Minor comments first.  Why are you re-reading your config file every 2 seconds?  Do you expect it to change?  If not then read it once and don't read it again.
    I think it would be best if you stopped when an error occured, you can do this by wiring an error to the Or going into the stop condition, or use the compound arithmatic with Or.
    But I think the major issue you have is that your Arduino reference can be wipped out if you do things wrong.  If your equal comparision is false you go to the false case, where you aren't passing the arduino reference.  So when you go to close you won't close your reference, and your hardware will still be open, and trying to run again will result in an error.  Similarly if your for loop runs for 0 iterations your reference is lost.  Attached is an updated version which has some of these changes.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Prueba 1 Hooovahh Edit2.vi ‏765 KB

  • Labview portabilit​y???????

    Hello,
    when I write application in labview on my PC and try to open it on my
    colleagues computer I always experience changes in text dimention, colors
    and form shapes.
    What do I miss?
    Thanks

    Have a look at the font recommendations in the following article:
    http://zone.ni.com/reference/en-XX/help/371361G-01​/lvconcepts/porting_among_platforms/
    in particluar, the note:
    (Windows) LabVIEW uses the font that Windows uses for filenames in Explorer. For the U.S. version of Windows, this is usually MS Sans Serif or Tahoma. The size of the font depends on the settings of the video driver because you can set higher resolution video drivers to use Large Fonts or Small Fonts. We recommend Small Fonts and Windows standard settings.
    LabVIEW Champion . Do more with less code and in less time .

  • Research Design Engineer - LabVIEW/MATLAB Programmer -Boston, Massachusetts

    Research Design Engineer - LabVIEW/MATLAB Programmer
    The Eaton-Peabody Laboratory seeks an experienced programmer to design and write LabVIEW and MATLAB software to control stimulus generation, data acquisition and response analysis for a range of cutting-edge biomedical research projects. The successful candidate will join an existing team of hardware and software engineers within a multidisciplinary research laboratory, located at the Massachusetts Eye and Ear Infirmary, comprising 21 NIH-funded investigators studying a variety of aspects of hearing and deafness. To see current research projects here at the Eaton-Peabody Laboratory, go to our website: http://www.masseyeandear.org/research/ent/eaton-peabody/.
    Minimum Qualifications:
    BA/BS in Math, Computer Science or equivalent
    demonstrated expertise in MATLAB, LabVIEW or C++
    demonstrated ability to work and communicate effectively with technical and non-technical colleagues
    Additional Qualifications:
    experience with software control of digital and analog I/O boards
    experience with scientific programming
    Send a cover letter, resume, salary requirements and contact information for three references to:
    [email protected]

    Labview Programmer

  • Load Labview runtime engine with matlab platform

    When I use labview DLL on matlab platform it loads labview runtime engine.
    Once I use "close all" command of matlab, labview runtime engine is not available any more so I want to reload it.
    How can I do this?
    If I run the DLL again an error is occurred.
    Best regards,
    Nir

    Hello Nir,
    I recommend contacting MathWorks for assistance with the exact functionality and results of close all. Based on online documentation for calling DLLs in MATLAB, you should use unloadlibrary to remove the LabVIEW DLL from memory instead of close all. If you use this method, are you able to load the LabVIEW DLL (using the loadlibrary function) and call it successfully from MATLAB?
    MATLAB® is a registered trademark of The MathWorks, Inc.
    Regards,
    Andrew Brown
    Applications Engineer
    National Instruments

  • Mathscript​/Matlab fir1 function vs. LabVIEW FIR coefficien​t?

    I'd like to convert some Matlab/LabVIEW Mathscript function into LabVIEW block functions, because it's faster.
    One of the function I'm not sure is the FIR function: I have a Mathscrip function fir1(n,W), is "FIR windowed coefficients" its LabVIEW equivalent?  If yes, how should I match the parameters (e.g. is W the high or low curoff frequency? is Order n the same as the number of taps)? If no, which LabVIEW function should I use?
    Thanks.

    Hi pji,
    I don't have LabVIEW, but I found some really useful resources in LabVIEW Help (open labVIEW>>Help>>search the LabVIEW Help>>search)
    Search for fir1 and it contains the syntax, paramter definition and some example codes which you can simply copy and paste and run
    b = fir1(n, w)
    n: Specifies the filter order. n is a nonnegative integer.
    n must be even for filters with a non-zero gain at the Nyquist
    frequency. If n does not meet this condition, LabVIEW increases
    n by 1.
    w: Specifies the cutoff frequency of the filter. w is real number
    between 0 and 1. 1 represents the Nyquist frequency.LabVIEW Help has abundant information, check it out!!!
    Van L
    NI Applications Engineer

  • Adapter un programme matlab sous labview

    Bonjour
    J'aimerais adapter un programme développé sous Matlab à Labview (version 8.2). C'est la première fois que je fais ca et que j'utilise matlab...
    J'aimerais savoir si c'est mieux de tout faire sous labview ou d'utiliser Matlab script node?
    J'ai regardé l'aide de Matlab script node mais j'ai du mal à comprendre comment cela fonctionne... 
    Voici le code en question
    h=amplitude
    time=abcisses
    N=length (time)
    H= [fft(h)  fft(h) fft(h)]
    al= [0: (N/2)-1, -(N/2):-1]
    for f=1:M
         W= exp(-2*pi^2*al.^2./((f-(N/2)-1).^2));
         S(f; : ) = ifft (H(f+N/2):f+(N/2)+N-1 .*  W);
    end
    S(N/2+1,: )=ifft (H(N+1:2*N) .* [1 zeros(1,N-1)]);
    TT = ifft(fftshift(S,1), [],1);
    Quelqu'un peut il m'éclairer?
    Merci 
    Message Edité par Tartarin le 05-27-2010 08:16 AM
    Message Edité par Tartarin le 05-27-2010 08:17 AM
    Message Edité par Tartarin le 05-27-2010 08:24 AM

    Bonjour Tartarin,
    Concernant votre application, il est toujours préférable de n'utiliser que des fonctions propre à LabVIEW.
    Cependant, si vous souhaitez gagner du temps vous avez en effet la possibilité d'utiliser un noeud Matlab pour réaliser votre application.
    Je vous invite à regarder les exemples fournis avec LabVIEW : Aide » Recherche d'exemples » Communication avec des applications externes » Script MATLAB et Xmath. Vous trouverez ainsi un exemple de calcul fractale avec Matlab en utilisant LabVIEW ce qui devrait vous aider dans votre démarche.
    En vous souhaitant une bonne journée.
    Cordialement,

  • Passing arrays from matlab to vi-controls by activex

    Dear specialists,
    I am trying to set an array of doubles that is defined as a control in my VI by using:
    invoke(VIhandle, 'SetControlValue', mlarray)
    where mlarray is defined in Matlab as an 1xn array of doubles.
    error: ??? Dispatch : Exception occurred
    in routine: actxcli
    Reading an indicator array in the VI by 'GetcontrolValue' works fine.
    Also passing non-array variables works fine.
    How should I define my array in Matlab/Labview to make it work ?

    I do not have a copy of Matlab but I can help you search the web. Is your error from windows, matlab, or labview? I could find nothing on NI's site for actxcli. Is this the exact error message?

  • Calling user defined functions in Matlab Script Node

    Greetings!
    I am not successful in calling a user defined function inside a Matlab Script Node.
    The path has been added to Matlab, but the Matlab script node is not calling my function.
    I am calling it as follows:
    a= fcd(b,c);
    and the fcd.m file is calculating the 'first central difference' - works in Matlab, but not in LabVIEW:
    function MtxOut=fcd(MtxIn,dt)
    %MtxOut=fcd(MtxIn,dt)
    %first central difference method of finding instantaneous
    %first derivatives
    %MtxIn = MxN matrix of inputs
    %dt = time change between inputs
    %MtxOut = MxN matrix of first derivatives of inputs
    r=size(MtxIn,1);
    c=size(MtxIn,2);
    MtxOut(1,=(MtxIn(2,-MtxIn(1,)/dt;
    MtxOut(r,=(MtxIn(r,-MtxIn(r-1,)/dt;
    for i=2:r-1
        for j=1:c
            MtxOut(i,j)=(MtxIn(i+1,j)-MtxIn(i-1,j))/(2*dt);
        end
    end

    Matthew:
    What version of MatLab, LabVIEW are you using?. Also, what type of errors are you running into?.
    Thanks,
    Rudi N.

  • MathScript fir1 function vs. LabVIEW FIR VI

    Hi, I'd like to convert some Matlab/LabVIEW Mathscript function into LabVIEW block functions, because it's faster.
    One
    of the function I'm not sure is the FIR function: I have a Mathscrip
    function fir1(n,W), is "FIR windowed coefficients" its LabVIEW
    equivalent?  If yes, how should I match the parameters (e.g. is W the
    high or low curoff frequency? is Order n the same as the number of
    taps)? If no, which LabVIEW function should I use?
    Thanks.

    Hi,
    The corresponding VI in LabVIEW is FIR Windowed Coefficients VI. For the simple case b = fir1(n, w), you can use the way as the attached snapshot illustrates.
    Attachments:
    fir1.PNG ‏7 KB

  • PCI6115 アンチエイリアスフィルタの設定方法

    環境は、Windows2000, PCI-6115, NI-DAQ(Legacy)7.4.1です。
    LabViewではなく、Matlab(6.5.2), Data Acquisition Toolbox 2.2を使ってデータ収録を行っています。
    Matlabからサンプリングレートの設定やデータ収録などは問題なく出来るのですが、PCI6115についているアンチエイリアスフィルタとゲインの設定方法がわかりません。
    Matlabでなくとも構いませんので、Labview以外の環境でこれらの値を設定する方法を教えてください。
    よろしくお願いいたします。

    ara77 様
    平素より弊社製品をご使用いただき誠に有難うございます。
    日本ナショナルインスツルメンツ 技術部の櫻田と申します。
    アンチエイリアスフィルタの設定方法は、「NI 6115/6120 User Manual」のB-3ページに記載があります。
    こちらの記載によりますと
    「AI_Change_Parameter」関数の「paramID」引数に「ND_Digital_Filter」を与えます。
    さらに、「ParamValue」引数に与えるパラメータと、それに対応した周波数は次の通りです。
    ND_High:500kHz
    ND_Low:50kHz
    ND_None:フィルタ無し
    デフォルト設定は、フィルタ無しになっております。
    NI 6115/6120 User Manualは下記のリンク先からダウンロード頂けます。
    http://digital.ni.com/manuals.nsf/websearch/350F82C34DFF8BE586256D2C004E2759
    ゲインの設定方法は、NI-DAQ Function Reference Helpに記載があり、キーワード「gain」で検索可能です。
    こちらの記載によりますと
    「AI_Setup」関数や「AI_Read」関数等の「gain」引数でゲイン設定値を与えることにより設定可能です。
    PCI-6115で設定可能なゲイン設定値は下記の通りです。
    -2 (for gain of 0.2), -1 (for gain of 0.5), 1, 2, 5, 10, 20, 50
    スタートメニュー>>プログラム>>National Instruments>>NI-DAQ 内に、ヘルプファイルへのショートカットがありますので
    NI-DAQのAPI関数の詳細につきましては、Traditional NI-DAQ (Legacy)™ C Function Reference Help等
    (開発言語やバージョンによりインストールされているヘルプ名に違いがあります。)をご参照願います。
    尚、Matlabでの確認は弊方では出来かねます点をご了承願います。
    以上、よろしくお願い申し上げます。

  • System identification using labwindows?

    Hello,
    I have some linear models to test and need to identify the parameters using estimation algorithms like arx, armax, oe. I am doing that now with an old version of Matlab (2002!!) but since all my other programs run in LabWindows CVI (8.5.1), I would like t know if there is something like a system identification toolkit but not for Labview but for Labwindows! or some library that I can add... any ideas?
    Thanks, Kristel

    kristel wrote:
    I have some linear models to test and need to identify the parameters using estimation algorithms like arx, armax, oe. I am doing that now with an old version of Matlab (2002!!) but since all my other programs run in LabWindows CVI (8.5.1), I would like t know if there is something like a system identification toolkit but not for Labview but for Labwindows! or some library that I can add... any ideas?
    The best versions of Matlab are the old ones, they don't cost so much
    You really need to be looking for a system identification library written in C. I was a little surprised, when I had a quick trawl, that I couldn't find one so easily. The only toolkits that come up on Google searches seem to be the Matlab and LabVIEW ones. There's stuff like the Numerical Recipes implementations for estimation, that give you the building blocks, but you'd still need to be referencing Astrom, Goodwin & Payne, or another reference to complete the implementation.
    I'd be interested to know why you would really want to implement in C. Most system identification is offline, and which tool you use - C, Matlab, LabVIEW - is really immaterial.
    Martin
    Certified CVI Developer

  • Whenever I connet Usrp2 to computer, it says 'Unidentified device'

    Hi! I'm college student from Michigan.
    I am doing project with USRP2. My computer has Win7, 32bit, 1Gbps ethernet. Whenever I connect USrp2 with lan cable, first computer recognizes something is connecter. But it always fails to realize that it is Usrp2. So it keeps saying 'Unidentified device'. And NI Usrp, or Usrp Hardware drive can not find the device.
    Is it the matter of computer, or the device. We checked that it turns on correctly. Please help me. I have to do this project ASAP,

    Hi,
    which platform are you using for programming (MATLAB/ LabVIEW)?
    I suggest you check the driver is installed?
    I you are using MATLAB look up on mathworks website wether your matlab version is compatible with the usrp2. Particularly if you still use earlier version of matlab you migth need to install the support package available here
    Best regards

  • How do I troubleshoot installation/distribution of a LabVIEW .exe which processes data using Matlab when it works on some computers but not others?

    I've been given the unenviable task of troubleshooting and installing/distributing software written by a former co-worker. I've modified the LabVIEW code and built an .exe file. I've successfully installed the Labview .exe file on several computers, but it won't work on some others. What's more baffling is that I installed it successfully on one computer, uninstalled it, and tried reinstalling it with no success. In fact, it's a new error (Dr. Watson for Windows NT application error). It doesn't help that I have different versions of LabVIEW and Matlab on the target computers. Some have LabVIEW 5.1, some
    have 5.0, and some don't have it at all. Some have Matlab 5.2, some have 5.3 (R11) and some have 6.0 (R12). It's also not clear to me where the Matlab m files should be located. I'm not sure if it's a LabVIEW Runtime Engine problem, or if it's a Matlab problem. I've also wondered how LabVIEW and Matlab talk to each other. When LabVIEW calls Matlab, it seems that Matlab is running in the background. In other words, clicking on the Matlab Command Window and typing "whos" or any other command/variable doesn't work.

    Jay del Rosario wrote:
    >
    > How do I troubleshoot installation/distribution of a LabVIEW .exe
    > which processes data using Matlab when it works on some computers but
    > not others?
    Poke around zone.ni.com and
    http://digital.natinst.com/public.nsf/$$Search/ .
    Good luck, Mark

Maybe you are looking for

  • How to add a new field in OIM Self Services Page

    Hi All, I need to add some custom attribute in OIM self Services page. Please let me know how to do it Thanks&Regards Sri

  • Setting Display Size in X

    Connecting a laptop to a new 42" Panasonic monitor (TC-L42E60), I found the display to be blurry. xrandr shows this line: HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 698mm x 392mm Use the same hardware, on my co-worker's

  • Lightroom 4 would not import images from my camera

    I have been importing and editing photos from a Canon Powershot S3-IS and never had a problem until today. This is the first time I've tried it with the latest upgrade to lightroom. I first tried importing from my camera memory card slot. Lightroom f

  • Error in page navigation

    I have a login page which navigates to the next page ones logged in and i have to validate that only a single user can login i.e, the same username and password is valid. If not an error message is displayed that the login data is not valid. I have d

  • Airport Connection won't remember network

    How can I get Snow Leopard to remember my airport extreme network. I have the box checked to remember the network as I sign on but it will not remember. The next time I open my MacBook Pro and wake it from sleep I have to sign on to the network all o