Slider - setting through global variables

Dear friends. Is it possible to change the "maximum value" on the module cursor externally, using the global variable?

I am programming the communication with the shoot-syringe TSA and I need to change the range of rates according to the diameter used the syringe. I can make six different sliders for each diameter, but it is too inconvenient. Do you have someone has an idea? I tried to set the variable to the maximum value in the field of slider module, but only a certain number was possible.

What DASYLab version do you use?

My cursor with DASYLab 12 module allows a Global Variable for the Min and Max, and she changes her running.

A way to tell whether a Global Variable is supported... right click in the parameter field.

Tags: NI Products

Similar Questions

  • Need help to set up global variables

    Need to put in place a global variable that I can access and make changes using button actions...

    Thank you

    Code Stage.compositionReady:

    sym.boatPosition = 1;

    Code button:

    If (sym.getComposition () .getStage () .boatPosition == 1) {}

    SYM. Play ("mylabel");

    }

  • Setting the value of an element of Application (defining a global variable);

    Apex 3.2.0.00.27, I need to initialize a global variable to 0 to implement a variable to test to see if something on the page has changed. Will update to 1 when some lists of selection on the page are changed. Read through a few similar questions and answers within the forum, as well as blogs and other sites. So, I think that what I do is the way forward in this regard. Unfortunately, my point/global application initialization is not past yet. Here's an overview of what has been implemented:

    1) has created an element of demand, G_CLASSIFICATION_ID_NEW in the shared components.
    (2) created the Javascript (JS) function called by addLoadEvent area header html page so when the page is loaded, the application global/G_CLASSIFICATION_ID_NEW element should be set to 0 with the following JS and using AJAX and htmldb_GET:

    < script type = "text/javascript" >
    function initVars()
    {
    Alert ("before the initvars get");
    get var = new htmldb_Get (null, $x('pFlowId').value, null, 22);
    Get.Add ('G_CLASSIFICATION_ID_NEW', 0);
    gReturn = get.get ();
    {if (gReturn)}
    Alert (gReturn.value);
    }
    get = null;
    Alert ("after get initvars");
    }

    Alert ("before the call to the initpage");
    addLoadEvent (initVars ());
    < /script >

    I used the htmldb_Get successfully to populate other global variables and processes on request with onchange THAT JS call in the attributes of html form elements select list on the page. Later, I check the globals via the Session view and research on elements of Application. Unfortunately, I'm missing something, because my G_CLASSIFICATION_ID_NEW never gets filled when I load the page. The Alerts popup every when the page is loaded, so I know that the script is running when the page loads. alert (gReturn.value) is not defined. And, of course, the G_CLASSIFICATION_ID_NEW to 0 does not place.

    I tried the htmldb_Get with her call for a process of application and without (null value). What I read, you should not need to call an application process to have the get.add of the value of the global variable. Here again, this could be where I'm wrong. However, as I mentioned, it works for the other functions called from an onchange to fill a part of the application, but the page has already loaded when the onchange (s) executed. They can work because the page is already loaded when the onchange is called. My point here is that my other on application processes are NOT set or modify global variables at all. The globals are preparing with the get.add (< element app >, < value >) part of my other JS works within the HTML header area. So I'm inclined to believe that I don't need 'application_process = < some_odp >' set parameter, but if it is not true, please let me know. If so, what should be in the application process-that is to say, what would be the purpose of the get.add (< application item >, < value >) if I set the global variable in the application process on because it's the only thing I could think to do within an application process on for this?

    If someone can point out what I'm not understand or, failing to do it here, that would be great. I am doing fine with APEX, but don't consider myself a guru with it immediately. I'm certainly not a JS/AJAX guru, and when things like that, go astray, I get bogged down because I'm not sure of the problem. So, I hope that you gurus who monitor this forum can get going in the right direction.

    Thank you
    Bob

    Hello

    Create page 0 (zero) to your application.
    Then try this javascript in your HTML page header

    
    

    BR, Jari

  • Global variable setting within the chronology of the symbol, how?

    Hello!

    I came across a problem on board animate CC. I've set a global variable, in which I stores the name of a loaded composition and works peachy as long as it has defined (variable) on the main timeline. But I also need to change its value inside the mini menu, which is a symbol with its own timetable and actions. Symbol of the elements (menus) can read the overall (as expected) var on for example the click event, but I can't change its value. How can I do?

    Pawel

    K, obtained at the bottom of the present: After experimenting a little more, it turns out, I did nothing wrong, it's just that Edge animate Gets a little finicky with the order to execute commands. Moving from one line of code 'upward the lader' did, what I was trying to achieve for so long.

    Lesson learned: when you work with Edge, if something doesn't work and the code seems to be ok, try to rearange code, regardless of how stupid it sounds.

    Thanks for your help and your time, robboerman and resdesign. I appreciate it.

  • How to make a USB-TC01 temperature data a global variable?

    Hi all!  I have a simple question (probably).  I bought the box USB-TC01 and with the software came a VI called LabVIEWTempLogger.  This VI reads a thermocouple voltage and internal conversions using DAQmx and a CYC edge to give a reading of simple temperature.  My problem is that I want to use this temperature in an another VI, then I want to make a global variable of temperature of LabVIEWTempLogger.  How to set a global variable such as temperature of LabVIEWTempLogger?  Thank you!

    You must get out of the recorder temperature VI the DAQ Assistant. Put it in a Subvi if you wish.

    Your main VI has some problems. The first fact a comparison is equal to the current temperature. Never make an equal comparison on a floating point number. Use in the range and force.

    The local 'Set Temp deg C' should be replaced by a wire from the Terminal. All local variables should be replaced by a wire. You can easily have the cable terminals from outside the main loop.

    Can't the difference in code in the States True and False when you read voltage.

    Don't use VISA bytes to the Serial Port. It's just bad style. You programmed it for a terminal character LF to get rid of fixed forward and set the number of bytes to read at a high number. Playback will wait until the stop character is detected and then automatically end.

    Finally, you have already created a world so I do not understand your questions about it.

  • Assignment of global variables

    I apologize if this is a fundamental and simple question, but I was pulling my hair out for the last week trying to get this working and Google becomes sick and tired of my questions to get answers.  This should not be so difficult, but I'm not a designer, not a programmer, I'm just a tech trying to make my life easier, then Yes, I brought it on me.

    I have converted an InDesign form that has a bunch of boxes in a document of LiveCycle.  I want the boxes when they are verified to assign a value to the variable assocated.  In the properties of the form, I've set up global variables and assign the value to '0 '.

    The box I put the method/property to change to have the following code:

    If (topmostSubform.Page1.Back_Cover.rawValue == 1)

    BC.value = 6300;

    on the other

    BC.value = 0;

    I have a textbox that I am taking all these values and based on what is checked and this is not it must calculate the total for this field.  Here is the code I have for the calculation of the value of text using the method/property to calculate:

    premium.rawValue = BC.value + IFC.value + IBC.value;  There are three check boxes associated with this value

    However, no matter what I do not values seem to are they assigned to the variable of BC.

    Can someone tell me please in common sense as to why it doesn't work?

    Thank you very much.

    Tom

    Hello

    I think Steve is right, you want to avoid using global (or form) variables in this case, particularly in the case of calculating as any change that value will not cause a recalculation.  I have also try and keep all the logic of calculation in one place.  So, in the case of calculating the premium field, I would put the following JavaScript code;

    this.rawValue = (Back_Cover.rawValue = 'On')? 6300: 0;

    this.rawValue += (Inside_Front_Cover.rawValue = 'On')? 5775: 0;

    this.rawValue += (Inside_Back_Cover.rawValue = 'On')? 5350: 0;

    Note that the power of your checkboxes values are the strings 'On' and 'Off '.

    Bruce.

    PS nice shape looking

  • Acrobat javascript global variable

    What is the procedure step by step on how to set your global variable and where to report?

    You can create a global variable when you want, then when you do that really depends on when and where it should be accessible. If you provide more information on how you intend to use it, we can provide further details. Here are the basics:

    http://livedocs.Adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_AcrobatForms.76.38.ht ml

    http://livedocs.Adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.774.html

    The other important question is whether it should be stored so it can be accessed at the next startup of Acrobat. This is what the method of global.setPersistent: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.778.html

  • How to create a Global Variable through the Project Explorer

    Hello world!

    I know how to create a global variable (in a vi through the range of functions...).

    but I'm missing a way to create one via the Project Explorer.

    It's a missing feature or just this documentation (and the intuition of myself) are missing?

    It would be very convenient.

    THX for your time and hope that answers.

    jwscs

    Right click on my computer > new > new... > select Global Variable.

    EDIT: although I agree with Gerd (he probably wondering why you need so we can recommend a better way ), I rarely use them in easy to write once - read many applications such as security levels overall program at initialization (VER) to read later, but NOT modified.  I know it would be better to make a good class, functional Global Variable (FGV) or a motor Action (AE) but globals ARE practical and safe IF used wisely.

  • Is it possible to replace occurrences of a global variable massively while also setting up the components of connector?

    I work through some of my old code now, looking to increase the performance where I can. Here's my situation:

    1. I used Global Variables to spread a few constants in my screws, instead of a proper typedefed cluster.

    2. execution does not have an extension, but no matter when I save the project, I would say 50 to 60 percent of the economy/compling time is spent on the screw of 300 or more with global variables. I suspect it has to do with the link between the overhead associated with the global.

    3. Ideally, I would like to replace this:

    With something like this:

    While also putting the connector of this pane:

    To do this:

    What is the VI server is capable of? You can assume that the VI in question have very predictable names, matching the regular expression:

    subname[0-9]^3
    

    Is it still worth it to replace?

    I don't know what you mean by compile time.  One of my big projects LabVIEW RT, which has about a thousand of screws, a lot of VIGs (FGVs), engines of the Action, even a few Globals and variable shared.  In my case, the thing that seems to "slow down" the compilation the most is the links to the report generation tool (I use Excel workbooks for 'drive' of experience and also save the data a bit).  If I do a building together, to build this routine and about 6 'support' routines (data analysis, utility Configuration, etc.), it may take a minute, but I can't find this excessive nor a charge (compared to the facility to isolate/encapsulate features in screws as FGVs).  So I guess I don't understand the "real problem"...

    Bob Schor

  • How to set global variables for use by all THE #subform [0] items of form1. ?

    Hi all

    I don't know how to code javascript but am new to Adobe LiveCycle.  When I open the script editor, I have the following code (the code is in United Nations in bold):

    -form1. #subform [0]: initialize :-(FormCalc, client).

    //////////////////////////////
    TO START: SET GLOBAL PRICES.
    //////////////////////////////

    var Cityscope_Sydney_CostUser1 = 60,39;
    var Cityscope_Sydney_CostUsers2to5 = 3.02;
    var Cityscope_Sydney_CostUsers6to20 = 1.21;
    var Cityscope_Sydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_Sydney_CostHardCopyWithoutOnline = 54,67;
    var Cityscope_Sydney_CostHardCopyAdditional = 14.59;

    var Cityscope_NorthSydney_CostUser1 = 48,40;
    var Cityscope_NorthSydney_CostUsers2to5 = 2.42;
    var Cityscope_NorthSydney_CostUsers6to20 = 0.97;
    var Cityscope_NorthSydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_NorthSydney_CostHardCopyWithoutOnline = 43,54;
    var Cityscope_NorthSydney_CostHardCopyAdditional = 14.59;


    ////////////////////////////
    END: SET GLOBAL PRICES.
    ////////////////////////////

    -form1. #subform [0]: enter :-(FormCalc, client).

    -form1. #subform [0]: output :-(FormCalc, client).

    -form1. #subform [0]: calculate :-(FormCalc, client).

    -form1. #subform [0]: validate :-(FormCalc, client).

    -form1. #subform [0]: preSave - (FormCalc, client).

    < < = etc etc etc = > >

    -form1. #subform [0]. Item1Cost::initialize :-(JavaScript, client).

    -form1. #subform [0]. Item1Cost::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    Store the values of the form of friendly names.
    var AreaSelected = Item1Area.rawValue;
    var NumberOfUsersSelected = Item1Users.rawValue;

    Declare other variables.
    var Users1Calculation;
    var Users2to5Calculation;
    var Users6to20Calculation;


    Calculate the cost to the "components" user will depend on the number of users selected for the region.
    Switch (true)
    {
    If (NumberOfUsersSelected < 2):
    Users1Calculation = NumberOfUsersSelected * Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 0.00;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 1 & & NumberOfUsersSelected < 6):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = (NumberOfUsersSelected - 1) * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 5):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 4 * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = (NumberOfUsersSelected - 5) * Cityscope_Sydney_CostUsers6to20;
    break;
    by default:
    Alert ("BROKEN: calculate the individual components of cost of use will depend on the number of users selected for the region.");

    }

    apply the total cost for this article
    Item1Cost.RawValue = Users1Calculation + Users2to5Calculation + Users6to20Calculation;

    -form1. #subform [0]. Item1Cost::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::ready:layout - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::initialize :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::calculate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Users::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Users::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::ready:layout - (FormCalc, client)-

    .. and so on and so forth...

    In short, I want the code in:

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    .. .to be able to access the variables I created in:

    -form1. #subform [0]: initialize :-(FormCalc, client).


    (I guess that's where I store global variables)

    At this point, global variables are not accessible with the above configuration.  Was the only one I can get this working is to cut and paste the Globals in each item of form1. #subform [0], which of course defeats the purpose of global variables!  I intend to have a lot more items so wouldn't duplicate global variables for each of them!

    Can someone show me how to do this?

    Any help is very appreciated!

    Thank you

    Stanbridge

    Post edited by: stanbridgej - colors and fonts or not will not save.  Are bolded my question make (non-fat) code easier to read (I hope).

    I haven't used Formccalc, but I thought it would be the same regardless. Insert a script object to the top of the hierarchy and call it, for example "sco." Paste the Globals. Then refer to variables of the extent that sco. Cityscope_Sydney_CostUser1, etc. Make one

    App.Alert (sco. Cityscope_Sydney_CostUser1);

    one of the fields. If the debugger is activated, it will tell you if it cannot resolve the reference as "sco. In this case, you may need to use the som expression to reference the script object, for example

    var scoScript = xfa.resolveNode ("topOfHierarchy.sco");

    scoScript.Cityscope_Sydney_CostUser1

    But if as close as possible to the top of the hierarchy above should work.

  • Using global variables in a device custom

    Hello world

    I have problems with the passing of data through my device customized using global variables. I want to allow a user to select a RIO device address when you set up the system definition file. This is recorded in a global variable using the hand Page VI. I would later use this RIO device address in RT driver to deploy a bitfile. I can hard-code, but it is much more convenient to use a global.

    When I try to store the address of the global variable, it updates the value temporarily (I confirmed that the structure of the event recognizes the change of value). When I click the node of the tree to define system linked to the Main Page VI and then click on it again, the hand Page VI runs again. I wrote the code to repopulate the address of device of RIO with the last value stored in the global variable, but it is empty. I've included the VI global variables in my build, so I can't imagine why it can reset this value.

    Any help would be appreciated!

    Thank you

    Mitch

    Have you tried to use the custom device properties to store this value instead of GVs?

    Configuration VI, you can set this property, and if I'm not mistaken, you can read these properties on the RT driver.

  • Functional Global Variables: an indicator can be used instead of a shift register?

    It is a simple question, but I can't find an answer to it. The model agreed to a functional Global Variable is to use an uninitialized as in this example shift register:

    ('Référence IN' and ' Reference to "is actually a pile of references.) There is also a "Se Refnum" case, which comes the straight through the tunnels shift register.

    My question is, why can't we do store the indicator data? It is much simpler to use a shift register (IMHO a non obvious way to store global data!):

    The case "Se Refnum" does absolutely nothing. Other functions such as erasure of data can be implemented just as easily. The advantage of the FGV to help avoid race conditions is maintained because you always use the VI to access the data.

    JonP says:


    Not so much, the Inidicator can happily live outside the case structure, together and Clear would be just assign different values.

    If you have only a case structure, the indicator could not live outside of it.  In order to maintain the indicator data, your design requires that it is not written in for a case of Get.  If you have an exterior structure deal that decides on 'Get' or 'set or clear' and (in the case of "Set or clear") contains the terminal of the indicator and a classiquee case that decides on 'Set' or 'clear '.  However, I would consider this a design below using the standard template of the FGV.

    The difficulty with retrieving the value if you want to do a read operation / writing change. But LV provides many ways to retrieve data from an indicator (one you don't mention is the 'Value' property), do you mean that's all "incorrect"?

    Yes (I mean that they are all incorrect).

    You could hack your way around the design to work with a single structure of matter and the terminal of the indicator being outside using a method to read the value of the indicator and through a tunnel to the structure of the case through wiring for the tunnel of writing indicator in the case of 'Get '.  However, who will require a local Variable or value of property node.  As I said, these (I only mentioned the local Variable originally) are not good choices for performance and scalability.  If you are not aware of the functional differences between the terminals, local Variables and nodes of property value, refer to this article (obviously advantages/disadvantages such as redraw objects on the front panel are not relevant here).

    I guess you could say that indicators should only be written, but it is difficult to be pure!

    No, it's not, just use the classic design of the FGV!

  • Easy, but I can not... Global variable

    Project: having two projectors and communicate with each other. Note that the two projectors would be on the same system

    Details: using Director 11, Windows

    For the movie ' set the Variablel so far, I (through the online guide Deans).

    This is for "movie 1»

    =========================================

    global gGlobalVar

    on setGlobalVar

    gGlobalVar = 35

    end

    =========================================

    Code for 2nd projector

    For the film, which "Gets the global variable" defined by "feature 1". "

    =========================================

    global gGlobalVar

    on getGlobalVar

    Put gGlobalVar in field ("databank")

    end

    Globals can be written anywhere, and they must work in all of the films in a projector. But they won't work between two different projectors. You can try to use Flash city, it is not easy, but it can work. Here's some information about it:

    http://help.Adobe.com/en_US/Director/11.5/UsingScripting/WSc3ff6d0ea77859461172e0811d50262 762 - 7f1c.html

  • Global variables for circular buffer

    Hallo!

    I have another question:

    I need to have a variable circular buffer size. So I want set size circular buffer by a global varable.

    Is this possible? I tried to use the global variable like {VAR_01} to insert in the field that you want to the memory size circular buffer, but dasylab puts only a zero in the field.

    Thank you and have a nice day.

    Hilby

    Unfortunately, it is not possible to have a variable size buffer. Right-click in the textfield corresponding: the shortcut menu does not show an entry to select the global variable from a list.

  • How to keep a relative path in a global variable

    Hello

    I use Teststand 2013 and 2013 of Labview

    Is it possible to set a relative path to a global variable in the Teststand? E.g. "... \vector1." HWS.

    Or should I use Labview functions to solve this problem?

    .

    Thank you

    The railways are much easier to handle in LabVIEW.  Thus, you can store the relative path as a string and then use LabVIEW to make the absolute path.

    I usually store a file into a global variable and then I can just concatinate the strings to build the absolute path.  For example:

    FileGlobals.Folder = "C:\\foo\\bar\\"
    Locals.Path = FileGlobals.Folder + "blah.txt".

Maybe you are looking for