Error in Mathscript exercise (3.2) in "Introduction to LabView in 6 hours" tutorial

Hello,
I am working through the 6 hours introductory manual and I have noticed a few minor errors here and there. Also, as I am using version 8.6, some of things are slightly different.
However, I am stumped with exercise 3.2 regarding Mathscript. I even tried running the solution which I downloaded from the ni.com site but I still get the following error:
Error -90011 occurred at Error in function times at line 4.  The sizes of the input matrices are incompatible.  Verify that the matrices have the same size or that one is a scalar.
Does anyone know of an errata for this manual? Any other suggestions or hints are appreciated.
Thank you
Solved!
Go to Solution.

Hi,
I reproduced you error code, it isn't caused by an errata in the manual. Check the line 19 c. it is said that "Now multiply the Exp and In arrays element by element by typing “Out = In.*Exp;” and pressing Enter." 
"Error -90011 occurred at Error in function times at line 4" means that
the times function isn't implemented correctly, according to the help 
the good syntax is .*
So take a look at your code line 4 and check if the syntax is correct, otherwise replace those symbols byt he function name like in pictures I attached.
Hopefully this helps.
Regards,
Message Edité par Steve Mohamed le 02-19-2009 04:26 PM
Steve M.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Vidéo-t'chats de l'été : présentations techniques et ingénieurs pour répondre à vos questions

Similar Messages

  • Error in Mathscript (FOPDT Transfer Function)

    Hi all, i am trying to write a First Order Plus Dead Time system into the mathscript, unfortunetaly i found that it appear an error (please refer to the attachements), do anyone have idea or approach to write an FOPDT Transfer function in mathscript? 
    Thankyou veery much.
    Solved!
    Go to Solution.
    Attachments:
    error.png ‏18 KB

    Thank you very much barp, both method work for me, but now i had face another problem.
    I had try your method and design the PI controller, but the result (overshoot) is different compare to the result (overshoot) by using Matlab.
    I had try to copy and paste the code from the Mathscript to the Matlab and step plot it. Consequently, the overshoot shown different value. 
    I also had try to check all the value and i found that everything is ok until the last line sys_cl=feedback(Gf,1), Labview has given the answer in transfer function but Matlab has show the answer in continuous time state space model. 
    The value of the transfer function : Gain = 58.46; Time constant = 0.55 and time delay = 0.06.
    The value of Pi controller : Kp = 0.0784 and the Ti = 0.24. 
    I had attach some picture which show the difference.
    Am i did something wrong in the mathscript and should i do it in Labview by different way?
    Thankyou very much
    Attachments:
    matlab1.png ‏24 KB
    labview bd1.png ‏28 KB
    labview bd2.png ‏43 KB

  • "VI has error of type 1002288.The full development version of LabVIEW is required to fix the errors"

    Hi,
    I had created an executable in LabVIEW 8.6 on a windows XP 32 bit PC. The application uses some Vision VIs. The executable runs in most of the PCs except one. the PC is a windows 7 64bit. Initially i got the error "Labview Load error code 3: could not load front panel". I fixed this by changing the source file settings in the application builder. Now i am getting the error "VI has error of type 1002288.The full development version of LabVIEW is required to fix the errors" and the exe shows a broken run button.
    But if i build the exe in the same PC i get no errors and it works fine. Moreover i have tested this exe in a different PC with the same configuration, it works there. I have tried reinstalling labview in the PC the problem still persists.
    Solved!
    Go to Solution.

    Hi Rajshekar.
    > Which version of LabVIEW are you using on PC with Win7 64bit? would like to check if there are any issues with LV2009 32bit on 64bit OS..
          - The version of Labview on the win7 64bit PC is also lv8.6 full development system.
    > Do you get the same error on the other PC with same config(Win7) when running the .exe generated using LV 8.6 on WinXP 32bit? just to make sure the problem is with OS or LV..
          - the same problem occured at one more PC with the same configuration. but when i tested in an another PC of the same config it worked i am not able to isolate and decide that the error is based on one particular PC config.
    I have listed the environments in which application ran and how the application was put in to the PC.
    I would also like you to know that i have created an installer for the exe. I am also using NI vision in my application and this is the error "An error occured loading VI 'IMAQ GetImagePixelPtr'. LabVIEW load error code 3: could not load front panel"....and rest is what i said in my previous post
    1. Use the installer to install the application.
    2. just copy the exe created in LV 8.6 into a PC that already has LV development system installed in it
    3. The PCs might either be a blank one with no history of LV installed in them
    4. The PCs might have diffrent versions of LV development systems installed in them (8.2,8.5,8.6,2009)
    All PCs that have LV development system(s) installed in them, was able to run the application except the one with win7 64, where i have tried uninstalling all NI software and use only the installer to install, install LV 8.6 full development system and try runnning the exe, nothing works.
    Thanks

  • Getting -90031 (can't find function) error from Mathscript node when running executable, but works when I run the pre-compiled VI

    I have set the Mathscript preferences 'Path' and 'Working Directory' parameters to the folder containing my scripts, and it works when
    I run the VI, but I get a -90031 error when I run the executable.
    What am I doing wrong?

    Hi Umars,
    I had the same problem. In my case it turned out that it was caused the surrounding code. Plus the error
    message was missleading. I got the error message -90031 (unknown symbol CalcWelchCorr2) for the
    following piece of code:
    ecorr= 1;
    if setup & src== 1
       for lag= 1:50
       rho=  CalcWelchCorr2( lag, win );
       if rho > 0.001, ecorr= [ecorr; rho]; else, break; end
    end
    CalcWelchCorr2 is a user defined function located in the MS search path. The problem was caused by the
    "break" in line 5. Actually this line was marked by some little warning symbol. Eventualle I modified the code
    to get rid of the break
    ecorr= 1;
    if setup & src== 1
       lag= 1; rho=  CalcWelchCorr2( lag, win );
       while rho > 0.001 && lag <= 50
          ecorr= [ecorr; rho];
          lag= lag+ 1; rho= CalcWelchCorr2( lag, win );
       end
    end
    and voila, the executable worked fine.
    However, I had to check all my VIs ( > 200 !) for similar errors which gave me headaches.
    Why does the application builder doesn't produce some appropriate error message ?
    E.g. "Line xxx in MathScript node in VI xxx cannot be executed"? Currently you get the
    impression that the application was build successfully but eventually you get strange errors
    or even erroneous results. Keep in mind that tracking down bugs in the final application is
    much more difficult that in LV. Also the error message produced by the executable was not
    helpfull at all.

  • Error -1074397038 occurred at IMAQ Start.vi for 64bit Labview 2011 SP1, Win7

    Hello,
    I am using a MC1362 camera from Mikrotron with a PCIe1433 framegrabber. I was using it with windows XP, 32 bit, labview 2010 SP1 32 bit, it was working perfectly fine. I just switch to windows 7 with labview 2011 SP1 64bit, and it is not working anymore with my custom routine in labview, though it works with MAX and camera file generator and I use the same camera file.
    When I run my routine, I have this error message:
    Error -1074397038 occurred at IMAQ Start.vi
    Possible reason(s):
    NI-IMAQ:  The requested serial termination string was not found in the returned buffer.
    Then, If I try to run the camera with MAX, it doesn't work anymore, I have to reboot the camera, and put it in the right mode with the Mikrotron control tool to obtain an image.
    I have seen similar issue on a Basler camera on the forum, and it has been solved by using a camera file to set the different parameters. There is no camera file complete to set all the parameters of the camera, so I had to program them in serial to drive the camera with my Labview routine.
    Could you help me to solve this issue please?
    Thanks
    Bests
    David Dulin

    This forum post is already handled --> SR 1154262.
    Kind regards,
    Corné Westeneng
    Applications Engineer
    NI-Netherlands

  • Windows 7 is Error reporting when running a program generated with in Labview LV 7.1!

    Dear Labviewer's
    Once back in the yaers I'd generated a program with  - Labview 7.1.
    Now I'm informed that the version LV 7.1 is not supported by Windows 7.
    Now when i try to run the Program generated by Labview 7.1.  in windows 7 , I get communication error by the serial port. 
    Is there somehow somthing I can do to get this work. Is there any Runtime engines From NI for Windows 7.?
    Please Feed back if anyone got info for help.
    4 Stars ...
    HFZ
    Solved!
    Go to Solution.

    Have you installed a newer version of the NI-VISA runtime engine that will work with Windows 7?
    The most recent on the NI website appears to be version 5.0.3.
    http://joule.ni.com/nidu/cds/view/p/id/2257/lang/en

  • Mathscript griddata function is very slow in Labview 8.6

    I'm using the griddata function in Mathscript as a direct replacement of a Matlab function we were using in the past.
    I discovered a bug with griddata which was fixed in Labview 8.5. The funciton executed very well in that version.
    I've upgraded the code to LV8.6, and now when executing griddata on the same data set in either 'linear' or 'cubic' mode, the function is MUCH slower than when using 'v4' or 'nearest'. All four methods had the same execution time in LV8.5.1
    I have searched many topics covering issues with griddata and 'cubic', but I'm pretty sure this is a new bug. 
    I've attached a VI containing my data set. Running this VI in 8.5.1 and using 'linear' mode is much faster than in 8.6.
    I'll be going back to Matlab, since the rest of the code has already been upgraded to 8.6 and this makes regression it unusable for my purposes.
    Any ideas?
    Thanks.
    Attachments:
    no_Matlab_griddata_example.vi ‏94 KB

    I should correct one detail in my message. The girddata bug was originally fixed for 8.5.1, not 8.5, per the following CAR: 41OHD4VQ
    The attached VI should be run in 8.5.1 and then in 8.6 ('linear' method) to see the performance decrease.

  • HT5052 I have been trying to upate my ipod to 5.0.1, but every time i get an error message of the server timed out after downloading for over an hour. My broadband speed here is is 1.5mbs, not good any help?

    I have been trying to update my ipod to the 5.0.1 but after waiting for a hour for the download i get an error message that the server has timed out as my broadband speed is not good, could this be the problem and if so how can i get the update?

    I have the same problem I disable msconfig mode all the programs escept windows and apple products but the same error appears at the last second of downloading the update

  • Error in ni visa control out for usb in labview 2009

    Hi,
    I am using labview 2009 in which i have made a vi which communicates with a pic controller through USB interface.
    the vi is working fine in labview 8.6. I tried it in two PCs. but when i run that vi in a PC with labview 2009 then the VISA CONTROL OUT.vi gives error "0xBFFF003E : Could not perform operation because of i o error.". while the control in.vi works fine in both the labview versions and any other PC that i tried.
    I have run the application in total of 4 PCs with same set of cards/interfaces. two of them having labview 8.6 are running fine and giving no error but other two with labview 2009 are giving error.
    and it doesn't stop here.... i searched in the vi and did some experiment and found that when i give Request value input to control out.vi as "0x36 "(as required by my PIC program) then it is giving error but when i give other value such as " 0x35 or 34 or 55"(used for other purpose) then it is not giving error.
    Can it be a PIC programming problem? (i dont think so as everything is fine in other PC with LV 8.6)
    I have already explored the ni forum for this error solution but could not find helpful.
    Can anyone solve my problem?

    I installed labview 8.6 in that machine and made a small program with only 3 vis (visa open session, visa close session and visa usb control out.vi) which is working in LV 8.6 platform.
    Sorry the above statement is not correct actually.
    When i run the program in LV 8.6 it giving that same error but this time it is not displayed as pop up window. so i could not judge that error was still there.

  • Error 229771 occurred at DAQmx Start Task - only in Labview project

    Labview 2011 sp1
    os: W7 32bits
    DAQmx 9.7.0f0
    ni-PCI 6251
    Hi,
    I'm working with a ni-PCI 6251 card. I got the error :  Error -229771 occurred at DAQmx Start Task. Possible reasons :Internal sofware error  occured in MIG software ... when I'm trying to launch my data acquisition vi. This error was already reported in this post :
    http://forums.ni.com/t5/Academic-Hardware-Products​-NI/Error-229771-occurred-at-DAQmx-Start-Task/td-p​...
    I tried to reinstall DAQmx as explained in the post but it unfurtunatly it did'nt fix my issue.
    I've notice the following points :
    1. This error appears randomly, after several reboots the vi will finally run without error
    2. The error only appears when the vi is included in project
    I will really appreciate any kind of help.
    sebastian
    Attachments:
    test_daq_2.vi ‏23 KB

    Bonjour,
    Je vous invite à jeter un oeil sur le lien suivant :
    http://digital.ni.com/public.nsf/allkb/03123D0E8A3​6C48E862577A4005B6BAA?OpenDocument
    Il devrait résoudre votre problématique.
    Cdlt,
    Matthieu RICORD
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • Fatal Internal Error source/manager/thread.cpp line 3472 while starting LabVIEW

    When I try to begin LabVIEW 7.1.1 on my mac OS X 10.4, I see the LV logo and then I get the pop-up window:
    LabVIEW.app Alert
    Fatal Internal Error: "source/manager/thread.cpp", line 3472
    LabVIEW version 7.1.1
    You will lose any unsaved work. For assistance in resolving this
    problem, please relaunch LabVIEW, or contact National Instruments.
    When I click on Continue, it kills LabVIEW. I also get 2 other
    windows...one says Investigate Previous Internal Error...which does not
    do anything, irrespective of what I click in that window.
    The other window is called Controls.
    The last message I see on the LabVIEW splash screen is Server: Exported VIs list ok.
    The LV website says I need to make DLLs re-entrant, but I can't even begin LV to solve this problem.
    Any suggestions?

    Hi Enduro,
    I would suggest creating a service request for this problem at ni.com/ask. The Applications Engineer will be interested in looking at the error log that is being created, so that we can determine if this problem has occurred before.
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

  • Error - 1073741819 occurred when i try to print in LabVIEW

    error - 1073741819 occurred when i use the "set Report font.vi" during to print in LabVIEW,but i am using the 6.1 version and not the new one, how can i solve this problem?
    -attachement:
    Attachments:
    Print help.vi ‏112 KB

    b_rani wrote:
    error - 1073741819 occurred when i use the "set Report font.vi" during to print in LabVIEW,but i am using the 6.1 version and not the new one, how can i solve this problem?
    -attachement:
    Hi b_rani
    Check this knowledgebase:
    http://digital.ni.com/public.nsf/websearch/5A42F1725790DFBC86256B900075F884?OpenDocument
    Hope this helps
    Regards,
    Manuel Wielander
    NI

  • I keep getting different errors when i try to upgrade why? i have been 5 hours trying to figure out this ? im soo freaked

    help please.
    im on firmwere 4.3.5 im trying to go up to 5.0...

    Windows 7 includes DirectX 11 in its baseline and it is not necessary to install another version of it.  Your problems may be caused by the installation of the version of DirectX you installed.  Uninstall the one you installed and see if you
    still have the errors.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Error  to the past in the Eclipse - List String tags = Arrays.asList("Hello", "Tutorial"); in

    Hi,
    When I past the Setting properties List<String> tags = Arrays.asList("Hello", "Tutorial"); in the Eclipse I have this error:
    The type List is not generic; it cannot be parameterized with arguments <String>            HelloWorldServlet.java      /hello-world/src/com/sap/cloud/sample/helloworld      line 98           Java Problem
    Why?
    Weides

    Hi Weides...
    Maybe, accidently, when you first hit "organize imports" after you pasted that code fragment, and you were asked which "List" you want to import most probably you selected java.awt.List (In java you have at least the awt list and the java.util.List)
    Now... do the following:
    1. Delete the import statement of import java.awt.List and delete the import java.util.List
    2. Put back List<String>
    3. Then, Organize Imports again , and when it prompted for the choice, choose java.util.List.
    I hope that works for you.
    Regards.
    (PD. Useful checks will be appreciated)

  • Simulate induction motor online starting with labview

    Hi All,
             I want to simulate induction motor online starting with Labview. I have installed labview 2009,with control design and simulation,simulation interface toolkit
    Solved!
    Go to Solution.

    Have you looked at the free online LabVIEW tutorials?
    Introduction to LabVIEW 3 hour tutorial
    Introduction to LabVIEW 6 hour tutorial
    Also, there is a control design and simulation tutorial:
    Introduction to LabVIEW in 3 Hours for Control Design and Simulation
    Check those out...they should get you started.

Maybe you are looking for

  • Generate SSRS Report and save as PDF in SharePoint

    Hi, I am working on a SharePoint 2010 Visual WebPart that lets a user click a button to generata a SSRS report and save the report in a SharePoint Library as a PDF file.  Code is mentioned below: try string siteContext = SPContext.Current.Web.Url; st

  • Where clause in UPDATE statement is ignored

    I have the following procedure that updates a field in a table. The only problem is that all rows in the table are updated like the update statement doesn't have a where clause. When I hard code the number (733) in the where clause it works as expect

  • Can't get past "Login" button in Dw

    Hey Dw community!  I have installed the BC extension and restarted everything, but cannot seem to get passed the "Login" button in Dw. I click and absolutely nothing happens. I have read a few forums telling us to deactivate and delete 'open.db' and

  • Missing built-in functions

    I am using MS SQL Server Management Studio version 10.50. Some built-in functions are missing, such as LAST_VALUE and IIF. Where can I get those?

  • Load Trait behavior question

    Hi all, I've been working with OSMF for a few months now and I've recently noticed some interesting behavior regarding the trait process.  It seems that with a live stream, the getTraitOrThrow() method get's fired every MediaPlayer.currentTimeUpdateI