Torecallapreviouscommandstartingwith certaincharacters,typethesecharacters followedbypressingtheArrowDownbuttonon thekeyboard.Tryrecallingtheprevious command(s)beginningwiththeacharacter: LearningtheMathScript languageRecallingpreviouscommands Torecallpreviouscommands,presstheArrowUp buttononthekeyboardasmanytimesas needed. a=5 b=7,c=a+b Withtheabovecommandsthevalueofaisnotdisplayed, whilethevaluesofbandcaredisplayed Withsemicolontheresultofthecommandisnotdisplayedin theOutputwindow,butthecommandisexecuted. Severalcommandsmaybewrittenononeline,separatingthe commandsusingeithersemicolonorcomma. LearningtheMathScript language 1+2 Theresultis3 Toadd4toans: ans+4
LearningtheMathScript languageStartup OpentheMathScript window(menuTools/MathScript Window).ĮxecutethefollowingcommandsintheCommand window(bypressingtheEnterbuttononthe keyboard),andobservetheresultsintheOutput window. History:Showsalistofpreviouscommandsthatyouhaveexecuted. Script:Opensascripteditor.ToopenanotherScripteditor:Select themenu(intheMathScript window)File/NewScriptEditor. Mathscript UsingMathscript WindowTheWorkspacewindow,whichcontainstheVariables,Script,and History(sub)windows containingthefollowingtabs: Variables:Listsgeneratedvariables.Thenumericalvalueofthese variablescanbedisplayed.Thevaluecanalsobeplottedgraphically byselectingGraphicsFirstintheVariablesdialogwindow. Output Windowwhere executed commands and numerical results are shown. LabVIEW MathscriptMathScript canbeusedintwoways: InaMathScript node whichappearsasaframe insidetheBlockdiagramofaVI(availableonthe Functions/Mathematics/Scripts&Formulas palette.) InaMathScript window asadesktop mathematicaltoolindependentofLabVIEW LabVIEW MathscriptALabVIEW toolforexecutingtextualmathematical commands Matrixandvectorbasedcalculations(linearalgebra) Visualizationofdatainplots Runningscriptscontaininganumberofcommandswritten inafile Alargenumberofmathematicalfunctions.MathScript commandareequaltoMATLABcommands(some MATLABcommandsmaynot beimplemented).