global variables for the XML plugin problem

Hello world

recently I started working on a dialog box SOUTH, where the user can load the *.xml files in DIAdem.So much my code for the button looks like this:

....

Call the FileNameGet ('ALL', 'FileRead","*.xml")
Call DataFileLoad (FileDlgName, "XML_Plugin", "Load")

....

And I must say that it works very well! I am able to load all listed in the devices file. BUT when I tried a number of loading devices, I used a global variable, that I defined in the vbscript file that I load the SOUTH since, I've noticed that global variables, I've defined with GlobalDim are not defined in the vbs.:mansurprised of XML_Pluging:

Then I started to experiment and so far without success, no matter where I define global variables, in my plugin *.xml all not defined! The native commands even and DIAdem functrions does not work. If I run the script in tiara, it shows no errors, but when I use the plugin to open a file, then it gives an error. For example, MsgBox is not allowed.

I used the plugin example for *.xml, which was published on the Web site of NOR, and I made a few changes. But overall I have it has not corrupted and I kept the same structure:

Void ReadStore (File)

Dim XmlFile: xmlFile = File.Info.FullPath
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'open the file '.
OpenXMLFile xmlFile

End Sub

Void OpenXMLFile (xmlFile)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Open MS - Xml Parser
'Create the ActiveX object for the Microsoft XML parser.
Dim XDoc: set xDoc = CreateObject ("MSXML2. DOMDocument.3.0")

"Try to load the XML document
If xDoc.Load (xmlFile) = False Then
"Failed to load the document XML.
RaiseError ' unable to load XML document!
End If

protected originalLocale: originalLocale = Getlocalte
"SetLocale" en - us ".

"The XML document loaded successfully!
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

'----------------------------------------------
"Read the header information.
'----------------------------------------------

Here, I have read some values of the header and then I loop on all devices present in the file!

So basically I have two subroutines and that's all.

SetLocale originalLocale

End Sub

So what I am doing wrong? Why global variables and other functions do not work. Is it because there is xml code in the script this way or it's a version problem?

I use DIAdem 10.2. If I use global variables in other vbscripts, I use to draw curves for example I have no problem. Now I'm no *.xml code and no subroutines.

I'd appreciate any solution that will make my *.xml plugin to work.

Hi fscommand.

It is expected all behavior.  Use XML, as all VBScript DataPlugins, runs in a separate VBScript host of the DIAdem VBScript host.  DIAdem VBScript host adds all global variables green and Red controls global to host Microsoft VBScript standard.  Use VBScript host has its own special abilities (file object, root object), but there is NO access to Globals green or red blanket orders in the reception of DIAdem VBScript.  Your SUDialog runs in a third host VBScript, which is separated from the other two and the other two are not capabilities (command SUDialog callback functions), but the SUDialog VBScript host and VBScript tiara share all global variables green and Red orders overall.

Normally all blue VBScript commands are allowed in all 3 VBScripts hosts, but in the case of the DataPlugins MsgBox and InputBox functions were especially restrained because the dialogues could cause a lot of trouble with the DataFinder.  In fact, they have been allowed to 9.1 tiara which was the latest version of tiara for the DataFinder appear.

So, why do you want to pass information between the XML use and tiara?  If you want to use to share information with DIAdem, then you should just expose every piece of information as a new property in the data portal, which can read and use the code VBScript DIAdem.  The path of the XML file is already available inside the use of XML.  What other information in the call VBScript DIAdem do you need to share with the use?

Brad Turpin

Tiara Product Support Engineer
National Instruments

Tags: NI Software

Similar Questions

  • Using a Global Variable for the input recorder DisplayRange

    I'm assuming; Since I can't do it; that you cannot change the display range of a graphic recorder by using a variable.  If there is a way I'd love to know how.

    Thank you!

    Determine if you can use a global variable is to click right in the parameter field. If the global variable is available in the context menu, then you can use a variable y.

    You can use a variable of the y-axis from the settings.

    You cannot use a variable for the display range of the x-axis parameter. This is because DASYLab needs to know the amount of memory to be allocated at the beginning of the measure.

  • 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.

  • Delivery of stock for the SOAP plugin

    Hello.

    I found a problem with the initialization of the inventory for the SOAP plugin.

    There is a device orchestrator with SOAP plugin installed.

    There is a SOAP host defined in the inventory of the SOAP plugin. To access this host of action script, I use the method "SOAPHostManager.getHosts ()".

    The problem appears after orchestrator service restarts when the SOAPHostManager.getHosts () method returns an empty list (no matter how much time has passed since the reboot was completed).

    After I manually navigate the SOAP plugin with orchestrator client inventory, the problem goes away and 'getHosts()' begins to work properly.

    Is it possible to automatically perform the initialization of the inventory for the SOAP plugin?

    Thank you.

    Just hollow cheked the doc of the plugin and seems that there is a bit of confusion.

    SOAPHostManager.getHosts () - returns only the host names of SOAP

    If you need an object entirely initilized SOAPHost you can do something like...

    var soapHosts = Server.findAllForType ("SOAP:Host")

    System.log (soapHosts.Length);

    for {(hostIdx to soapHosts)

    Host = soapHosts [hostIdx]

    System.log (host.preferredEndpointURL + "-" + soapHosts [hostIdx]);

    }

    Let me know if it helps

  • To access the Global Variables in the functions/methods

    Which of the following statements is better in terms of performance and efficiency?

    public var a: int = 0;


    public void add (): void {}

    a += 5;

    }

    Addition();

    OR

    public var a: int = 0;

    public void Addition(b:int):int {}
    b += 5;
    Back to b;
    }

    a = (a) Addition;

    I saw a lot of guides discourages the use of global variables in the functions/methods, but I just don't understand why anyone would create a copy of the variable, modify this copy and to grant this value to another variable and throw.

    You must create an instance to pass to your function.  the parameter (for example, mov) does not create a separate instance and creates only a temporary pointer to the passed object.

    If an instance is prepared for gc, having spent this instance to any number of methods (as a parameter) delay / will not interfere with ca.

    and Yes.

    MOV ['x'] = mov.x,

    MOV ["rotation"] = MOV.rotation,

    MOV [anypropertystring] = MC.anyproperty

    Flash uses array notation to solve strings into objects:

    var var1:ClassType = new ClassType();

    This ['var1'] = this.var1

  • How to make appear a message that can enter some settings such as a variable for the next step?

    Hi all

    How to the dialog box or window pop up a message that can input some parameters as a variable for the next step?

    My sense is if Teststand stage can do that, not using Labview or other language.

    Thank you

    BR

    Johnny

    Take a look at the Options of a stage of pop-up Message tab. The response is returned in Step.Result.Response.

  • How can I add session variables for the subject field and the body of the e-mail Message?

    How can I add session variables for the subject field and the body of the e-mail Message? Tried several combinations, but do not seem to correct the syntax.

    This is the code I have. I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];
    $subject = '$firstname $lastname, your registration details ';
    $from = "from: [email protected]"; "
    $msg = "Dear $title $firstname $lastname\r\n\nThank for the registration for the design of your dream Home.\r\nWe have received this following details details of you-\r\n\nClient-\r\n\nOccupation: $occupation \r\nPhone No.: $phone \r\nE-mail: $email\r\n\nPresent $ location: \r\n location\r\n\nPresent address: \r\n$ address\r\n\n\nFollowing are specified by you - design requirements \r\n\nBasic Features\r\n\nNo." floors: $floors\r\nNo. of bedrooms: bedrooms\r\nNo of $. of bathrooms: $bathrooms\r\nFloor region: $sqft\r\n\nFurther Suggestions: $ Plan\r\n\nSplit one further\r\n\n\nType floor: $splitfloor\r\n-remarks: $splitfloorremarks\r\nOpen floor: $openfloor\r\n-remarks: $openfloorremarks\r\n\n\nList of the rooms to be Included\r\n\nFoyer: $foyer\r\n-remarks: $foyerremarks\r\nDrawing: $drawing\r\n-remarks: $ alive drawingremarks\r\nFormal: $formalliving\r\n-comments : $ alive formallivingremarks\r\nFamily: $familyliving\r\n-remarks: $familylivingremarks\r\nHome Office: $homeoffice\r\n-remarks: $homeofficeremarks\r\nDining: $dining\r\n-remarks: $diningremarks\r\nMaster room: $master\r\n-remarks: $masterremarks\r\nMaster bathroom: $masterbath\r\n-remarks: $masterbathremarks\r\nMaster Dressing: $masterdress\r\n-remarks: $masterdressremarks\r\nBedroom: $bed\r\n-remarks: $bedremarks\r\nBathroom: $bath\r\n-remarks: $bathremarks\r\nDress: $dress\r\n-comments : $dressremarks\r\nStudy: $study\r\n-remarks: $studyremarks\r\nLibrary: $library\r\n-remarks: $libraryremarks\r\nPowder room: $powder\r\n-remarks: $powderremarks\r\nPrayer room: $prayer\r\n-remarks: $prayerremarks\r\nKitchen: $kitchen\r\n-remarks: $kitchenremarks\r\nPantry: $pantry\r\n-remarks: $pantryremarks\r\nUtility/area of work: $utility\r\n-remarks: $utilityremarks\r\nBalcony: $balcony\r\n-remarks: $balconyremarks\r\nStore: $store\r\n-remarks: $storeremarks\r\nLaundry : $laundry\r\n-remarks: $laundryremarks\r\nVeranda: $veranda\r\n-remarks: $verandaremarks\r\nCar porch: $carporch\r\n-remarks: $carporchremarks\r\nGarage: $garage\r\n-remarks: Theater garageremarks\r\nHome $: $theater\r\n-remarks: room of $theaterremarks\r\nMaid: $maid\r\n-remarks: $maidremarks\r\n\nOther general remarks: $general\r\n\nPlease note that the fields have been left blank in your form will be considered undecided details and used in discretion.\r\nIf of the architect , it better to add more later, design requirements please feel free to reply to this email with the details. « ;
    $fla = mail ($to, $subject, $msg, $from);

    Thanks in advance!

    askintrades wrote:

    How can I add session variables for the subject field and the body of the e-mail Message?

    What you want to do? Given the nature of your question, it seems that you probably don't know what a session variable is used. The PHP manual describes the purpose of sessions here: http://docs.php.net/manual/en/intro.session.php.

    I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];

    Why do you need to change the form variables in session variables? They are already stored in session variables, or they come directly from the form?

    The $to part is not supported. When you pass $to to the mail() function, it should contain only an e-mail address, not a string that begins with "to:

  • Can Oracle 10g - I use a variable for the access of the user identifywhat tablesto?

    I have the following code in a trigger (PL/Sql block) of a form:

    Select fieldname in user1.sometable myvar;

    is it possible to use a variable instead of coding hard "user1"? And on the same subject, this variable would also be declared in the world?

    Thanks in advance,
    Darren

    Hello!

    User1 is the owner of the table sometable.

    If only the User1 runs your form, there is no need to put the tableowner in front of the tablename parameter.

    If other users run your form, you must create a public or private (for each user) synonym of this table.
    After that, you don't need to use owner.tablename in your sql statement.

    But:
    You cannot use a variable for the user name without using dynamic sql
    as you do if you create a recordgroup.

    Concerning

  • Global variable among the jurisdictions in BPEL

    Hi all

    I have an FTP adapter in my bpel process. I read the header, tail, and then the data. The header, the tail and the data have their own instance. I would like to store the header data in a GLOBAL variable, so I can use these data in the instance of my data. So basically I need a global variable such that I can access when I'm in my instance of data. I don't want to write to a file or a database, is it possible to have a global variable among the many cases that retain the value and is not deleted when the instance is completed?

    Thank you

    Hello

    Instead of thinking about global variable why cant you think of the instance variable. See, all serialized instance BPEL variables you can use even no it is finished.
    But the thing is, you must have access to an instance of other BPEL processes BPEL variable. Simple. You can do this by BPEL process APIs.

    com.oracle.bpel.client.IBPELProcessHandle
    com.oracle.bpel.client.IInstanceHandle
    com.oracle.bpel.client.Locator

    These three classes will help you recover data from a single process instance. You can enjoy your condition.

    concerning
    Rajesh

  • How to get the global variable for an instanceId

    Hello

    I have data in global variables of an instance level. And using that instanceId, how can I get the global-level variables data.

    Please me tips


    Thank you
    Sailendra

    Hello
    I guess you want to get the value of the external variable within the process. You can do like this:

    assuming that it is of type string. For other types of type cast properly...
    String extVarValue = (String) (New Component(instance: this)).get(attribute: extVarName);

    Replace "extVarName" with your project name. It returns the value of your project for the instance that you are currently working.

    -Thank you,
    Malar.

  • Global variable in the progress bar

    I have an existing labview code that consists of a main vi, which is the GUI user, and several (about 70) under vi. I am trying to add a progress bar on the screen before (user GUI) which will be immediately after it hits certain sections of code. I write this using a global variable to store the value of the status and any attempt in the main on-screen progress bar after each increment. Is there a way to link the main progress bar value to the global variable so that it updates as soon as the value is incremented? The problem that I am facing is that when I update the global variable in a Subvi, the progress bar takes the value of the Sub - VI is finished, all the numbers to jump between the two. I know it's because I do not correctly write to the progress bar, but I don't know how to do. If this isn't a good method, are there any suggestions?

    For example:

    SubVi2 SubVi1 Vi main

    (1-4)                (5-8)             (8-12)

    Progress bar: 1 2 3 4 8 12

    (I tried the Progress Bar Library OR offer, but I need a progress bar on the front panel, not a sound upward, so I can debug for code execution)

    Thank you - Adam

    I would go with a motor of Action update the progress bar VIA referance Server vi.  Here is an example of the use of a side effect I have to make this kind of progress bar.

    If you have not read Ben nugget of action engine, it should be mandatory, you can find here

    By building a "resource module" (a special AE that keeps a referance to the resource to act on) after initializint EI, you can call any 'method' on the resorce from anywhere in the instance of the application.  These babys really allow you to do interesting things to the GUI from around where the real action takes place.

  • Web browsers are no longer because of the version of the Flash plugin (problem reappeared after a prior solution)

    jeromiec83223024



    I was part of a focus group in which Lenovo many users had problems with the Flash plugin on their web browser (Re: does not have a plugin (Shockwave Flash). ) forums.adobe.com/message/7992871#7992871). Problems consisted largely of messages does not work on Chrome, Edge and IEon websites such as Facebook, Youtube, Gmail and others who use chat or to play html5 videos. Chrome, the message indicates that a plugin (Flash) became unresponsive, and then the page can no longer be reacts with. On the edge, it just stops responding. These problems have been resolved for a few days now, but after that my Windows updated again last night itself, the problems came back.

    Everyone knows these question make a comeback? I use a Lenovo IdeaPad Yoga 13 with Windows 10 x 64.

    Hi Jean-Luc.

    Yes, hardware acceleration is turned off in the Chrome settings and via the global settings for a while (before the error on which came back again). Will let you know if this problem persists. If all goes well, it was something unique. I have "he's trying to use right Chrome to see if the error appears again.

    Thanks again!

  • Version of the Java Plugin problem

    It seems that the last Plugin Java for Firefox 10.0 that works is version U29. However, Oracle pushes 31 as the most recent version and «» But it does not work in Firefox 10. Not really a problem except that your Web page that checks plugins for "out-dated-ness" indicates that the U29 version is "obsolete".

    Going through the process of updating the Plugin Java from this point is a particularly nasty process (from Oracle fault, of Mozilla) which does nothing of value. It can even install the next version, which, as I said, does not work.

    You can correct your web page so that it does not indicate the U29 version is outdated?

    Thank you.

    OK, I added that a firewall rule out for the program, "jp2launcher.exe" and now the plugin works again. I had already created outbound permission for Java.exe early on that it was necessary, of course, for the plugin to work.

    Of course, this does mean that it is absolutely the solution.

    I would like to say that this is probably the solution, however.

    If it turns out that this is the solution, it means that jp2launcher.exe needs internet access SOMETIMES but not always.

    PHEW! What a pain in the @# *...

    And, Yes, I realize that my setup of the firewall windows 7 has contributed to this problem. I just wish that when a program attempts to connect and is blocked windows 7 this would report to me with a dialog box, as they claim would happen, so I would like to know. There is, without doubt, a journal entry created to record the event, buried somewhere in the windows event logging system. A lot of good it does me, however!

    Thanks again to all for your comments.

    It just shows that there is no problem I can't solve that I don't have everything to create myself. A bit like the Government, if you know what I mean...

    Charles.

  • 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.

  • global variable in the instrument Drivers

    Hello

    We design an instrument Driver for our devices. We have VI that does the same thing, but with different inputs and this entry is a collection of references.

    I would like to know if this VI can be contributed by these groups as global variables. Through this way, I hope that we will significantly optimizie our code.

    We are also looking for drivers to achieve certification by the OR so looking for any sort of solution if global will not be a good solution to achieve the optimization.

    Thanks in advance,

    VIvek

    I don't understand what you mean by "chipped". Using global variables magically will not make your code more efficient. It is used for the global variable, and there are places where they should not be used. Reasonable use must contain the data used by several processes, even if a queue is usually a better way to go.

    The best way to see how to write an instrument driver is to download recent instrument of the NI Instrument Driver Networkdrivers. Look for ones that are based on projects like these are made in 8.x and are fairly recent. You don't have to bother with the old drivers - they are a mess. You should be able to find something that looks like your instrument and use it as a model. There is also a Driver of Instrument wizard that comes with LabVIEW. Another source of information is the basis of knowledge of NOR. Do a search and you will find a lot of information. Like this: developing LabVIEW Plug - and - Play instrument Drivers.

    You should also read on the nugget of Ben on the engines of the Action.

Maybe you are looking for