Error produced when trying to pass variables to a Matlab script

For some reason, LabVIEW produces an Error 1047 (Unable to pass variable to the script server) whenever I create an input variable to a Matlab code block.
Outputs work fine (for example, connecting an output "a" to a Matlab code block that says "a=rand(50)" correctly produces a 50x50 array of random numbers that can be displayed in LabVIEW). However, creating any kind of input node, whether or not the associated variable is mentioned in the MATLAB script, brings up an error 1047.
Any ideas what could be causing this? I'm using LabVIEW 7.0 and MATLAB 7 (R14). I've read the article
>here and that's not the problem, and I've also updated my matscript.dll to the latest version, 7.0.0.2, which also made no difference.

For what its worth,
I work in a company with a lot of Matlab users, and I,m programming in Labview and Matlab.
When I create a testrig measurement I always have to convert data into Malab format, so I used the script server a lot... exept we have a limited pool of Matlab
licenses so my work was halted whenever the licences where gone.
So I wrote a Write2Matlab vi.
This vi can log data from a measurement and write it in a Matlab readable file format (Matlab6 R12).
After logging you can append more data. It works with(Double,Single,Int32,Int16,U16,U8,String) matrix see for yourself in an example (Write2matlab_test.vi).
Perhaps this is an alternative solution for your problem.
Please send me a reply if you find it usefull.
John
Attachments:
Write2Matlab.llb ‏1145 KB

Similar Messages

  • Error occured when trying to pass object from Jsp to Applet

    I am trying to pass a serialized object(ie, object class implements java.io.Serializable...so that is not a problem) from a Jsp to an Applet.
    My jsp(Jsp_RMI.jsp) page is:-
    <%@ page import="java.io.*" %>
    <%@ page import="com.itlinfosys.syslab.mfasys.scm.*" %>
    <%@ page import="java.util.*" %>
    <applet code="com/itlinfosys/syslab/mfasys/scm/Applet_RMI" width=200 height=100>
    </applet>
    <%! ObjectOutputStream outputToApplet=null;
    PrintWriter out=null;
    BufferedReader inTest=null;
    %> <% Student student=new Student();
    Vector students=new Vector();
    students.addElement(student);
    outputToApplet=new ObjectOutputStream(response.getOutputStream());
    outputToApplet.writeObject(students);
    out.println(student);
    outputToApplet.flush();
    outputToApplet.close();
    %> <html> <head> <title>My Page</title> </head> <body> </body> </html>
    My Applet Applet_RMI.java is:-
    package com.itlinfosys.syslab.mfasys.scm;
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    import com.itlinfosys.syslab.mfasys.scm.Student;
    import java.util.*;
    public class Applet_RMI extends Applet{
    Vector aStudent=null;
    ObjectInputStream inputFromServlet=null;
    String location="<URL>";
    public void init(){
    getConnection(location);
    public void getConnection(String location) {
    try{
    URL testJsp=new URL(location);
    URLConnection jspConnection=testJsp.openConnection();
    jspConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    jspConnection.setDoInput(true);
    jspConnection.setDoOutput(true);
    jspConnection.setUseCaches(false);
    jspConnection.setDefaultUseCaches(false);
    inputFromServlet=new ObjectInputStream(jspConnection.getInputStream());
    aStudent=(Vector)inputFromServlet.readObject();
    }catch(MalformedURLException e){ System.out.println(e);
    catch(IOException e){
    System.out.println(e);
    catch(ClassNotFoundException e){ System.out.println(e);
    I am using netscape-4.73 on weblogic server. On server when I try to view Jsp page it gives netscape.security.AppletSecurity Exception.
    When I am trying to call this Jsp from IE-5 on my client machine, I am getting error:-"java.io.StreamCorruptedException: InputStream does not contain a serialized" Pl help me out.

    You should probably change your implementation to use a servlet rather than JSP. There may be extra stuff being put in by the JSP. Besides, servlets run faster. Here is some code that may help.
    From the Servlet:
      public void doPost(
          HttpServletRequest               httpServletRequest,
          HttpServletResponse              httpServletResponse )
          throws ServletException, IOException {
        ObjectInputStream in = new ObjectInputStream(new GZIPInputStream(httpServletRequest.getInputStream()));
        requestObject = in.readObject() ;
        ObjectOutputStream out = new ObjectOutputStream(new GZIPOutputStream(httpServletResponse.getOutputStream()));
        out.writeObject(responseObject);
        out.close();
      } //end doPost()And from the Applet:
      public Object doServletCall(
          Object                           sendObject ) {
        try {
          HttpURLConnection con = (HttpURLConnection)servlet.openConnection() ;
          con.setRequestMethod("POST");
          con.setDoInput(true);
          con.setDoOutput(true);
          con.setUseCaches(false);
          con.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
          ObjectOutputStream out = new ObjectOutputStream(new GZIPOutputStream(con.getOutputStream()));
          out.writeObject(sendObject);
          out.flush();
          out.close();
          ObjectInputStream in = new ObjectInputStream(new GZIPInputStream(con.getInputStream()));
          Object returnObject = in.readObject() ;
          in.close();
          return returnObject ;
        } catch (IOException e) {
          e.printStackTrace();
        } catch (ClassNotFoundException e) {
          e.printStackTrace();
        } //end try
        return null ;
      } //end doServletCall()Of course you can remove the ZIP and send object if you don't need them

  • Error 1050 by trying to use load'filename' in matlab script node

    Hi
    I keep getting error 1050 when Labview tries to load a text file through the matlab script node.
    I've all ready checked for it on google and this forum but found nothing. I've also done this: http://digital.ni.com/public.nsf/allkb/2B3FF46C8512C4F786256CF30071BE53 and tried to use dlmread and more. 
    The thing is that  I need the matlab script node to read a txt file that Labview made from a chart with only 1 array, plot it and export a jpg image. I can't really use the 'export image' or 'get image' function in Labview cause I need the whole plotted chart (these functions only take a snap shot of it when they're run).
    This is my code that I'm using:
     data=load('file') ;
    Vpp=(data(1:2000,1));
    xsize = (1/2000);
    plot(0.0005:0.0005:1,Vpp);
    axis([0 1 -5 5]);
    print('-djpeg', 'graph.jpg');
    The usual load in matlab to load txt files and print to print the jpeg. The code works in matlab but not in labview
    And yeah, I'm using windows 7 and legal versions of matlab r2009b and Labview 2009  
    Solved!
    Go to Solution.
    Attachments:
    matlab.jpg ‏213 KB

    Yes I forgot, this is my error...  It looks like it can't read the file path, but the 'file' path is actually just a path to my c:\user\*\*\*\*.txt 
    Error 1050 occurred at LabVIEW:  Error occurred while executing script. Error message from server: ??? Error using ==> load
    Unable to read file file: No such file or directory.

  • PLS-00201 error when trying to pass an OUT parameter

    Hi,
    Please help me to resolve the below error:
    I am trying to pass an OUT parameter in a package.
    I have declared it in package specs as
    ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2)
    In package body
    I have created the procedure as
    Create or Replace procedure ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2) AS
    v_LogDir varchar2(40);
    v_message varchar2(200);
    BEGIN
    SELECT directory_path into v_LogDir FROM ALL_DIRECTORIES WHERE directory_name = 'ABC';
    v_message := v_LogDir ;
    some sql statements..
    p_val3 := v_message;
    Return p_val3;
    End procABC;
    SQL> exec pkg_A.procABC('Stage2', NULL, p_val3);
    Package compiles successfully but while execution it returns error as:
    ORA-06550: line 1, column 74:
    PLS-00201: identifier 'p_val3 ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Please advise.

    Hi Suresh,
    Thanks for the information and help. I was able to run the package with this usage.
    Now, the issue is
    I need to return a v long string by the OUT parameter so I defined the datatype of OUT parameter as CLOB.
    But, when I declare local variable to run the package with this OUT paramater I get the error :
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 1
    When I pass a shorter string it works.
    Kindly advise me how to resolve this issue while using CLOB as datatype of OUT parameter.

  • I am getting this error message when trying to download itunes on windows 7 32 bit:  microsoft.vc80.crt.type="win32".version="8.0.907276195".publickeytoken="1p86369 ale18e36" Hresult: 0x800736fd

    I am getting this error message when trying to download itunes on windows 7 32 bit:  microsoft.vc80.crt.type="win32".version="8.0.907276195".publickeytoken="1p86369 ale18e36" Hresult: 0x800736fd
    Can someone please Help?

    I found htis other post https://discussions.apple.com/thread/3401328?start=0&tstart=0
    I also found this in another post
    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.)

  • OSStatus error -6602, when trying to connect to time capsule

    OSStatus error -6602, when trying to connect to time capsule for back up.
    I am prompted for my
    How do I decode the error messages?

    The information from a Google search indicates the error is generated when connecting to a PC share. So this may be some kind of error generated by the NAS' operating system. In any event I cannot find such an error number associated with OS X so if it is an OS X error number then it's not publicly documented. I would still think Synology's tech support should be able to help you since it is their device. If they sent you here then they're passing the buck.

  • Does anyone have experience with error 504 when trying to download a podcast?

    Does anyone have experience with error 504 when trying to download a podcast?  I've been a subscriber for two years without issue and in the last two days can't download this particular podcast (everything else is working fine - music, other podcasts, etc)

    The album was released on the 27th March this year, so the error occurred almost immediately after it was supposedly available.
    In the manage pre-orders section of my account, it says AVAILABLE but does not give me any choice over whether to download it, just to cancel it. Is this normal?
    iTunes customer services reset my password and tried to download the album themselves, but they also got the 5002 error, so it's been passed off to the engineers. How long does that usually take?
    If anyone has any other suggestions, it would be greatly appreciated.

  • TS1424 Getting error -1202 when trying to connect to My Wish List.  Says there was an error in the ITunes store and to try again later.  Any work arounds for this?  I have no other problems accessing anything else.

    Getting error -1202 when trying to connect to 'My Wish List" in ITurnes.  Says there was an error in the ITunes store and to try again later.  Have no other problems connecting or purchasing......

    This procedure is a diagnostic test. It makes no changes to your data.
    Please triple-click anywhere in the line below on this page to select it:
    ls -@Oaen L*/Coo* | pbcopy
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered.
    The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message.
    The Terminal window doesn't show the output. Please don't copy anything from there.

  • Error 400 when trying to sign-in to Adobe Photoshop 9 [was:Error]

    Getting an Error 400 when trying to sign-in to Adobe Photoshop 9.  What is the problem?

    http://barbarabrundage.com/2013/09/16/pse-8-9-10-cant-sign-in-error-404/
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Error message when trying to open windows7 via vmwarefusion.

    error message when trying to open windows7 via vmwarefusion.;
    Unable to open file "/Users/geraldw/Documents/Virtual Machines.localized/Windows 7.vmwarevm/Windows 7-000016.vmdk": The system cannot find the file specified.
    I've completely uninstalled vmaware fusion. and would like to install a new copy of windows7 plus my vmware fusion3.0 that I have on a disk. I wonder if windows7 is still buried in my mac hard drive somewhere?  I can see some windows files on my mac but they appear a gray and can not be accessed. Could there be a problem installing a new copy of windows through boot camp?   It seems to do so wouldn't be a clean install as I suspect that windows 7 is still on the drive somewhere. I've tried to follow the path the file I listed above, but nothing comes up.  I'm almost certain  it was accidentally deleted completely from the hard drive as it was quarantined while using Clam X anti-virus. I'm a relatively new mac user and long time PC user, but a computer genius I am not. I don't want to have to reformat the whole mac machine and lose my current files, etc.
    I've uninstalled vmare completely and reinstalled, it, but the problem persists.
    Any help?

    You will probably get a better response asking this question in VMWare's forums for Fusion.
    Best of luck.

  • HT204053 I am getting an error message when trying to sign into my icloud. Help

    Why do Iget an error message when trying to sign in my icloud?  Can you also tell me how to combinned my icloud accounts?

    If they were in your camera roll and on your phone when you last backed up, they would be included in your iCloud backup.  If you restored the entire backup you should recover them.

  • Error Messages when trying to install, uninstall or run iTunes 9

    I get the following error message when trying to Install iTunes:
    The path C:\DOCUME~1\Frank\LOCALS~1\Temp\IXP206.TMP\iTunes.msi cannot be found. Verify that you have access to this location and try again, or try to find the installation package 'iTunes.msi' in a folder from which you can install the product iTunes.
    I search my entire computer for the file but it's not there.
    Then, when I try to uninstall the iTunes and start the install from scratch I get another error:
    "The feature you are trying to use is on a network resource that is unavailable"
    Catch-22, I can't install or uninstall and when I try to run iTunes I get:
    "The action is only valid for products that are installed"
    Very frustrating but I'm stumped and I don't know how to proceed. Any help would be very much appreciated.

    wooooooooo!!! got it working again!! having spent the last 6 hours..no joke six f*cking hours trying to sort it ive finally got iTunes back!!
    ok here is what you need to do:
    go to the link below and download the Microsoft Windows Installer CleanUp Facility.
    http://www.locksleynet.com/2009/06/09/missing-itunesmsi-problem-resolved/
    once you have downloaded it, install it and run it from the start menu. once its up and running remove everything to do with iTunes (so iTunes itself, quicktime, bonjour......the lot). Dont worry about removing iTunes completely, all the music is still there when it works again trust me!!
    ok once you have removed everything restart your computer, im not sure if this is a must but i did it.
    next download quicktime from the apple website (go to the 'downloads' tab near the top. download and install quicktime and restart your computer so the new settings are put in to place ( i think it asks you to restart anyway).
    go back to the apple website, 'downloads' tab and download iTunes itself. install that bad boy and you will be up and running with all your library intact!
    Hope it works for you mate!

  • Keep getting error message when trying to sign in to make a Genius Bar Reservation

    Keep getting error message when trying to sign in to make a Genius Bar Reservation

    Make the reservation by phone. 

  • Error 400 when trying to sign in

    hi,
    i"m getting error 400 when trying to sign in the iTunes Music store. I'm using a free .mac (so not a full paying .mac acount) account to sign in.
    anyone else seeing this error
    marc
    us store

    Awesome! Thanks for the tip. I was having a similar issue with that error code amd deleting those cookies from Safari fixed it.

  • I keep getting an error message when trying to log on to FaceTime and iMessage on my iPad mini with wifi...could not sign in. Please check your network connection and try again. Help!

    I keep getting an error message when trying to log on to FaceTime and iMessage on my iPad mini with wifi...Could not sign in. Please check your network connection and try again. Help!

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
     Cheers, Tom

Maybe you are looking for

  • Data Extraction from SAP R/3 Table View in BW

    Dear All, I am trying to create a BW query from SAP R/3 Table View. Till now i have created a table view Extracted Data source in R/3 Useing Tcode : RSA3 In BW Side 1. I have replicated the data source in Source system 2. Created  info object     and

  • File Conversion in Rec File Adapter with subnodes

    Hi My XML Structure is like this --> <?xml version="1.0" encoding="UTF-8" ?> - <ns0:MT_Test xmlns:ns0="urn:TESTconversion">   <MstName>Hello</MstName> - <Header>   <TableName>1tst</TableName>   <PayDate>0102</PayDate>   <TotalAmt>24.00</TotalAmt>   <

  • Incorrect display of event on secmon 2.2

    I have a strange problem on an ips mc / secmon 2.2 solution. When I open the security monitor from a specific time and date, the console shows events that have occurred prior to the date that I requested. Before experiencing this problem, I manually

  • Production order BOM error

    hi, We have an BOM item A validate from 25th, it is a replacement of BOM item B which is invalidate from 25, but the production order created on 21st already used this item A instead of item B. Could you help me to check what happend?

  • Cisco Wireless Implementation

    Hi, We are in process of deploying cisco wireless infrastucture using WLC 5508 and AP1252. However, just curious to know what are Cisco best practices regarding VLAN design for these components. Can they belong to same VLAN or we need to provision se