I would like to run Matlab mex file in Labview - how to do this?

Hello
In order to run Labview without Matlab beeing installed I have to compile the matlab files, right? So I also want to run those files in Labiew, and I do not know how. Anybody can help.
Thanks a lot
kind regards
Pawel

Pawel,
You can create a DLL in Matlab. To compile this DLL you should use both LabVIEW and Matlab typedefs. The Math Works offers a C library with functions for accessing Matlab files. You can use this library to create a DLL. Then import the DLL into LabVIEW by using Call Library Function VI located under Functions>>Advanced palette.
To call Matlab scripts from within LabVIEW, you have to have Matlab installed on the machine. The Script Node (Matlab script) function is located in Functions>>Mathematics>>Formula palette.
Here are some useful links:
- description of those C functions
[http://www.mathworks.com/access/ helpdesk/help/techdoc/apiref/apiref. shtml]
- how to download and compile (it will be a little bit different if you want to use CIN)
[htt
p://www.mathworks.com/support/ solutions/data/8757.shtml]
- MAT-file format if you want to develop your own LabVIEW utility to do the job
[http://www.mathworks.com/access/ helpdesk/help/pdf_doc/matlab/ matfile_format.pdf]
Hope these suggestions pointed you in the right direction.
Zvezdana S.
National Instruments

Similar Messages

  • I have mac OS X, Photoshop CC 64 bit and and i would like to run 32 bit plugins.. How may I do this ?

    I have mac OS X, Photoshop CC 64 bit and and i would like to run 32 bit plugins.. How may I do this ?

    As said already by JJMack, you cannot do that.
    Photoshop CS6, CC & CC 2014 only install a 64-bit version on Mac OS.
    Photoshop CS5 installs a version that can launch in either 32 bit or 64 bit when you install on a 64-bit version of Mac OS (Mac OS X 10.5 or later). If you are using Mac OS X 10.4 or earlier, then Photoshop only installs the 32-bit version.
    Photoshop CS4 installs a 32-bit version only.
    64-bit OS benefits, limitations
    ~ Arpit

  • Calling Matlab MEX Files in LabView ?

    What is the procedure to call a MATLAB MEX File in Labview?

    Nope Battler.
    I didnt find any help regarding Matlab MEX DLLs on that link by Chris.
    I presume if they are keeping mum, there is no solution possibly.
    Btw, I migrated my testing from LV to MSVC.
    Its a lot more easier to call  Matlab MEX DLLs from MSVC.
    http://www.mathworks.com/support/tech-notes/1600/1605.html

  • I have photoshop elements 13 and would like to run portrait pro 12  standard hw do i do this on a windows 8 laptop

    hello i have phtoshop elements 13 and would like to add portrait pro 12 as a plugin i am running a windows 8 laptop with correct spec please help asap

    I don't believe the standard edition includes a photoshop or photoshop elements plugin
    http://www.portraitprofessional.com/editions/

  • I have a Mac Pro with Snow Leopard and FCP7 installed I would like to run FCP7 and FCPX on the same computer, is this OK

    I have a Mac Pro (early 2009) with Mac OS X version 10.6.8, I use this for video editing with FCP7. I would also like to install FCPX, my operating system is Snow Leopard. Is this OK or do I need to up-grade my operating system. I want to be able to use FCP7 and FCPX on the same Computer. Your advise will be appreciated.

    You will see from the hardware spec that the latest version of FCP X requires Mavericks.
    The Mavericks spec shows you can upgrade to Mavericks on your Mac Pro.
    Ensure you have a bucket full of RAM installed.
    Final Cut Pro X spec
    Mavericks hardware spec

  • I have a MacBook - MAC OS X Version 10.6.8 -- I would like to run WordPerfect 9 by Corel Office on it.  Is there any way to do it?

    I have a MacBook - MAC OS X Version 10.6.8 -- I would like to run WordPerfect 9 by Corel on it.  Can this be done?

    No, you can't run that on Mac OS X; what makes you think you could?
    If you want to run Windows software on a Mac, you need to install Boot Camp and Windows, or use other virtualization software such as Virtual Box, VMware, or Parallels to install and run Windows.

  • I would like to import the .abcdp files from my old, restored HD (was running mountain lion when the mac crashed) to the addressbook of my new mac (10.9.5)

    I would like to import the .abcdp files from my old, restored HD (was running mountain lion when the mac crashed) to the addressbook of my new mac (10.9.5).
    Please advise.

    I don't have access to one.
    I don't understand why the new address book is not backwards compatible with the data from former OS X versions.
    In 10.8. preview was still able to read the files although it was already impossible to import them into the address book. But Why?

  • I would like to read a ASC11 file ?

    I would like to read a ASC11 file ? i would like to read the ASC11 file but there is a 2 lines header in this file.and i dont wanna read this header.this ASC11
    file has 12 columns and then i wanna convert them to
    binary file.
    any example would be great.
    thanks

    i am sorry that you are getting upset due to my repetitions of question.
    well i have looked into example read from text file
    and tried with this but it did not solve my problem.
    in this example this function is reading data line
    by line and i dont want to read the data line by line.
    for this reason i removed the inner while loop.
    to skip the 2 lines header when i call read file
    function 2 times. i still get the header in my result file.
    when i write the data of 12 columns and N number of rows by calling write to binary function,i tried to read this binary data with the help of Matlab. i get
    only one column and it look likes that it is transposed.the output of the read function is 2 dimensional array. i try to write this 2 dimensional
    array by call
    ing write to binary function and i also
    want to display the 2-Dimensional data in 2 dimensional
    indicator array.
    this all things i tried already but could not get the
    desired result. therefore i wrote again.
    any way if you are upset then take my questions back and thanks for your tips.

  • I would like to run the vi first and then press the safe button to write it to disk.i am sending you the vi. please can you tell me how can i correct this vi?

    i am running some vis in frames of sequence frome frame number 1 to frame 10.after this i would like to create one other vi with some strings and i want to save it to disk with a save button. i am opening,writing and closing the data.what i want is that a save button to write the file .moreover i would like to run the application first and then press the safe button to write it to disk.i am sending you the vi. please can you tell me how can i correct this vi?
    Attachments:
    savestrings.vi ‏80 KB

    Here's a picture of a while loop around part of your code. All it's doing is waiting to write until the user presses the save button. If you need it to do more, explain in more detail.
    Attachments:
    While_Loop.jpg ‏17 KB

  • I would like to read a text file in which the decimal numbers are using dots instead of commas. Is there a way of converting this in labVIEW, or how can I get the program to enterpret the figures in the correct way?

    The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!

    You must go in the labview option menu, you can select 'use the local
    separator' in the front side submenu (LV6i).
    If you use the "From Exponential/Fract/Eng" vi, you are able to select this
    opton (with a boolean) without changing the labview parameters.
    (sorry for my english)
    Lange Jerome
    FRANCE
    "Nina" a ecrit dans le message news:
    [email protected]..
    > I would like to read a text file in which the decimal numbers are
    > using dots instead of commas. Is there a way of converting this in
    > labVIEW, or how can I get the program to enterpret the figures in the
    > correct way?
    >
    > The program doest enterpret my figures from the text file in the
    > correct way since the numbers contain dots instea
    d of commas. Is there
    > a way to fix this in labVIEW, or do I have to change the files before
    > reading them in the program? Thanks beforehend!

  • My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?

    My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?  Do I have to go to Settings>General>reset>Erase all content and settings before I can get the newer ios?  If this is the case, how can I ensure all my content is backed up prior to erasing it all. Is there anyway to check to ensure the backup is complete and comprehensive?  THanks!

    A second generation iPod touch can't be updated past 4.2.1.
    (88824)

  • In Address Book, I would like to have a field "File As". So, l can list "Joe Smith", as "The Smith Family". I will use this when I print labels for Xmas cards and such. Thanks!

    In Address Book, I would like to have a field "File As". So, l can list "Joe Smith", as "The Smith Family". I will use this when I print labels for Xmas cards and such. Thanks!

    In Address Book, I would like to have a field "File As". So, l can list "Joe Smith", as "The Smith Family". I will use this when I print labels for Xmas cards and such. Thanks!

  • I would like to upload a excel file using jsp

    Hi,
    I would like to upload the excel file using jsp in my netbeans ide. Please help.
    I don Know what is the error in this jsp file. It is not showing any thing and the file is also not getting uploaded.
    Please gothru the code below.
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ page import="java.io.*" errorPage="err.jsp"%>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="<html:rewrite page="/design.css" />" rel="stylesheet" type="text/css">
    <title>Upload Page</title>
    </head>
    <body onKeyDown="DisablingBackFunctionality()" onLoad="DisablingBackFunctionality()">
    <html:form action="download" >
    <div style="position:absolute; left:100;top:200;">Select an excel File :<input type="file" name="uploadfile"></div>
    <div style="position:absolute; left:190;top:250;"><input type="submit" name="Submit" value="Read"></div>
    <div style="position:absolute; left:336;top:250;"><input type="reset" name="Reset" value="Clear"></div>
    mainmenu
    </html:form>
    </body>
    </html>
    <%
    String contentType = request.getContentType();
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0)) {
    DataInputStream in = new DataInputStream(request.getInputStream());
    int formDataLength = request.getContentLength();
    byte dataBytes[] = new byte[formDataLength];
    int byteRead = 0;
    int totalBytesRead = 0;
    while (totalBytesRead < formDataLength) {
    byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
    totalBytesRead += byteRead;
    String file = new String(dataBytes);
    //out.println("<br> file :"+file);
    String saveFile = file.substring(file.indexOf("filename=\"") + 10);
    //out.println("<br> savefile :"+saveFile);
    saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
    //out.println("<br> now file1 :"+saveFile);
    saveFile = saveFile.substring(saveFile.lastIndexOf("\\") + 1, saveFile.indexOf("\""));
    //out.println("<br> now file2 :"+saveFile);
    //out.print(dataBytes);
    String ext = "";
    if (saveFile.indexOf(".") != -1) {
    ext = saveFile.substring(saveFile.lastIndexOf("."));
    int lastIndex = contentType.lastIndexOf("=");
    //out.println("<br>lst index of"+lastIndex);
    String boundary = contentType.substring(lastIndex + 1, contentType.length());
    //out.println("<br> boundary"+boundary);
    //out.println("<br> file :"+file);
    int pos;
    pos = file.indexOf("filename=\"");
    //out.println("<br> now 0 :"+pos);
    pos = file.indexOf("\n", pos) + 1;
    //out.println("<br>now 1 :"+pos);
    pos = file.indexOf("\n", pos) + 1;
    //out.println("<br>now 2 :"+pos);
    pos = file.indexOf("\n", pos) + 1;
    //out.println("<br>now 3"+pos);
    int boundaryLocation = file.indexOf(boundary, pos) - 4;
    int startPos = ((file.substring(0, pos)).getBytes()).length;
    int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
    FileOutputStream fileOut = new FileOutputStream("D:\\" + saveFile);
    //FileOutputStream fileOut = new FileOutputStream(saveFile);
    //fileOut.write(dataBytes);
    fileOut.write(dataBytes, startPos, (endPos - startPos));
    fileOut.flush();
    fileOut.close();
    session.setAttribute("fil", saveFile);
    //out.println("File saved as " +saveFile);
    %>
    <script type="text/javascript" >
    function DisablingBackFunctionality()
    var URL;
    var i ;
    var QryStrValue;
    URL=window.location.href ;
    i=URL.indexOf("?");
    QryStrValue=URL.substring(i+1);
    if (QryStrValue!='X')
    window.location=URL + "?X";
    </script>
    Please let me know the result as soon as possible. Its my very urgent.
    Thanking Yu,
    Muthu Kumar.R

    No.
    Mylenium

  • Would like to move iPod touch files to my new Windows 8 computer -- but can not see hidden files

    Would like to move iPod touch files to my new Windows 8 computer -- read on how to do this, but this involves being able to see the hidden fiels -- but can not see hidden files...any suggestions. Would like to transfer these files from iPod Touch to new laptop without software -- is that possible -- if not can anyone recommend a good free software to use?

    There is no way to do so without software. I recently had a similiar task and was suggested to use iExplorer. It worked like a charm. 
    Refer to this page for iExplorer
    Here is the page I was helped with on this task for reference: Export Songs
    Hope this helps!
    PSkilton

  • I would like to zip two .Txt files in java

    hi all,
    i would like to zip two temporaray files(.Txt) in java

    Do you want to write a part of it yourself or do you want us to prepare you a complete solution? I provided you with a link to Java's zipping tutorial. If you took the effort to read it, you'll know there is an example zip.java.
    You can put the initialisation in your main, take what's in the for loop, put it into a function. I assume you can write a program that takes 2 command line parameters, and pass those params to your zip function and you've got it... That's how far I'll go for your solution!

Maybe you are looking for

  • Journal Creation for Prepayment PO

    Hi, We have the below requirement in 11i: We create a accrual PO for one year for rent ( eg - PO for a rent of Rs.12000 for the period Apr 2010- Apr 2011 ). Every month we run reports to fetch details about 'Partially paid' and 'Fully Unpaid' POs , e

  • Applying color to picture boxes with siloed images

    I have picture boxes that contain photos that were siloed in photoshop. When I place in InDesign, I want to put a color in back of the image. When I try the color sits on top of the image as well as filling the background please advise. thanks

  • Xml data formatting

    Hi everybody! I'm trying to output some xml data using this query: select xmlelement("Sectie",      os1(s.cods, trim(s.den),      cast ( multiset(           select p.codp, p.den, p.pret           from produse p, vanzari v           where p.codp = v.c

  • Encore CS6 always transcodes 1440x1080 h264 video imports

    If I encode an interlaced 1920x1080 files with x264 I can import it into encore and it will not transcode. If I import a 1440x1080 file into encore it always wants to re-transcode. The only clue I have is that it does not get the pixel aspect ratio r

  • Cannot open CS3 from Lightroom

    Lightroom will not now open the image into CS3. Worked OK before. Any idea's, please.