Labview controlling Matlab

I'm trying to get Labview 8.6 to programatically launch and run MATLAB 7.5.0.  We have routines currently written in MATLAB that interface with a third party's software to download data from some proprietary equipment.  Is there an ActiveX example or a better way to get Labview and MATLAB to talk nicely?  I've written a bare bones vi that will allow me to launch MATLAB but I keep getting an "Unexpected MATLAB operator" error when I try to use the Execute method on the MLAPP.DIMLApp Invoke Node.  I'm not even sure if this is the right approach for what I'm trying to do.
I've searched the forums for hours and have found a couple of clues but most of the comments are to use MathScript or MATLAB Scripts and I don't think these will allow me to retain the comm functionality with the other software.  
Ultimately, it would be nice if I could remotely launch MATLAB and run selected .m files.  I would also need to pass small amounts of data back and forth from the Labview GUI to the MATLAB back end.  Any help would be greatly appreciated!
Larry 

I agree, the VNC route is overkill.  What I think you should do is write a standalone LabVIEW application that reads an INI file and executes the desired M-files.  To control the program remotely over a network, simply incorporate a Remote Front Panel and webservices into theLabVIEW VI. Just go toTools --> Web Publishing Tool to add this functionality to your VI.  Also make sure that the appropriate settings are enabled in the Web Services section of Tools --> Option.  The LabVIEW help should have all the information you need to get going.
Then what you will have is a LabVIEW executable (only LabVIEW runtime engine needs to be installed on that machine, and MatLAB of course) running on the remote machine that you can control through your web-browser on the machine you are sitting at.  Follow the links below for some more information.
Developing Remote Front Panel LabVIEW Applications
Web Publishing Tool Dialog Box
Chris Bakker
National Instruments
Applications Engineer
Check out LabVIEW 2009 and the New X-series DAQ!

Similar Messages

  • How to interface LabVIEW to Matlab?

    Hallo everyone,
    I have a function written in Matlab that does some calculations, the final result which is a number should be sent to LabVIEW to do something else. I want to know what is the best method to do this, ActiveX, TCP/IP or something else. why do I need this? because both programms were developed apart from each other, but know should be connected and it would take more time to rewrite either one in another software.
    Thanks in advance!

    Ive tried but it doesnt help. My matlab code is extremely complicated its all about fuzzy logic stuff and the labview program communicates with a microcontroller to control a pump.
    to make it simple, Ive 2 programms one in Labview and the other in Matlab, i want to give the inputs of the "matlab code" in LabVIEW, then matlab code works, then the result is delivered to Labview to do sth else. does anybody have any idea how to do this or is it even possible?
    Attachments:
    pic.jpg ‏34 KB

  • How do I use a LabView control element as ActiveX Control in another application?

    I am was trying to include some simple ActiveX Controls(sliders, buttons) in my VBScript. It worked with other ActiveX Components from the web, however I wasn't able to include the LabView ActiveX Controls because I was missing the necessary IDs. Moreover I was able to test the LabView control by inserting it into the VC++- Test Container. But I still can't find the necessary IDs...

    I don't believe that any of the LabVIEW controls (except for 3D Graphs) are ActiveX controls so I'm not sure what control you were able to insert into the VC++ container. What's the exact name of the control? NI does have ActiveX controls that are part of Measurment Studio so maybe it's one of those that you're using?

  • I want to use labview controls in VB ? how do i do it

    i want to use labview controls in VB ? how do i do it?

    The easiest way to do this is to create a LabVIEW DLL and call it from vb. So write a vi in labview with the front panel you want and then compile it into a dll. The only problem with this is that when vb calls the dll nothing else can happen in vb. Hope this helps.
    BJD1613
    Lead Test Tools Development Engineer
    Philips Respironics
    Certified LV Architect / Instructor

  • Controlling Matlab via TestStand COM Objects

    I am attempting to control MATLAB via teststand activex com objects.  I set up my module to use the matlab 7 automation server, and when I try to run the sequence, I get this error:
    "Create New Object" in automation call failed.
    No such interface supported
    One reason this can occur is if the interface of your COM server cannot be marshaled. This can happen if your server is not using the default OLE marshaling implementation and does not implement its own proxy and stub code. If you write your server using Visual C++ you can add the oleautomation attribute to your interface in order to use the default OLE marshaling implementation. Alternatively, COM does not require marshaling if the server's threading model is the same as the client thread's apartment. You can try changing your server's threading model or the client thread's apartment to avoid the need to marshal the interface."
    Anyone know how to fix this?
    -Joey

    It turns out this issue was a bug within Matlab itself.  The correct registry keys were not being added for the Matlab ActiveX server with version 7.2.  The bug report is located here.  Once the correct registry keys were added there was no problem calling the Matlab ActiveX interface.
    Pat P.
    Software Engineer
    National Instruments

  • How to use Expression Edit in the LabVIEW control (teststand category)?

    Hi All,
    I am developing the teststand specify module using LabVIEW. I found that is Expression Edit control in the Labview Controls pallete. does anyone have any example?
    I have enabled the expression browser button but I dont know how to link it to the teststand. Pls advise.
    Thanks
    - toko -

    Hey Toko,
    You basically need to refer the button to the sequence context.  For a great description of this and an example, please refer to this previous discussion forum:
    http://forums.ni.com/ni/board/message?board.id=330&message.id=10609&requireLogin=False
    Thanks,
    Andy McRorie
    NI R&D

  • How to create a DLL for LabVIEW in MatLab

    I want to use MatLab-Code from an M-file in LabView without MatLab. So i decide to use external code in a DLL. Can anybody give me some hints - how to do? (How to create, how to use?)
    Used System Windows 98, LabVIEW 6.1, MatLab 6.1 R12.1
    Thanks

    Hi,
    I use Matlab-Code in Labview and it's don't need create a dll. The LV was a tool, matlab script, you can write your code Matlab here. see the examples of LV.I think the lV 6.1 have.
    Dll it's very complicated

  • LabView Control System Engineer Job Opening - Seattle

    LabView Control System Engineer Job Opening - Seattle
    Seattle Safety is looking for a qualified individual to fill an
    opening for Software Controls Engineer.  Seattle Safety designs,
    manufactures, and installs advanced crash test sled systems that are
    used in automotive and aeronautical industries.  The duties of the
    Controls Engineer include:
    Maintain existing control software code base, written in LabVIEW (including the Real-Time Module).
    Improve existing software based on requirements and requests from customers and colleagues.
    Troubleshoot and repair any functional software bugs that may arise.
    Continuously investigate opportunities for system improvement through new or alternative hardware or software approaches.
    Support installations of crash test equipment at on-site locations worldwide.
    Provide technical support for team members locally and abroad
    in subject matters concerning performance, installation, and
    maintenance of software and data acquisition hardware.
    Maintain professional relationships with suppliers and vendors in order to keep up with industry developments.
    Furthermore, the ideal candidate would possess the following skills:
    Beginner-to-intermediate knowledge of LabVIEW.
    Passing understanding of binary logic.
    Familiarity with at least one low-level programming language (Assembly, C, COBOL, etc)
    Ability to analyze empirical data against theoretical predictions to enhance and improve mathematical model of system.
    Familiarity with data acquisition concepts and hardware.
    Ability to troubleshoot electrical and electronic systems at the module and equipment level.
    Discipline and organization with respect to software
    maintenance and version management.  Experience with source
    configuration management tools a plus (CVS, ClearCase, Perforce, etc.)
    Experience with sophisticated high-speed feedback control systems
    General skills in areas such as frequency domain analysis,
    systems analysis, digital filtering, and both linear and non-linear
    signal processing.
    BSCS, BSEE, or BSCmpE are preferred but not required depending on experience.
    Ability to work both alone and with colleagues to solve problems and to weigh the merits of differing approaches.
    Pay is commensurate with skills and qualifications of the applicant.
    Contact:
    Seattle Safety
    John Covey
    (253)395-4321
    822 3rd Ave S
    Kent, WA  98032
    [email protected]

    Dear Sir / Madam,
    I am an experienced engineering professional skilled in Post Silicon Validation by Automating using LabVIEW, Power Measurements, Jitter Measurement & Analysis, Audio Characterizations, Silicon Validation Test Cases, Multi-Channel Data acquisition and Triggering using NI DAQ Cards, Control Systems, Serial Communications using VISA and Serial I/O Interface, Code Native Interfaces, Call Library functions to interface with third party and custom dlls, ATMEL and PIC Micro Controller programming, Temperature Controllers like Honeywell, ESPEC-641, TestEquity 115, Hand held terminal programming to drive servo motors, C/C++/VB Programming for developing embedded applications.
    Good experience on Windows API, protocol implementations, ARM11 & ARM7TDMI on-chip programming using Register Map and Pinout Specs using C/C++ Metrowerks Code Warrior and MULTI-ICE for ARM Debugger.
    Looking for L1/H1 Job
    Thank you for your time and consideration.
    Please find an attachment of my resume in MS-Word format.
    Sincerely yours,
    K.Sowjanya. B.Tech
    Message Edited by Support on 04-04-2008 08:39 AM

  • Senior LabVIEW Controls Engineer--GOLDEN, CO

    JOB DESCRIPTION
    Vehicle Projects Inc is seeking a full-time, senior controls engineer for the development and demonstration of high-power hydrogen-fuelcell rail vehicles. For background on our rail-vehicle program, please google the keywords: (“fuel cell locomotive” “vehicle projects”). Responsibilities of the position include:
    Overall fuelcell powerplant control system design, including integration with the vehicle control system
    Computer modeling and simulation of hybrid powerplant operation
    Design and development of complex LabVIEW control system applications
    Preparation of electrical drawings, specifications, and test plans
    Participation in laboratory and field testing of subsystems and vehicles
    Data analyses
    Part-sourcing and ordering of hardware
    Support of hardware-build activities
    Occasional technical support to other staff members’ projects, including research
    Travel to build-facilities, test sites, and demonstration sites (based on the past 12 months as a sample, this position requires 17 % of work-days on travel)
    QUALIFICATIONS
    The successful candidate must demonstrate the following qualifications:
    Self-motivation and ability to learn quickly
    Self-confidence to thrive in the high-risk, high-reward R&D environment
    8-10 years of experience with LabVIEW, including 4 years each with Realtime and FPGA Modules
    Experience with the National Instruments cRIO platform
    Experience with CAN communications
    Familiarity with Ethernet networking
    Ability to work closely with skilled trades people and understand the practical side of system design
    Excellent communication skills, including the ability to interface with multiple international design teams
    Excellent hands-on and troubleshooting skills
    MS degree in Electrical Engineering, Computer Science, or Controls Engineering is preferred
    Interest in scientific disciplines and having a scientific mindset are a plus
    While the ability to learn fuelcell and hydrogen technology is essential, in-depth knowledge of fuel cells and hydrogen is not a prerequisite for the appointment.
    COMPANY
    Vehicle Projects Inc (since 1998), based in Denver/Golden, Colorado, serves the transportation industry by developing and demonstrating prototype hydrogen-fuelcell vehicles that address worldwide societal problems such as energy efficiency, energy security, and global climate change. Once a fuelcell prototype vehicle is built and tested, we provide it to industry for demonstration under working conditions.
    The company has two independent associated nonprofit research organizations: Fuelcell Propulsion Institute (since 1996) and Supersonic Institute. The Fuelcell Propulsion Institute laid the foundations for the current development of railway locomotives. Supersonic Institute conducts research and educates the public on supersonic vehicles fueled by hydrogen.
    Industrial clients and co-funders of our projects have included Placer Dome Mining Company, Newmont Mining Corporation, Caterpillar, Mitsui & Co (Japan), and BNSF Railway Co. Government funders have included the US Department of Energy, US Department of Defense, National Institute of Occupational Safety and Health (NIOSH), Government of Canada, and Government of Japan.
    Our state-of-the-art facility, constructed in 2007, is part of the burgeoning west-Denver (Golden) corridor of renewable-energy companies, including the nearby National Renewable Energy Laboratory (NREL). Metro Denver (www.metrodenver.org), with a population of three million, is a well-managed city located at the base of the Rocky Mountains. With an average annual temperature of 50 F, low humidity, and 300 days of sun, its moderate climate is one of many attractive features of the city. Its citizens are in the top national percentiles for fitness, health, and formal education.
    We believe our company’s most important asset is its people. New employees are selected with care, and successful employees are nurtured and encouraged to remain with the company through empowerment, highly competitive compensation, a generous benefits package, job-related training, profit-sharing, and a pleasant work environment.
    COMPENSATION
    A person of the caliber we are seeking will receive an above-average salary, employment contract, and a generous benefits package, including profit sharing.
    APPLICATION
    Apply by 4 April 2011 by sending an email-attached MS-Word letter of application, resume, salary history, and the names and contact information of three references. A portfolio in support of the application is desirable. The letter of application, addressed personally to the president of the company and using proper style for a business letter, should specifically address your qualifications and experience to undertake the stated responsibilities. Only applicants who write such a letter will be considered. The selection process includes more than one interview, a LabVIEW proficiency test, and a writing-skills evaluation. Please send application materials to [email protected].

    I am a control systems engineer with 16 years of experience designing and building large systems using LabVIEW in Albuquerque NM  and working currently for TEAM Technologies Inc. almost 15 years.
    I hold a Master Degree in Space Power Systems graduated from Moscow Aerospace University.
    I invented and implemented a message-driven and scripting controlled LabVIEW architecture which I presented couple times at NIWeeks, published in LTR, and local NI and ALVIN seminars. This architecture I was successfully used to develop projects for SNL (National Lab), WSTF (NASA), EMCORE, and etc. firms and organizations.
    My expertise areas are: 1) Mechanical Engineering; 2) High Temperature Energy Converters; 3) Thermodynamics 4) Digital and Analog Electronics; 5) Programming: LabVIEW,  C, embedded microprocessors (ARM, Cortex); Distributed hard real-time control with PXI and Compact RIO instrumentation.
    I have published 45 scientific papers and have six patents.
    I am NOT a certified NI LabVIEW programmer, because I believe that scientists and engineers has to have Degree Diploma only.
    LabVIEW is just a programming tool nothing more.
    Regards,
    Youri Djachiachvili
    Aerospace Engineer.
    email: [email protected]

  • High-Level LabView Control System Engineer Job Opening - Seattle

    High-Level LabView Control System Engineer Job Opening - Seattle
    Seattle Safety is looking for a qualified individual to fill an opening for Senior Software Controls Engineer.  Seattle Safety designs, manufactures, and installs advanced crash test sled systems that are used in automotive and aeronautical industries.  The duties of the Controls Engineer include:
    Maintain existing control software code base, written in LabVIEW (including the Real-Time Module).
    Improve existing software based on requirements and requests from customers and colleagues.
    Troubleshoot and repair any functional software bugs that may arise.
    Continuously investigate opportunities for system improvement through new or alternative hardware or software approaches.
    Support installations of crash test equipment at on-site locations worldwide.
    Provide technical support for team members locally and abroad in subject matters concerning performance, installation, and maintenance of software and data acquisition hardware.
    Maintain professional relationships with suppliers and vendors in order to keep up with industry developments.
    Furthermore, the ideal candidate would possess the following skills:
    Intermediate-to-advanced knowledge of LabVIEW.
    Ability to analyze empirical data against theoretical predictions to enhance and improve mathematical model of system.
    Familiarity with data acquisition concepts and hardware.
    Ability to troubleshoot electrical and electronic systems at the module and equipment level.
    Discipline and organization with respect to software maintenance and version management.  Experience with source configuration management tools a plus (CVS, ClearCase, Perforce, etc.)
    Experience with sophisticated high-speed feedback control systems
    General skills in areas such as frequency domain analysis, systems analysis, digital filtering, and both linear and non-linear signal processing.
    BSEE, BSME or BS Physics may be a good fit, but not limited to these areas.
    Ability to work both alone and with colleagues to solve problems and to weigh the merits of differing approaches.
    Pay is commensurate with skills and qualifications of the applicant.
    Contact:
    Seattle Safety
    Tom Wittmann
    (253)395-4321
    1222 6th Av N
    Kent, WA  98032
    [email protected]
    Attachments:
    ServoSled Brochure.pdf ‏1215 KB

    Dear Sir / Madam,
    I am an experienced engineering professional skilled in Post Silicon Validation by Automating using LabVIEW, Power Measurements, Jitter Measurement & Analysis, Audio Characterizations, Silicon Validation Test Cases, Multi-Channel Data acquisition and Triggering using NI DAQ Cards, Control Systems, Serial Communications using VISA and Serial I/O Interface, Code Native Interfaces, Call Library functions to interface with third party and custom dlls, ATMEL and PIC Micro Controller programming, Temperature Controllers like Honeywell, ESPEC-641, TestEquity 115, Hand held terminal programming to drive servo motors, C/C++/VB Programming for developing embedded applications.
    Good experience on Windows API, protocol implementations, ARM11 & ARM7TDMI on-chip programming using Register Map and Pinout Specs using C/C++ Metrowerks Code Warrior and MULTI-ICE for ARM Debugger.
    Looking for L1/H1 Job
    Thank you for your time and consideration.
    Please find an attachment of my resume in MS-Word format.
    Sincerely yours,
    K.Sowjanya. B.Tech
    Message Edited by Support on 04-04-2008 08:39 AM

  • Changing language of LabView controls?

    I just need confirmation. If LabView controls, like a graph, have a context menu then this context menu will be first in the language of the LabView IDE it was used with. If I build an application, then the builder includes the LabView RTE. This will also be the same language version as the IDE.
    Now , if I wanted to change the context menu language let's say to french, would it be sufficient for the user just to install a french version of the RTE? Is this correct?
    Solved!
    Go to Solution.

    You could you Import/Export strings from the menu bar to import other language text to the control on the FP.
    A programatic code for this is possible.
    -FraggerFox!
    Certified LabVIEW Architect, Certified TestStand Developer
    "What you think today is what you live tomorrow"

  • Labview control caption passed as parameter name

    Hi,
    Why is the Caption of a Labview control, when the control is assigned as a terminal on the VI connector, passed to Teststand as the parameter name ?
    I would have expected the Label of the control to be the parameter name passed to Teststand.
    In the past I've used the control's Caption to locally modify the front panel text, and the Label is used to represent the data's\variables name.
    regards,
    Gary.

    Hi Gary,
    My name is Kevin and I am an Application Engineer at NIUK.
    The original idea was to show the caption (if not empty) of a control instead of the label in case the user decides to localized the control by modifying the caption which we can dynamically change. The LV adapter stores both the caption and the label. The caption is only shown if it is not empty.
    Changing the behavior to always show labels will not affect compatibility since we already store them. Most of the time, the label and the caption are the same and if they are not the same I don't see a problem with just showing the caption. I have never seen a VI that shows both the caption and the label at the same time and if the caption is different that is what it is shown instead of the label.
    kind Regards
    Kevin R
    Applications Engineer
    National Instruments UK&Ireland

  • How i can use labview control or indicator in VB or C++

    Hi,
    I would like to use labview control or indicator in thierd party application like VB or C++ or .net. Please help me, how i can use this?
    Thanks

    You can't. A LabVIEW control is a LabVIEW internal object that has no direct link to any OS object entity on any platform it runs on. As such other applications would have no means to access that control object or interact with it in any meaningful way.
    Instead you should probably look into ComponentWorks from National Instruments. That is a collection of ActiveX (and .Net?) controls similar to the ones you find in LabVIEW, and those can be embedded into Visual Basic or any other development environment that allows embedding ActiveX controls.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • LabVIEW control which shows value in percentage

    Hello
    I am want to know about LabVIEW control which shows the values in percentege. Actuly I am using wait(ms) function and as a input i m using control but the problem is that i want values in percentage..
    Thank You

    Thank u once again for your reply
    I m explaing my problem brifly. I am attached a screenshot of my blockdiagram.
    In the diagram i used str_1 for turned on LED let say for 10 msec and in str_2 i am mesuring voltage at 5 msec. so when LED is on for 10msec then exectly at 5 msec i mesure voltage.
    Now the problem is i want to change in str_2 for constant 5 msec to control(in percentage) in wait function.
    If i give lets say 10 msec input to wait function in str_1 & in str_2  i give 70% then input of wait function is 7 msec
    if i give 20 msec input to wait function in str_1 & in str_2 60% then input of wait function has to be 12 msec..  
    I try to explain my problem though i know its diffcult to understand for someone else.. Hoping for your reply
    thank you
    Attachments:
    screenshot.jpg ‏672 KB

  • Labview control error

    i am not able to open a labview control that i found,
    It says it is not a resource file,
    can anyone comment on this.
    Regards,
    Shrenik
    Attachments:
    buttons.ctl ‏193 KB

    Hi Shrekt,
    all I can say is: your file is definitely no LabVIEW resource file! (Just look at LV ctl files with a text editor and compare the first 10 bytes...)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for