Running a JavaScript from within a FAST-TCF script
Running a JavaScript from within a FAST-TCF script
JavaScript scripts can also be run from within a FAST-TCF script using the "javascript" option
javascript "E:\javascripts\new_function.js"
Within a FAST-TCF script curves are usually accessed via curve tags. If a JavaScript is used within a FAST-TCF script it is recommended that the Curve.GetFromTag() function is used to access existing curves. If a new curve is created by a JavaScript within a FAST-TCF script then the new curve can be accessed within the FAST-TCF script using the "tag" parameter of the curve creation function
new_curve = new Curve(id,tag,label,x-axis label,y-axis label);
If a tag is not specified in the curve creation function
new_curve = new Curve(id );
then a curve tag will be generated automatically for the curve. The 1st curve created within the script will be tagged " curve_js_1 ", the 2nd " curve_js_2 " ...