MATLAB from LabVIEW on Sun work station

Is it possible to access MATLAB script from LabVIEW on a Sun work station. If so how - for there is no MATLAB script node in SUN based LabVIEW
-Sheela

Because LabVIEW uses ActiveX technology to implement MATLAB script nodes, they are available only on the Windows platform.
There may be other ways to invoke the Matlab script server in Unix but I am not aware of any.
Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

Similar Messages

  • Calling Matlab from Labview returns a 1047 error - what am I doing wrong

    above

    Does your script work fine in MATLAB? Do you run a VI or an .exe?
    MATLAB must be running, otherwise LabVIEW will be unable to access the MATLAB server. This will cause the 1047 error. Manually start MATLAB, and your program should run without the error.
    The following KnowledgeBase may also be useful in troubleshooting this issue
    LabVIEW 6.x and Earlier Does Not Interface Properly with MATLAB 6.1 or MATLAB 6.5
    Zvezdana S.
    National Instruments

  • Easiest way to call MATLAB from Labview

    I have a bunch of MATLAB scripts I've developed over the years. I'd
    like to have Labview collect data and pass it off to my MATLAB scripts
    for plotting and analysis as it is streaming in. What is the easiest
    way for me to do this?
    Thanks for your help,
    Matthew Little

    [email protected] (Matthew Little) wrote in message news:<[email protected]>...
    > I have a bunch of MATLAB scripts I've developed over the years. I'd
    > like to have Labview collect data and pass it off to my MATLAB scripts
    > for plotting and analysis as it is streaming in. What is the easiest
    > way for me to do this?
    >
    > Thanks for your help,
    > Matthew Little
    Matthew:
    Have you tried the Matlab script container in the Mathematics->Formula
    function palette? This node allows you to put your scripts into the
    Labview diagram. I haven't tried it myself, but it should work. Good
    luck.
    sm

  • Sun Server 10 or Sun Work station 10 os

    Hi
    I have download sun OS 10version from sun website and installed
    just I would like to know is that server version or workstation version.
    please assist me in this
    Thanks in advance
    Shahul

    There is only one version of Solaris 10 for both servers and workstations - there are not separate editions like some releases.

  • Unable to load the flat file  from client  work station

    Hi,
    I am trying load a flat file (.CSV file)from my desktop (Client work station) and getting the following error.
    An upload from the client workstation in the background is not possible
    Message no. RSM860
    Diagnosis
    You cannot load data from the client workstation in the background.
    Procedure
    Transfer your data to the application server and load it from there.
    I have recd a .XLS file and then I have converted to .CSV file , which I saved in my desktop and trying to load the same.
    Please help me how to go about this?...
    Thanks in advance.
    Christy.

    Hi All,
    Again, I have tried to load the flat file from clint work station with direct loading..I have got the following errors..
    Errors : 1
    Record                                                  990: Contents '50,000' from Field /BIC/ZPLQTY_B Not Convertible in Type QUAN -> Long Tex
    like this i recd so many errors.
    ERROR : 2
    Error in an arithmetic operation in record 259     
    Please help me how to load the flat file successfully.
    If I hv to save the flat file in Appl server..how to do that..Please provide step by step instruction..
    Thanks
    Christy

  • How do i pass a daqmx task from labview to matlab using the math interface toolkit?

    I want to use DAQMX functions from Matlab using the Math Interface Toolkit (MIT). How can I have a labview function output (return) the DAQMX task to matlab via the MIT?
    I want to do this so I can start a DAQMX task in Labview from a matlab function and return control to matlab without losing the task.

    Hi Mark,
    (I already posted this answer in your other thread, but let's keep THIS thread alive - it makes more sense here in the LabVIEW forum than in Instrument Control forum.)
    Since the DAQmx Task is not a native data type that can be passed directly to MATLAB from LAbVIEW, try flattening the DAQmx Task to a string before passing to MATLAB. However, I doubt that you can access the task from within MATLAB, but feel free to give it a try.
    Good luck!
    - Philip Courtois, Thinkbot Solutions

  • Closing a Matlab model window from Labview

    Hi,
    I use Labview with the Simulation Interface Toolkit to control a simulation system from Labview. I need to change the Simulink model dynamically from Labview when the users choose a given option (I directly replace code snippets in the .mdl file). In order to do this, I need to close the model window in Matlab from Labview and reload it when the modification is done.
    Any idea?
    Thanks,
    Alex

    Greetings!
       Thanks for the request. Re-launching the model is required after
    every change. The connection manager retains the information and uses it in re-launch.
    Please refer to Page 16 of the simulation interface toolkit. You can submit a
    product suggestion in our product suggestion page. Also I am sure you would
    know the following -
    You could build the model into a DLL for stand-alone simulation. You need
    MATLAB, Simulink, and Real-Time Workshop to build a model DLL and configure the
    user interface using the SIT Connection Manager Dialog box. Once you create the
    model DLL and user interface, you need only LabVIEW to run the simulation.
    Thanks and hope this helps. Good luck
    Avi

  • ActiveX can't create object when VB Script called from Labview

    I have an interesting issue that I can't find a solution for. I am using the DIAdem Run Script.VI in Labview to call a script that opens an Outlook object and sends an email. When the script is called via LabView I get this error:
    However, when I manually run the script from the DIAdem script tab it works as expected with no errors.
    This is the code:
    'Begin email send function
    Dim oOutlookApp
    Dim oOutlookMail
    Dim cnByValue : cnByValue = 1
    Dim cnMailItem : cnMailItem = 0
    ' Get Outlook Application Object
    Set oOutlookApp = CreateObject("Outlook.Application")
    ' Create Mail Item
    Set oOutlookMail = oOutlookApp.CreateItem(cnMailItem)
    ' Set Mail Values
    With oOutlookMail
    .To = "[email protected]"
    .Subject = "Report: " & Data.Root.ActiveChannelGroup.Name & " for " & CurrDate
    .Body = "test automatic report emailing with VB Script."
    ' Add Attachement
    Call .Attachments.Add(strLocFileName, cnByValue, 1 )
    ' Send Mail
    Call .Send()
    End With
     (Original code includes Option Explicit and all variables are properly included/declared, I just took the snippet of what's causing the error).
    I have looked at the following threads for info already:
    http://forums.ni.com/t5/DIAdem/Some-errors-when-calling-LabVIEW-VIs-Interactively-from-DIAdem/td-p/2...
    http://forums.ni.com/t5/DIAdem/Active-X-component-cannot-create-object-Diadem-8-1/m-p/71212/highligh...
    -I tried running the script via Windows explorer (per Brad's suggestion) by itself without the DIAdem specific functions and it runs fine.
    http://forums.ni.com/t5/DIAdem/Error-while-runing-diadem-asynchronous-script-from-labview-on/m-p/111...
    -I am not running the scripts asynchronously
    Using Windows 7 (64bit), DIAdem 11.2 and LabView 7.1.1
    Thank you.

    Hey techerdone -
    I'm afraid I personally can't be of much help - I tested your code both from DIAdem and from LabVIEW and each worked without issues in both cases (Outlook closed, Outlook open).  I'm using DIAdem 2011 SP1, LabVIEW 2011, and Outlook 2007...
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Secondary domain controller not able to connect from work stations.

    We are using primary and secondary domain controllers. In which the secondary domain controller act as a replication server. actually the problem occurs while accessing the secondary domain controller from work stations I get the following error:
     "The trust relationship between this workstation and the primary domain failed".
    Any one please give as a solution.
    Thank you.

    Hi,
    Most simple resolution would be unjoin/disjoin the computer from the domain and rejoin the computer account back to the domain.
    There might be multiple reasons for this kind of behavior.
    Here are a few of them:
    Single SID has been assigned to multiple computers.
    If the Secure Channel is Broken between Domain controller and workstations
    If there are no SPN or DNS Host Name mentioned in the computer account attributes
    Outdated NIC Drivers.
    According your description, the second one may be the cause of your problem.
    When a Computer account is joined to the domain, Secure Channel password is stored with computer account in domain controller. By default this password will change every 30 days (This is an automatic process, no manual intervention is required).
    Upon starting the computer, Netlogon attempts to discover a DC for the domain in which its machine account exists. After locating the appropriate DC, the machine account password from the workstation is authenticated against the password on the DC.
    If there are problems with system time, DNS configuration or other settings, secure channel’s password between Workstation and DCs may not synchronize with each other.
    A common cause of broken secure channel [machine account password] is that the secure channel password held by the domain member does not match that held by the AD. Often, this is caused by performing a Windows System Restore (or reverting
    to previous backup or snapshot) on the member machine, causing an old (previous) machine account password to be presented to the AD.
    Follow below link which explains typical symptoms when Secure channel broken,
    Typical Symptoms when secure channel is broken
    http://blogs.technet.com/b/asiasupp/archive/2007/01/18/typical-symptoms-when-secure-channel-is-broken.aspx
    For detailed information, please refer to the link below,
    Troubleshooting AD: Trust Relationship between Workstation and Primary Domain failed
    http://social.technet.microsoft.com/wiki/contents/articles/9157.troubleshooting-ad-trust-relationship-between-workstation-and-primary-domain-failed.aspx
    Hope this helps.
    Steven Lee
    TechNet Community Support

  • How to get Time from Different Work Station on the Network

    Hi,
    How do I get time from different work station on the network using its ip:port etc.
    Lets say, my main server-side Java application is running on a work station 123.12.123.1:1527,
    the client-side applications are accessing it using above IP.
    what I wanna do is, use the time of 123.12.123.1 machine throughout the application, not client local time.
    Appreciated..

    Ok, this network service on IP:Port is working for me, I hope this is the best way of doing it.
    In server application, I have this
    package RenameItToYourOwnPackage;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.text.SimpleDateFormat;
    public class ServerSocketExample implements Runnable {
        private ServerSocket server;
        private int port = 7777;
        Socket socket;
        public void run() {
            try {
                System.out.println("Waiting for client message");
                server = new ServerSocket(port);
                while (true) {
                    socket = server.accept();
                    // Read a message sent by client application
                    ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
                    String clientMessage = (String) ois.readObject();
                    System.out.println("Message sent by client: " + clientMessage);
                    // send current datetime to client
                    ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
                    oos.writeObject(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date()));
                    ois.close();
                    oos.close();
                    socket.close();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
    }In the client application I have
    package RenameItToYourOwnPackage;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.InetAddress;
    import java.net.Socket;
    import java.net.UnknownHostException;
    public class ClientSocketExample {
        static String dateTimeString;
        public ClientSocketExample() {
        public static String getServerDateString() {
            try {
                // Create a connection to the server socket on the server application
                InetAddress host = InetAddress.getByName("127.0.0.1");
                Socket socket = new Socket(host.getHostName(), 7777);
                // Send a message to the server application
                 ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
                 oos.writeObject("Send me today's timestamp as string");
                // Read the response by server application
                ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
                dateTimeString = (String) ois.readObject();
                //System.out.println("Message sent by server: " + message);
                ois.close();
                oos.close();
            } catch (UnknownHostException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            return dateTimeString;
    }And I run the service on the server-side with
            new Thread(new ServerSocketExample()).start();On the client-side I receive the date with
            System.out.println("DateTime on Server : " + ClientSocketExample.getServerDateString());Edited by: nkamir on Sep 13, 2010 2:53 PM

  • 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.

  • Possible data loss whlie transfering from Labview 7.0 into Matlab [binary]

    Greetings,
    I am kind of confused on binary data processing from labview to matlab. I tried to follow this thread by C. Minnella:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=211371&query.id=131675#M211371
    And it was a great help for me to understand many of my issues. However there is something wrong with data that I am writting and retrieving in Matlab
    Here is how signal looks in Labview
    http://img126.imageshack.us/my.php?image=picture1va4.png
    And its spectrum
    http://img126.imageshack.us/my.php?image=picture3hn6.png
    http://img146.imageshack.us/my.php?image=picture4br6.png
    And this is what I am getting in Matlab:
    http://img357.imageshack.us/my.php?image=picture7jq7.jpg
    my vi:
    http://img146.imageshack.us/my.php?image=picture2wn0.png
    The only change I did was replacing DAQ task with Global chanel constant, since it has original scaling for the data from Load Cell (Fx Axis in particular), this is the device I am getting data from, it is in rest, sitting on the table.
    I can't figureout what is happening, looks like it is clipped, besides the amplitude is not correct.
    Would really appreciate any insights,
    Oleks 

    Hello Ton,
    Thank you for the fast reply, here is a part of the code that reads from Labview data file:
    %Read header information, return in a structure[headerInfo,fileMark] = GetHeader(fileName,pathName, dataBytes);
     %Open binary file Big endian formatfid=fopen([pathName fileName],'rb','ieee-be');  %Move file marker to begining of scansfseek(fid,fileMark+startScan,'bof');  %Read number of requested scansy=fread(fid,headerInfo.NumChannels*scans,dataType);
     %Reshape data into a matrix [scans x channels]y=reshape(y,headerInfo.NumChannels,[])';
     %Close binary filefclose(fid);
    I basically followed example posted in 2006 on NI forum. I think my major concern is whether data is getting to matlab scaled correctly (it is scaled within global channel to Newtons) and looks like I am not getting the same data type in Matlab.

  • Matlab script sever don't work in labview

    in my application ,matlab script always doesn't work with a error1050,even the matlab script examples in labview help examples also can't work at all, can you
    tell me the reason.

    Marc,
    You have one forgotten possibility to communicate LabView with remote
    MATLAB - it is TCP/IP.
    It is easy to realize and may be helpful in your application.
    Regards,
    Sergey.
    "Marc" wrote in message
    news:[email protected]..
    > Hi Sergey
    >
    > Yep the files look interesting - as well as the control. The actual
    > application is to make sure we have realtime data exchange along with
    > 'callback' functionality. There are a variety of approaches - reading
    > mat files, using DDE and COM. NetworkDDE is not supported by matlab -
    > so that is one option gone. Using shared network drives is a solution
    > - but still means Matlab and Labview are mutually dependant. With DC
    OM
    > (and Matlab in /Automation mode) it is possible to have two 'masters'
    > talking independantly without shared network drives...
    > I think at the end I will have to construct a new control (or cin)
    > module to do this...
    > Marc

  • 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

  • Calling a VB Script and Matlab code from LabVIEW GUI.

    Hi,
    Can anyone help me out in Calling a VB Script and Matlab code from LabVIEW GUI? GUI will be developed in Labview and currently we have some scripts written in VB and Matlab and we need to incorporate the same through LabVIEW. Can anyone let me know how this can be implemented? 
    Regards,
    Sharmash

    For VBScript you can call the Windows Scripting Host application using the System Exec function, or you can use IScriptControl, which is an ActiveX control. Be aware that with the IScriptControl there's a small bug. You can read more about it in this post.
    For Matlab, there's a Matlab node that you can use. You can either copy and past your Matlab script in the node, or just write a function call statement. The node simply calls Matlab. Or, you can do as suggested and use the MathScript node, which is basically an alternative to Matlab. The MatchScript node doesn't support everything that Matlab does, so you will need to check it against your script.
    Or, you can do as suggested, and rewrite it all in LabVIEW, unless you can't because these scripts are used by other applications.

Maybe you are looking for