What is Labview scripting?

What is LabVIEW scripting? I have seen it being mentioned on this and lavag forums? What can we do with it (that normal programming does not allow)? Where can I learn about it?

Imagine a building: This is LabVIEW.
This building has several levels. The entrance is all nice and shiny. This is the Express and whatever stuff meant for starters with LabVIEW. Then there are some levels with more or less involved rooms. Things like doing DAQ, Instrument Control, Advanced functionality to control the bits and bytes in LabVIEW. Above that there is an attic. It was built somewhere along with the rest but never really finshed. It contains stuff developed by LabVIEW developers for their own internal use or as as a proof of concept. These things have lots of sharp edges, rusty nails sticking out and all in all can be very powerful but at the same time also make the entire building crumble down if you happen to pull at the wrong beam.
What it means is this is stuff that exists in LabVIEW, but hasn't been designed to be used by the average LabVIEW user at all. It's mostly unfinshed work in progress, unpolished, raw and with the possibility for some nasty results. It may work, or not, crash your system, eat your favorite chocolate chips cookies, or do something completely different a computer is never supposed to do. The warnings you have gotten so far simply mean, you can try to use it but if you scratch your skin on one of those rusty nails don't blame anyone but yourself for being not carful enough.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • LabVIEW Scripting History

    To be honest I thought about posting this at the LabVIEW sub-forum, but the topic is more curiosity than anything else, and I didn't want to clutter that forum when this one is sorta dedicated to curiosity, among other things.
    So I was thinking about this the other night.  LabVIEW Scripting is one of my favorite features of LabVIEW.  The fact that I can write code, in a graphical language, and that code can generate code in that graphical language, is facinating to me.  Bad example but I can't write a PowerPoint presentation that makes PowerPoint presentations.  Which made me wonder, how early was Scripting used?  And how early was it planned to be a feature of LabVIEW?
    I know that scripting existed in some semi-public form in LabVIEW 7 era.  At the time NI gave out to select partners that needed scripting functionality, the ability to use it, it was incomplete, and undocumented.  But what is the earliest example of NI using scripting publicly, or experimentally?
    It just seems that a lot of work has to go into a thing like Scripting, and I'm sure R&D worked on it for many years.  So was it a feature NI planned from since version 1.0?  Or was it planned from 3.x where there were massive changes?  Or planned from 5.x where there were even more massive changes?  Any history of Scripting or insite is appreciated.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

    RavensFan wrote:
    Something that I think would be cool to have is something like the Excel Macro Recorder.  Where you do something manually, but the application is in the background translating that to code for you.  
    It seems like it would be a lot of development effort to program something like that, and I don't use scripting often enough that it would be a huge help to me, but it would be cool if it existed.
    Oh I had forgotten about that feature, which I used all the time.  One issue you find doing that, is the steps you perform aren't always translated the way you expect.  Like I may want to select the workbook named "My Workbook".  So turn on recording and select that workbook.  Looking at the VBA recorded it might not say it selected "My Workbook" but instead it may say it selected the second workbook in the document.  I'd assume if LabVIEW had a recording feature it would have similar limitations, where it would produce the exact code you did, but maybe not the way you wanted.
    Still I think this is a fantastic idea that should be on the idea exchange board.  But to be honest I never expect it to be a supported feature.  It sounds like too large of a task.  Scripting at times can be confusing knowing what is possible and how.  This would take away some of that confusion by showing code that did what the user did.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Firefox can't play Boost Mobile ringtones without a supposed "ActiveX" script, what kind of script do I need?

    When I go to the Boost Mobile website and try to listen to ringtones there it directs me to a website to download a type of ActiveX script/plugin for Firefox. Well, the latest version is for Firefox 1.5, which is long gone. I'm not sure what kind of script or plugin I need to play these ringtones. Can anyone help direct me in the right direction? I have the most updated version of Firefox and I am using Windows Vista.
    == I visited http://content.boostmobile.com/boostwebapp/boostdefault.do#1

    Firefox has not used ActiveX in a very long time. See: [[ActiveX]]
    You can try using this add-ons and it will use the IE you have installed on your system to execute ActiveX in that special tab:
    https://addons.mozilla.org/en-US/firefox/addon/10909
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''You'''</u> ~~red:<u>'''MAY'''</u>~~ <u>'''need to Update Adobe Reader for Firefox (aka Adobe PDF Plug-In For Firefox)'''</u>: your ver. N/A; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Start > Program Files, find and click Adobe Reader to open, click Help, click Check for Updates.
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer.
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • What is java script and how do I enable it?

    What is java script and how do I enable it

    JavaScript is enabled by default for Adobe Reader for iOS, and I don't see that there's a way to disable it. It is currently used within a document to control the behavior of form fields, such as automatic formatting and calculations. Only a small subset of what's available in the desktop version is available in the mobile versions.

  • Create local variable using labview scripting

    I am trying to use labview scripting to create a control and a local variable for that control.  I want both the local variable and the control contained inside a case structure.  My problems are twofold:
    1. the local variable is left blank/unnamed
    2. the local variable is wired outside of the case structure, even though I set it's owner to be the same as the owner for the control (which is placed inside the case structure).
    The flat panel is there because I thought that my problem might be a result of the local var being created before the actual control, so this just forces the control to be created first.  The other thing I wonder about is the VI Object Class for the local variable.  I have tried 'Node' and Control->Boolean, but neither worked.
    I have attached a jpg of the code I'm talking about.  The picture on thetop is of the code in question.  The picture on the bottom is of the resulting code that's created....
    Can anyone offer any help?
    Thank you...
    Attachments:
    vi_scripting_lv.png ‏95 KB

    The reason your locals aren't tied to a control, is because you didn't make a local variable from any control.  Use the Boolean reference wire and wire it to an Invoke Node and select the Create >> Local Variable method.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • What does LabVIEW mean by "Error 71: File Datalog Type Conflict"

    What does LabVIEW mean by "Error 71: File Datalog Type Conflict" (Hex code:47)
    Thank you.

    Please provide us further information on when you are getting the error and what the functionality of the VI is. That would help us to troubleshoot your issue.
    Is the error caused by a similar situation as the one descibed in this KnowledgeBase?
    Best regards,
    Philip C.
    National Instruments
    - Philip Courtois, Thinkbot Solutions

  • How to create a strictly typed refnum control using LabVIEW scripting

    I wish to use LabVIEW scripting to create a strictly-typed refnum control that is bound to my custom control (a type-defined cluster), but I'm unfamiliar with scripting and can't see how to do it.
    If I create a New VI Object, using Control Refnum as the Style, how do I provide my custom control to the VI Object Class terminal? When I try using a reference to my custom control.ctl file (using Open VI reference) I get an error: "Error 1057 occurred... Type mismatch: Object cannot be cast to the specified type."
    Or, if I create a new Control Refnum as above, using a standard Cluster as the VI Object Class, how do I then convert this refnum control to a strictly typed refnum that is bound to my custom cluster control type?
    Thanks in advance for any advice,
    Thoric (CLA, CLED, CTD and LabVIEW Champion)
    Solved!
    Go to Solution.

    Here we go...
    You have to create a new Control VI and then specify the VI Type as Typedef.
    Regards,
    Da Helmut
    Attachments:
    example.vi ‏22 KB

  • What does "unresponsive script" warning mean?

    what does "unresponsive script" warning mean?

    I'm having the same problem with Firefox 19 on both OS X and Windows 7. It seems to be tied to Facebook (which I have as a pinned tab). I don't have to force quit though - just hit the 'stop script' button and things proceed as usual.
    I've a bug report into Firefox - if you don't have Facebook open in a tab, I don't know why you're getting the same error message.
    Clinton
    Update: Just received a reply - I'll give it a shot:
    "Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.

  • What is the Script Tool Kit?

    what is photoshops  "script tool kit" and what is it used for

    There is a whole forum on ps scripting.  So check here  http://forums.adobe.com/community/photoshop/photoshop_scripting

  • What is shell scripting? get me notes of that... how shell script is relate

    what is shell scripting? get me notes of that... how shell scripting is related to sql or plsql?

    shell scripting is the process of creating programs which are able to execute using a shell.
    a shell is the program you use when you are logged in to a linux (or unix) system via ssh (or if you are outdated by 10 years: telnet).
    there are much shells, traditionally, unix system use the bourne shell (visible as sh most of the time), the kornshell (ksh) and c-shell (csh) extended the bourne shell functionality. nowadays there are very much shells, most linux systems use the bourne again shell (bash). the bash shell is available for most linux/unix systems, I always advise to use it on any system, so the shell functions the same on all platforms.
    if you want to know more about shell scripting, use "google". the website of google is http://www.google.com, and usage is free. use the keywords "bash shell scripting".

  • How to track what your Calc Script/Business Rule is doing?

    Hi,
    I wanted to know the methods or the best way to keep a track of what your Calculation Script of Business Rule is doing once you execute it.
    Or suppose it fails for some reason and the reason is not a syntax error (that it usually would show up in EAS while validating)how can you know what's going wrong?
    Please let me know !
    ~ Adella

    All the CDFs are available at - https://www.samplecode.oracle.com/tracker/tracking/linkid/prpl1004/action/ExecuteQuery?query=essbase1
    There are also the Echo CDFs in the String collection -
    @JechoBoth - Echoes back all arguments passed to the function. To pass an array of arguments use @List(comma delimited list).
    @JechoString - Echoes back all arguments passed to the function. To pass an array of arguments use @List(comma delimited list).
    @JechoDouble - Echoes back all arguments passed to the function. To pass an array of arguments use @List(comma delimited list).
    Saying that they usually need to be a calc block so if you are expecting to find where a calc is up to in an aggregation it is not going to tell you much.
    Also you have to watch out if you are calculating a large number of blocks then you can end up outputing more information that you would ever need.
    If you look in the essbase application log you can actually get an idea of which part of the script the calc is executing and times without the need for CDFs.
    Also if a script fails then the app log is the place to go and check.
    You can also look at the standard calc commands in essbase
    SET NOTICE - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?set_notice.html
    "Monitors the progress of your calculation by providing completion notices at intervals during the calculation. The number of notices depends on the level you specify."
    SET MSG - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?set_msg.html
    "Sets the level of messaging you want returned about calculations, and enables simulated calculations."
    or if on 11.1.2.x then the @RETURN function - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?return.html
    "Exits the calculation immediately under specified logical conditions. You can use the IF... ELSEIF calculation command block to specify the logical error conditions, and use the @RETURN function to exit the calculation with customized error messages and levels."
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Speeding up LabVIEW scripts generated by IMAQ Vision Builder

    Hi,
    I am an experienced c++ software developer, I have mainly used Microsoft's Visual Studio for development. Now, I am developing a real time application using LabView and IMAQ Vision Builder. The LabView application I developed calls a script that was generated by IMAQ vision builder...the application works, but it is too slow for the processing I need to do. In C++ I wouldn't have any trouble speeding the application up, but I am still learning how labview handles threads etc. Does anyone have any ideas?

    Your question is very difficult to answer. Without knowing anything about the processing you are doing, I can't suggest anything to increase the speed.
    Vision Builder does not produce the most efficient code possible. It is likely that the algorithm could be improved, but this really depends on what you are doing. It is also possible that your acquisition could be what is slowing you down, especially if you are using Snap.
    Perhaps if you post the code generated by Vision Builder it will be possible to help you more.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • What is LabVIEW MathScript​?

    The subject of this forum, LabVIEW MathScript, is a new
    feature for LabVIEW 8 that adds math-oriented, textual programming to LabVIEW.
    MathScript joins graphical dataflow programming as another means to define the
    custom software you develop using LabVIEW. Working with LabVIEW, you can choose
    a textual approach, a graphical approach, or a combination of the two. You can
    choose the most effective syntax for technical computing, whether you are
    developing algorithms, exploring signal processing concepts, or analyzing
    results. The significance of LabVIEW and MathScript lies in this “best of both
    worlds” approach that it facilitates.
    At the heart of LabVIEW MathScript is a high-level text-based
    programming language with syntax and functionality that abstracts the
    complexity of tasks related to signal processing, analysis, and math. MathScript
    includes more than 500 built-in functions for such work so you can define your
    own new user-defined functions. MathScript is generally compatible with m-file
    script syntax, the syntax widely used by alternative technical computing
    software such as The MathWorks, Inc. MATLAB® software, Comsol, Inc.
    COMSOL ScriptTM software and others.
    Such compatibility means that you can work with many previously developed m-file
    scripts such as those available in engineering textbooks or on web sites that
    distribute open-source m-file scripts.
    Please visit http://ni.com/mathscript for more
    information about LabVIEW MathScript including:
    Inside
    MathScript
    A white paper with a more extensive overview
    Function
    Lists
    Complete and abridged lists of built-in LabVIEW MathScript functions
    Examples
    Links to online examples for LabVIEW MathScript
    Much more…
    MATLAB® is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners.
    Sam Shearman

    Hello,
    Thank you very much for your idea. It is just what I was looking for. I have used the polynomial evaluation.
    My origin polynomial is an acquired signal V(t) and I get a new signal G(t) that takes value each second. I would like
    a more continues signal. For example it changes each 0.2 second. Have I to modify something in the polynomial evaluation.vi?
    Thank you very much for your time. Sincerely,
    John
    Attachments:
    draw.jpg ‏961 KB
    V(t).jpg ‏600 KB
    G(t).jpg ‏600 KB

  • What is labview digital write-to-line logic high voltage?

    i'm using a pci-6503 daq hardware and cb-50lp.I'm currently doing a project to interface a labview vi to a programmable chip(downloaded with a vhdl program),using the daq hardware.The chip must function according to the labview program.I'm using 2 digital write-to-lines and 6 digital read-from-lines to interface to the chip.
    Problem:
    the 6 digital read-from-lines are able to read from the chip,but the 2 digital write-to-lines are unable to reach a logic high of 5v.This means that the labview vi can only read and unable to write to the chip to function(only one way communication).In the daq wizard,when using the test panel to test the individual lines of port a,b and c,it is able to write a good
    logic low and good logic high(5v),even when all the lines are being used altogther.But when the labview vi is being run, the write-to-line cannot write a good logic high,thus unable to interface completely with the chip.
    Please advise.Urgent!
    grays

    LabVIEW does not do anything different to the PCI-6503. NI-DAQ outputs the same 5V from MAX and LabVIEW. Are you sure the FPGA isn't driving 0V on the same line? You could test this by putting a small resistor between the FPGA and the DAQ card. See what the voltage is across the resistor.
    Even at 2.5mA, the 6503 should output 3.7V.

  • What image gallery script is this?

    Hi,
    Has someone any clue about what kind of image gallery script is on this site? Pictures scale to page size in full screen , easy forward-backward browsing. And thats it, simple and user friendly. Most of image galleries are quite heavy in practice. Im looking for something much the same.
    http://ryanchurch.com/john-carter-3dwork/
    There is also similar on this portal http://cghub.com/ so it looks like it's something universal but can't find it anywhere.

    do you mean something like this :
    http://www.html.it/demo/javascript/33315/demo_index.html
    or thishttp://www.html.it/demo/javascript/33314/demo_index.html
    well, if yes they can be downloaded from here :
    http://www.html.it/script/griglia-dinamica-stile-pinterest-con-jquery/ (press "scarica" who mean "Download")
    http://www.html.it/script/photo-galley-con-filtraggio-con-jquery/ (like the precedent)
    hope this coul be of help ^^
    bye
    T.T.

Maybe you are looking for