Matlab plot figure in Labview

Is there a way to directly display a Matlab plot figure within the front panel of a VI? I know one option is to save the plot as a .jpg or a 2D image array. Is there a way I can have the created plot figure be displayed in an image box within the vi front panel instead of as a separate matlab figure.
Hoping to avoid re-engineering the figures using the Labview plot options.

Art,
If you are reading data returned from matlab, why not use some of the LabVIEW plots to display that data on its front panel? Do you necesarly want to see matlab's plot?
The ways to display actual matlab plot on a front panel, would be either as an image (which seems you are trying to avoid) or if matlab has an activeX control for plot, then in the activeX container.
Zvezdana S.

Similar Messages

  • I have a problem with simulation in Matlab 6.5 and LabVIEW for PID controllers

    I have a problem with simulation in Matlab 6.5 and LabVIEW. I have some methods for granting PID controllers in MATLAB to go but not LabVIEW. International Teams degree to transfer two but when I go past the fourth degree no longer work. We changed the formula for calculating the parameters for grade four and gave me some good values for Matlab award but when I put on LabVIEW have not settled. formulas are available in PDF and are. Please help me and me someone if possible. Thanks
    lim.4 generation parameters in MATLAB program and comparison methods are for second-degree transfer function.
    Solved!
    Go to Solution.
    Attachments:
    Pt net.zip ‏2183 KB

    This is the VIs what i try to make,but is not work. This pdf. document was used to create last VIs PID. thenk you for your colaboration.
    Attachments:
    PID create by me.vi ‏312 KB
    tut_3782.pdf ‏75 KB

  • 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

  • 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

  • Upgrading to MATLAB 6.1 breaks LabView interface

    I had a LabView 6 application which worked fine using MATLAB 6.0 (R12). I upgraded MATLAB to 6.1 (which changes the installation directory) and now LabView cannot start MATLAB. I reinstalled LabView, but that didn't help.
    What's up?
    Thanks,
    Chris Daft

    Hello all,
    For the complete description of this problem and its solution, please read the KnowledgeBase article entitled "LabVIEW Does Not Interface Properly with MATLAB 6.1". It explains the cause of the problem, and gives an updated DLL that corrects it.
    Have a pleasant day,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Waveform graph plot legend in labview 8.5 won't respond to arrow keys?

    I heard labview 8.5 fixes most of the problems that plague 8.2, so I recently installed it to try it out and see if it is worth the effort of another upgrade.  Messing around today, I found an issue that wasn't related to the installer itself.
    The plot legend on a waveform graph doesn't appear to respond to arrow keys for precise placement.  It doesn't matter whether auto-size plot legend is turned on or off.  When I want to place a plot legend very precisely, just like with any other labview control I like to use the arrow keys to get things perfectly aligned.  I want to make the plot legend perfectly in the corner of the graph but its very hard to get it placed right with just the mouse.  In labview 8.5 it seems like plot legends no longer respond to arrow keys.
    Can anyone confirm this or know of a way to precisely place the plot legend in labview 8.5?
    -Devin
    I got 99 problems but 8.6 ain't one.

    Ben,
    I checked the snap to grid hypothesis. Even when activated the arrow keys still allow an accurate positionning of the objects at pixel level.
    That's so nice that I changed my setup. I now have a reasonnably large spaced grid (50 pixels) with an invisible grid (contrast adjusted to zero). That should make object positionning and dimensionning much faster than before.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Calling matlab 6.0 from labview

    I need know how to start Matlab 6.0 from Labview, and I will need to pass strings of script commands (for example, a=10;b=5;c=b/a;disp(c)) to Matlab to be executed. And Labview will need to get the result (value of c) back. Thanks for all the help!

    You can use the matlab script funtion under Functions»Mathematics»Formula»MATLAB Script
    Also you can find the matlab script examples in the examples»communication»Importing MATLAB Script.
    I hope this helps... Have fun
    Ogulcan

  • Plot editor in LabVIEW.

    Hello,
    In MATLAB there is an option to save the plot as *.png or other formats and also somethink like *.fig. Later when the user wants to check the plot he can load the *.fig file into the figure editor and can be edited which makes easy for the user to recheck the data.
    Is there any such functionality or driver or application even in LabVIEW?

    @ CMW: I am aware of this export option but it is used  for saving data in excel, as a graphics(*.png,*.bmp*.eps,...). This was not my question.  Even if you save the data in excel you still to write another program to import the data and plot. if you compare the option with matlab  first you plot the data and then save as *.fig. Later some time later may be after 100 years or so.... if you open *.fig file you can even recolor, change the label of the x and y axis and so on... Is labview has such a compatability??

  • Matlab plot integration and interaction on a front panel

    Hello all,
    I am making slow progress in the direction I have taken and was wondering if anyone had some experience/ideas with this. In my application I have the need to mesh a grid optimized to the geometry defined by several boundary points. For this purpose I found a MATLAB code developed by MIT which I would like to use. Right now I can define these boundary points in Labview, then call the matlab exe with this information and have the meshing code come up with a grid. I can get the grid point coordinates back to labview, but here is where the problems start. I am looking for a way to plot these discrete points, not as a curve but as separate dots or 'x'. Also, I would like to be able to click on a point and have Lab View read that points coordinates and store it in a variable.
    I assume there would be event structures involved, mouse click event, something like that, so I will be experimenting with that in the meantime, but right now I do not know how to even plot my points.
    Thank you advance.
    Alek

    There are a number of examples that ship with LabVIEW to show you how to do plotting. Open the Example Finder (Help -> Find Examples) and in the tree select Fundamentals -> Graphs and Charts. Also take a look at using cursors for graphs, which will give you coordinate values.
    Stop back when you've had a look at those and have a better idea of what you need to do.

  • Matlab scripts that function properly when run in matlab generating errors in labview

    Hi, I'm running LabView 7.1 and trying to use some matlab scripts in my lab view script.
    The code runs fine in matlab, but when I run it in lab view I get errors as follows:
    "LabVIEW:  Error occurred while executing script. Error message from server: ??? Error using ==> mrdivide
    Matrix dimensions must agree.
    Error in ==> extract_inl_NI at 46
     in array_test.vi"
    There is no division in line 46 (in fact it's a blank line).  Are there syntax changes that I may not know?  Or perhaps a way to compile my code to ensure it runs correctly?

    Hello,
    Can you post your code (VI) here, or better yet a simplified version of it which still causes a problem.  If you can also post a simple version which functions as you expect, that would be nice, but it sounds like the plotting problem is intermittent.  This should work, per the following document, but perhaps there's an issue:
    http://digital.ni.com/public.nsf/websearch/57FE03DA9C357E9486256A0D00739CA6?OpenDocument
    Hopefully after seeing the code I will have more ideas about what may be going wrong.  As a final thought, are there any parameters to the plot function which can be passed to make it show the plot or make it the active window... could this be a very strange UI feature?  I guess it will make more sense when I see the VI(s).
    I look forward to your repost!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Display value in MATLAB For loop on LabView

    Hi guys,
    I have a MATLAB script in my VI. The MATLAB script runs a For Loop. For each iteration of the For Loop, a variable say, count is incremented by 1.
    From what I am experiencing, the MATLAB script only outputs the final value of count when the script is done running.
    Is it possible to capture the value of count as each iteration is performed?
    PS : Using a LabView For loop is not possible for my case. Running the MATLAB code is mandatory.
    Thank you in advance!

    When the Matlab script gets called, it's actually passing control over to the Matlab ActiveX server. Thus, LabVIEW has to wait until that's done before it can proceed. What you're asking for is interprocess communication. That doesn't come provided "out of the box". You have to create it yourself. Some ideas were suggested here: http://forums.ni.com/t5/LabVIEW/Labview-Matlab-Exchange-Data/td-p/1408054

  • How to use matlab compiled DLL in Labview ?

    I have LV 8.5, and am unable to use a matlab compiled DLL in my LV code. I have tried the 'import'  command, but it does not list any functions. However, it does not show any errors during its execution. The existing solutions/responses to this question do not work either. I would also like to know of a way to deal with mxArray datatype. What is its equivalent in C (or any other high-level language) ? How do I retrieve an array that is returned from the matlab dll ?

    I'm assuming you have either Matlab installed or at the very least the Matlab Runtime, otherwise the DLL won't work. The "import" command relies on having a header file. Do you have one? You also need to make sure the DLL has been compiled so that it's compatible with LabVIEW. The most likely problem is name mangling, which also occurs when you try to compile a DLL written in C++. See this post, which contains links to useful posts.
    The mxArray datatype is a special datatype which is actually a structure. It's complicated. Your best bet is to create a C DLL that acts as an intermediary between the Matlab DLL and LabVIEW. If you are able to, you can, instead, simply call the Matlab code directly using the Matlab script node.

  • I can't find the MATLAB script node in labview

    We are using a MAC G4 with OS 9. We also have labview 5.1. I have looked under Mathematic>>Fomula in the tools palette and I cannot find the MATLAB script node.
    Is there an extra download that I need to get this MATLAB script node?

    The HIQ and MATLAB script nodes are only available in the full and professional development systems. If you have one of these versions, these nodes should be under the Mathematics>>Formula palette.
    If you have the base package of LabVIEW, you will not have access to these script nodes. Details about which options are included in which development packages can be found at:
    http://www.ni.com/labview/devchart.htm

  • Error generated when using Matlab 7.0 with LabVIEW 7.1

    The error (1047) states "Server: Inappropriate input array sizen" no matter what the input is. the script works fine without inputs but there seems to be a problem interpreting inputs. I get this error even when I run the scriptnode example for the Matlab script.
    Randall Pursley

    This is a fixable problem with the older versions of LabVIEW and Matlab, but a new problem with the latest version of Matlab. I have had to 'fix' this problem everytime Matlab upgrades and will probably just have to wait until NI comes out with a new fix to go with Matlab 7.0.
    Randall Pursley

  • Matlab script launched from labview

    Hi everyone,
    I need to run a matlab script controlling a network analizer from labview. I use labview to start the movement of the motors in some experiment. Then, once the movement starts, matlab should run a script to perform adquisition and treatment of the data. Could anyone give me some trick of how to launch the matlab script?
    Best

    Here is a link that looks to describe what you are asking
    http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/creating_a_matlab_script/
    Hope that helps.

Maybe you are looking for

  • How can I transfer a podcast feeds from one itunes account to another?

    For a couple of years we have been using a third party company to edit and submit our podcast feeds to itunes. They have been doing this using their own itunes account. After changing things round a little, I have now created an itunes account for ou

  • VM with remote access VPN without split tunneling

    Hello experts, I have customers who require to use VM in their laptop. These users also require to VPN to Corporate network  to do their job. However when they do remote VPN to corporate Network (ASA VPN concentrator) from their VM host machine, they

  • Call EJB from ABAP in NW2004s

    Hello everybody, I'm trying to call a EJB function from ABAP code in NW2004s. I search SDN for almost two days now but can't get it to work. Here is what I've done: - created a EBJ in SAP NetWeaver Developer Studio 7.0.11 (came with our NetWeaver ins

  • File retains font info, how can I delete it?

    When I open a file, FontAgent Pro will try and auto-activate fonts that I HAD used on the file, but am no longer. It looks like Photoshop is somehow hanging onto the old font info. Can I delete that information from the file? It is bothersome, becaus

  • Is anyone else experiencing repeated crashing of new iPad Air?

    My new iPad Air crashes at least 3-4 times per day when opening apps.  Not always the same one either.  Apps are all updated and work fine on my pevious generation iPad.