Creating a library Variable XML "Database".

Played with variable data options and I have a few questions (in an attempt to wrap our heads around the problem):

-Is it possible a set of data "" output XML in a database (such as FileMaker) program and have it be 'correct' AI?

-How would you create a dataset XML correct here of a spreadsheet such as Excel or numbers?

So far, I did all my mergers in InDesign (csv is much more simple to complete) and then opening the PDF files finished in artificial intelligence.

Thank you!

-Is it possible a set of data "" output XML in a database (such as FileMaker) program and have it be 'correct' AI?...

-How would you create a dataset XML correct here of a spreadsheet such as Excel or numbers?

FileMaker (and excellent) can export XML. But using XML to Exchange data is not simply a matter of presenting two programs a file format. If I understand well in few words...

XML is designed to facilitate the exchange of independent of data (content) of the presentation (design). XML allows you to items 'tag' with all the names you want, rather than just a standard set of tag names. However, this means that tags of element in an XML created by program document must be translated to tags that will be understood by program B. Both programs can parse XML, but they "speak different languages" when it comes to names of specific element tags. Something must map a set of tags to the other.

To work with XML to/from Illustrator requires an "in-between" document to 'translate' the labels from Illustrator to some database program, you use to add raw data. This means write DocumentTypeDefinition (DTD) or XML schema to provide this "in-between" translation, because, while Illustrator provides the function of Variables, it does not provide a GUI method for incomming mapping XML tags to its DataSet Variables.

InDesign offers features to its graphical interface allowing to map XML into InDesign Styles element tags. So you can have some success with XML from FileMaker to InDesign without going into all the esotericism of the XML. But not in Illustrator.

So there is not a 'master key' in-between document or program that works for all your documents to HAVE that use the function of Variables, because Variables can be named anything you want, and each can be of four types. (Or rather, one of these programs exist: range of Variables of the Illustrator himself.) In other words, you can manually enter new values of Variable on the page and capture the data sets you - which I'm sure is the way in which the vast majority of users of HAVE use this function, if they use it at all.

You pourriez actually put in place a document of AI that uses Variables, export the XML Library, dissect carefully its structure and tags and then create in FileMaker Pro, a solution that would let you add "extra" DataSets and/or the values of the variables and export a text file consisting of the HERE document as a library of DataSet. But you should do this for each file that you WANT to use this way, unless you have also built a FileMaker Pro script to process the DataSet library into something that can be manipulated as fields/documents.

Your use of CSV (comma-separated values) in InDesign is something else. Text delimited by tabs and commas are secular (and even universally useful) text conventions simple exchange of data. A tab character in the delimited by tabs (or comma in CSV) text indicates a jump to the next column (field); a carriage return character indicates a jump to the next line (record) - all in sequential order. They serve very well as a basis for "mail merge" types of functions in all that from Word to FileMaker Pro for InDesign. It would also be useful in Illustrator, but Illustrator does not provide a feature simple and straightforward merge delimited by tabs.

XML is different from that. This isn't as rows and columns. He must adapt to any arbitrary number of elements arranged and/or nested in sequential order, as an HTML document can have a number any of

paragraph of tags between itsTags and a number any tags, bold, italics, etc., can be nested between one of these paragraph tags. But in HTML, the names of the tags is standardized. In XML, it is not (because that's the idea).

Back to Illustrator, however, shame it is this: I dare say that the way most users can use the feature of Variables could work just as well If it wasn't based on regular data delimited by tabs. After all, each document HAVE that uses the functionality of Variables has a fixed number of related objects (think of these as fields). Each of these "fields" contains a text string, Boolean decision (visibility) or a file path (linked object). And they are not nested. So easily corresponds to columns and regular lines. The type of Variable only on the left is a chart of data (which by definition is rows/columns), but seriously; How often do you want to use the function of Variables for the graph even when data exchange?

IE7

Tags: Illustrator

Similar Questions

  • playlists iTunes 12 lost when creating new library in Windows 10

    I'm working with two iTunes 12 libraries in Windows 10. One is mine, the other, I want to create, is my wife. When I try to build his library and return to mine, I lose my original library reading lists, so I keep having to restore my library.xml file. I think I follow the instructions carefully on the creation and by selecting a library, but I'm apparently something wrong. DETAILED instructions are available on how to create and switch between libraries both iTunes and two sets of playlists?

    Hello artm124,

    Create a new, discreet iTunes Library need only open iTunes with the SHIFT key, and clicking 'create the library... '. "When you are prompted. Once you have created a new library, you can switch back to your library (complete with playlists and other metadata) to leave iTunes and once again open it with the SHIFT key.

    Windows

    1. If iTunes is running, quit iTunes.
    2. Hold down the SHIFT key. Then, in the start menu, choose all programs > iTunes > iTunes.
    3. You will see a message that says choose iTunes library. Depending on what you want to do, choose library to choose or create.

    If you do not see the message, try again. Remember to hold down the Option key if you use a Mac or the SHIFT key if you are using Windows.

    Open a different iTunes library file or create a
    https://support.Apple.com/en-us/HT201596

    If you are concerned about the potential loss of your playlists and other metadata stored by iTunes, make sure you have a backup of the iTunes Library.itl file which is inside your iTunes Library (which can be as simple as the copy of the file on the desktop).

    The iTunes Library.itl file is a database of songs in your library and playlists that you created. Some specific song data is saved in this file.

    On the iTunes library files
    https://support.Apple.com/en-us/HT201610

    Please note that if your iTunes content is stored in your iTunes library, it can help to make sure everything is where it should be. The article below the link provides a wealth of information to check and touching your iTunes library is there and it should be shaped.

    Search and organize your iTunes media files
    https://support.Apple.com/en-us/HT204668

    I hope this helps!

  • Create a user in 100 databases

    I need to create a user in 100 databases. Manually connecting to 100 databases and creating a user are very difficult for me...

    So is it possible to do this easily?

    You can try (assuming you have the common system on all databases password)
    (1) take a database in this ORACLE_HOME keep all entrances to tns in your environment.
    $ORALCLE_HOME/network/admin/tnsnames.ora--->Should mentions tns and all databases

    (2) a list of all the databases in a single file say dblist.lst
    Cat dblist.lst
    Test1
    test2

    (3) create a sql file that contains the result of a command; CREATE_USER. SQL

    Cat create_user.sql

    trigger the echo
    set the position
    create user identified by default tablespace of ;
    grant create session to ;
    other privileges

    (4) keep the environmental variables of the ORACLE_HOME, path to the file say env_ORACLE

    (5) shell script should like

    because I in 'cat dblist.sql '.
    do
    . //env_ORACLE
    sqlplus-s system /@$i @create_user.sql
    fact

  • Create a library of common code

    I want to create a library of common PHP and JavaScript code. How can I do? The design problem that I have is how can I access this code in all of the different sites. Dreamweaver gave precedence to the common code, such as code to access a mysql database. I want to put in place a similar library for my code.

    Thanks for your help.

    That's good news, if all of the sites are on a server. If you can make changes above the web root, then you can use the method I described.

    There are several ways to set the PHP include path. It can be done in PHP.ini, using set_include_path in your script, or simply by providing the path (can be relative) in the call to the file, like this:

    include (.. /.. /.. / mylibrary/key.php);

    Google "apache alias" to learn more about the use of this method. However, this requires the ability to edit the http.conf file, which you may not.

    The alias method is good for sharing images and CSS in different sites, but I wouldn't use it for things such as database login scripts.

  • Several underlying XML databases

    Hello

    I worked on a form in LiveCycle Designer ES2, which is intended to perform the following operations:

    1. the user types the first value (as an ID or name) in the row of a table of text fields

    2. a search Script in an underlying database that can match the entered value and fill the rest of the line

    But I have absolutely no idea how add databeses at livecylce and access. I want to use XML-databases (exported from Excel) and then use javascript to access - is - it possible?

    The databeses would locally on the computer.

    Thank you!

    You can create a dataset with the code, which might be the best approach for you.  Thus, in the forms Initialize event you may have a code like;

    var namesXML =

    Lederarmschienen

    0


    0

    0

    0

    1

    1

    0

    0

    0.1

    0.1

    1

    15

    Arm

    LEDER

    Plattenarme

    0


    0

    0

    0

    5

    5

    0

    0

    0.5

    0.5

    3

    200

    Arm

    Platte

    ;

    var names = xfa.datasets.createNode ("dataGroup", "Root");

    names.loadXML (namesXML.toXMLString ());

    xfa.datasets.Nodes.Append (Names);

    Here I use a literal E4X to make it easier to cut and paste.  Also note that the top element in the XML file is replaced with the name in the second parameter of the createNode method (so the easiest thing is to keep the same)

    You can reference it in code, then perhaps in the case of output of the field name (TextField1 in the code below) you might have the following code to complete other fields;

    var line = xfa.datasets.Root.resolveNode ("Row. ("() Name.Value ==' ' + TextField1.rawValue +" ")" ");

    If (row! == null)

    {

    Ko.rawValue = line. Ko.Value;

    Preis.rawValue = line. Preis.Value;

    Slot.rawValue = line. Slot.Value;

    Typ.rawValue = line. Typ.Value;

    }

    Personally, I prefer this approach, but since I started using E4X I should probably point out that we could also use E4X to process XML data, so it's the same thing.

    var row = namesXML.Row. (Name is this.rawValue);

    If (row.length ())

    {

    Ko.rawValue = line. Ko.toString ();

    Preis.rawValue = line. Preis.toString ();

    Slot.rawValue = line. Slot.toString ();

    Typ.rawValue = line. Typ.toString ();

    }

    Here is a link to the form I used to check my code, https://acrobat.com/#d=yCY7Hi15yg7yVWFbslkXmw

    It may be useful

    Bruce

  • Create Unique Session Variable based on the login page

    Hello:

    I'm building a dynamic website with Dreamweaver CS5 with Coldfusion 9.

    My question is how can I set a session variable to read a certain value. It is currently when my clients go to the login page they enter their username and password. I was able to create a session variable that contains the user name as value. So in all their pages read Welcome website "all that was their connection username. Now, I want to get the session variable to read the same table but the different FullName field. This way, that the web pages will say Welcome "FullName (based on their login user name)" I tell myself that I have to configure a query parameter, but after trying and failing for four hours to produce a successful result, I resorted to post my problem here. I appreciate the help and advice.

    My information:

    DataSource = Table 'Access' = 'Logininfo' (current) land (for the session variable) = 'User_name' (desired) field (for the session variable) = "full name".

    Currently using (server behaviors: Variable de Session) MM_Username on each relevant page for the user.

    My sign in page code is as follows:

    Head:

    < IsDefined ("FORM.username") cfif >

    < cfset MM_redirectLoginSuccess = "members_page.cfm" >

    < cfset MM_redirectLoginFailed = "sorry.cfm" >

    < "MM_rsUser" datasource = cfquery name = "Access" >

    "SELECT AccessLevels FROM Logininfo WHERE username, password, username, FullName is < cfqueryparam value =" "#FORM.username #" cfsqltype = "cf_sql_clob" maxlength = "50" > AND password = < cfqueryparam value = "#FORM.password #" cfsqltype = "cf_sql_clob" maxlength = "50" >

    < / cfquery >

    < cfif MM_rsUser.RecordCount NEQ 0 >

    < cftry >

    < cflock scope = "Session" timeout = "30" type = "Exclusive" >

    < cfset Session.MM_Username = FORM.username >

    < cfset Session.MM_UserAuthorization = MM_rsUser.AccessLevels [1] >

    < / cflock >

    < cfif IsDefined ("URL.accessdenied") AND false >

    < cfset MM_redirectLoginSuccess = URL.accessdenied >

    < / cfif >

    < cflocation url = "' #MM_redirectLoginSuccess # ' addtoken ="no">"

    < cfcatch type = 'Lock' >

    <! - the timeout of cflock management code - >

    < / cfcatch >

    < / cftry >

    < / cfif >

    < cflocation url = "' #MM_redirectLoginFailed # ' addtoken ="no">"

    < cfelse >

    < cfset MM_LoginAction = CGI. SCRIPT_NAME >

    < cfif CGI. QUERY_STRING NEQ "" > "".

    < cfset MM_LoginAction = MM_LoginAction & "?" & XMLFormat (CGI. QUERY_STRING) >

    < / cfif >

    < / cfif >

    Body:

    Connection < h1 > < / h1 >

    < p > please enter your login information the registration form in order to access your member account page. < /p >

    < form ACTION = "" < cfoutput > #MM_loginAction # < / cfoutput > "method ="POST"id ="login"> < table width ="auto"border ="0"align ="center">"

    < b >

    < td > < label for = "username3" >

    < div align = "right" > user name: < / div >

    < / label > < table >

    < td > < span id = "sprytextfield1" >

    < input type = "text" name = "user name" id = "NomUtilisateur2" accesskey = "n" tabindex = "10" >

    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span > < table >

    < /tr >

    < b >

    < td > < label for = "password" >

    < div align = "right" > password: < / div >

    < / label > < table >

    < td > < span id = "sprypassword1" >

    < input type = "password" name = "password" id = "password" accesskey = "n" tabindex = "15" >

    < span class = "passwordRequiredMsg" > a value is required. </span > < / span > < table >

    < /tr >

    < b >

    < td colspan = "2" > < div align = "center" >

    < input type = "submit" name = "submit" id = "submit" value = "Login" accesskey = "n" tabindex = "20" >

    < / div > < table >

    < /tr >

    < /table >

    < / make >

    < script type = "text/javascript" >

    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1");

    var sprypassword1 = new Spry.Widget.ValidationPassword ("sprypassword1");

    < /script >

    I'm sure it is something simple and will show my status as a rookie for the asking, but thanks for your help!

    A session variable is also the best route to go? I'll use this to query databases to display and allow them to change contact information, also show their invoices and request services.

    I don't know CF so forgive me, but you can create a session for fullname variable or use a query on your pages to filter the data WHERE username = user session variable. Looking at your code, it looks like you can add a session to the full name variable here:

  • Update process variable (XML) to help set the value

    Hello

    I'm having a problem to update the value in the variable XML using SetValue (by the XPATH expression). It is removing my original XML and replacing it with a new one. I'm off clue why this happens.

    My steps:
    1. I created a variable of XML type and set it as a STARTER, REQUIRED.

    xmlData.jpg

    2. I am updating this variable using the activity set the value. In my process, it is "locUpdate1".

    setVal.jpg

    The original XML is: (xmlData value)

    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" xmlns:dd="http://ns.adobe.com/data-description/" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" timeStamp="2011-01-03T07:31:26Z" uuid="009257fd-3f66-449d-b554-6a095f917b74">
    <xfa:datasets>
            <xfa:data>
                <GetUserRoot>
                    <applicantInformation>
                        <UserInfo>
                            <UserID1/>
                            <UserName1/>
                            <UserID2/>
                            <UserName2/>
                            <UserID3/>
                            <UserName3/>
                            <CurrentUserID>6967A5DE-D5EB-102D-BF7F-0000C0A8010C</CurrentUserID>
                            <CurrentUserName>Sarah Rose</CurrentUserName>
                        </UserInfo>
                    </applicantInformation>
                    <FSTARGETURL_/>
                </GetUserRoot>
            </xfa:data>
            <dd:dataDescription dd:name="GetUserRoot">
                <GetUserRoot>
                    <applicantInformation>
                        <UserInfo>
                            <UserID1/>
                            <UserName1/>
                            <UserID2/>
                            <UserName2/>
                            <UserID3/>
                            <UserName3/>
                            <CurrentUserName/>
                            <CurrentUserID/>
                        </UserInfo>
                    </applicantInformation>
                </GetUserRoot>
            </dd:dataDescription>
        </xfa:datasets>
    <pdf xmlns="http://ns.adobe.com/xdp/pdf/" href="-4608764380271080676-28"/>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
            <annots/>
        </xfdf>
    </xdp:xdp>

    After operating, it evolves to

    <GetUserRoot>
        <applicantInformation>
            <UserInfo/>
        </applicantInformation>
    </GetUserRoot>
    
    

    should not be done.

    I want to just copy the value of the an element in the other.

    /process_data/xmlData/GetUserRoot/applicantInformation/UserInfo/UserID1 = /process_data/xmlData/GetUserRoot/applicantInformation/UserInfo/CurrentUserID
    
    

    Output should be:

    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" xmlns:dd="http://ns.adobe.com/data-description/" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" timeStamp="2011-01-03T07:31:26Z" uuid="009257fd-3f66-449d-b554-6a095f917b74">
    <xfa:datasets>
            <xfa:data>
                <GetUserRoot>
                    <applicantInformation>
                        <UserInfo>
                            <UserID1>6967A5DE-D5EB-102D-BF7F-0000C0A8010C</UserID1>
                            <UserName1>Sarah Rose</UserName1>
                            <UserID2/>
                            <UserName2/>    
                            <UserID3/>
                            <UserName3/>
                            <!-- this is to be coiped in above -->
                            <CurrentUserID>6967A5DE-D5EB-102D-BF7F-0000C0A8010C</CurrentUserID>
                            <CurrentUserName>Sarah Rose</CurrentUserName>
                        </UserInfo>
                    </applicantInformation>
                    <FSTARGETURL_/>
                </GetUserRoot>
            </xfa:data>
            <dd:dataDescription dd:name="GetUserRoot">
                <GetUserRoot>
                    <applicantInformation>
                        <UserInfo>
                            <UserID1/>
                            <UserName1/>
                            <UserID2/>
                            <UserName2/>
                            <UserID3/>
                            <UserName3/>
                            <CurrentUserName/>
                            <CurrentUserID/>
                        </UserInfo>
                    </applicantInformation>
                </GetUserRoot>
            </dd:dataDescription>
        </xfa:datasets>
    <pdf xmlns="http://ns.adobe.com/xdp/pdf/" href="-4608764380271080676-28"/>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
            <annots/>
        </xfdf>
    </xdp:xdp>

    Any help to what I'm doing wrong.

    Thank you.

    -

    Afonso

    Your mission is incorrect. Note that you need to reference all the XML nodes (to the right of the ROOT node)

    Since your reference node is not absolute, it will create the nodes that you have defined in your expression on the left.

    The following code should work as expected!

    /process_data/xmlData/xdp/datasets/data/GetUserRoot/applicantInformation/UserInfo/UserID1 = /process_data/xmlData/xdp/datasets/data/GetUserRoot/applicantInformation/UserInfo/CurrentUserID
    

    Nith

  • XML database error

    Create an employee of the table having (dept_id: number, employee_spec: XMLType).
    The employee_spec is a diagram with
    emp id, name, email, acc_no, Gestionnairecourrierelectronique attributes, to Joning.
    Insert 10 tuples in the employee table. Fire the following queries on the XML database.

    (a) retrieve the names of employees.
    (b) recover the acc_no from employees.
    (c) retrieve the names, the acc_no, enamel of employees.
    (d) update the record 3rd in the table and displays the name of an employee.
    (e) delete 4 th record from the table.

    SQL > connect hr/tiger@bom4;
    Connected.

    SQL > create table employees
    () 2
    3 dept_id number (8).
    employee_spec 4 sys.xmltype
    (5);

    Table created.


    SQL >
    SQL > INSERT INTO employee VALUES
    () 2
    of 3 100.
    4 xmltype)
    5 ' < employees >
    6 < emp id = "1" >
    7 < name > buxant gole < / name >
    8 < email > [email protected] < / email >
    9 < > 111 acc_no < / acc_no >
    10 < dateOfJoining > 1994 - 11 - 16 < / dateOfJoining >
    11 < / emp >
    12 < / employees > '))
    13;
    XmlType)
    *
    ERROR on line 4:
    ORA-00904: invalid column name


    SQL > INSERT INTO employee VALUES
    () 2
    of 3 100.
    4 sys. XMLTYPE ("< employees >
    5 < = '1' emp id >
    6 < name > buxant gole < / name >
    7 < email > [email protected] < / email >
    8 < > 111 acc_no < / acc_no >
    9 < dateOfJoining > 1994 - 11 - 16 < / dateOfJoining >
    10 < / emp >
    11 < / employees > '))
    12;
    sys. XMLTYPE ("< employees >
    *
    ERROR on line 4:
    ORA-22876: this user-defined type is not allowed or it cannot be used in this
    framework

    Yep, works fine on 10.2...

    SQL> ed
    Wrote file afiedt.buf
    
      1  create table employee
      2  (
      3  dept_id number(8),
      4  employee_spec xmltype
      5* )
    SQL> /
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  INSERT INTO employee VALUES
      2  (
      3  100,
      4  xmltype(
      5  '
      6  
      7  abhijeet gole
      8  [email protected]
      9  111
     10  1994-11-16
     11  
     12* '))
    SQL> /
    
    1 row created.
    
    SQL>
    

    What version of SQL * more you use? Ensure that it is up-to-date with the version of database.

  • Creating views for DB XML content in Oracle 9i (9.2.0.4.0)

    Hello

    Please excuse my ignorance but I searched on through reams of documentation on Oracle XML DB and is extremely difficult to get information about a specific version when it evolved as radically. I develop on Oracle 9.2.0.4.0 (I'd be happy to upgrade but unfortunately my clients are less enthusiastic!).

    My questions are how and why I would create views of the XML data to use in my application. I made a snippet of XML data (according to an XSD) that I need to load into the database and then provide view in read-only data. I managed to save my drawings and insert the XML into the underlying structures of the object relationship and I now need to create views.

    For as much as I can muster in 9i I must query XML data using extractValue, for example:
     
    SELECT extractValue(xseq.column_value, '//ReferenceNumber') REFERENCE 
         , extractValue(xseq.column_value, '//ProviderName') PROVIDER_NAME 
    FROM   EXTRACT e 
         , TABLE(XMLSequence(extract(VALUE(e), '//Registration'))) xseq; 
    I also managed to get the same results by directly accessing the column 'hidden ': XMLDATA
     
    SELECT xml."ReferenceNumber" REFERENCE, xml."Provider"."ProviderName" PROVIDER_NAME 
    FROM   EXTRACT e 
         , TABLE(e.xmldata."Registration") xml 
    Issues related to the:
    (i) they are the only options I have to access the XML data in Oracle 9i? (XMLTable() looked quite interesting, but was unfortunately introduced in 10g)
    (II) given that I only need a read-only view of the data, are there benefits (other than speed) to be stored in object-relational tables as opposed to a CLOB?
    (III) is there a problem using the second method (cleaner) in relation to the first?

    Thanks a lot for you help,

    Tom Casserly

    (I) Yes. I'm sorry.
    (II) speed is the main advantage for storage GOLD regarding lead content (instead of CLOB--> pilot document by) queries. Other things I can think of is that it comforms to an XML schema, which is an advantage (you know that obey your XML file is the format defined) and a disadvantage (validation / grinding / and internal indexing off XML data will cost you performance).
    (III) it is (I think) not supported, less efficient then TABLE (XMLSequence (extract ()))

  • What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    Your library system can be on an external drive, if the drive is Mac OS extended (journaled) format and mounted on-site.

    But you must be careful, your external drive is always connected and available before the Photos and to import new photos.

    If Photos opens a different library, news, you can switch to the library on your external drive by double clicking on an external library. You can have several libraries, no problem.

    But pictures don't have any tools to merge libraries. You can switch between libraries, then open them alternately.  To merge two libraries export the photos of the smallest library and import the photos exported in the largest library.

    Or use third-party "PowerPhotos" to move photos between libraries.  But the merger is not supported in the free trial version. You must purchase the full version. You can download it here: Fat Cat Software

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

  • Change the target of the library Variable shared by program

    I have a project in real time with the code that runs on a host PC and a cRIO who communicate using a library of shared on the cRIO variables. I am hosting the variables on the cRIO because who has worked much better than the accommodation on the host PC. For normal operation, this structure works perfectly.

    However, I'm now trying to implement a system that will allow the user to choose if they want to actually run the code on the cRIO or run a simulated system. The simulated system would occur on the host PC, so it is logical for this application for variables to be located on the host PC.

    To account for these two cases, I would change the target of the variable shared library depending on whether the real-time system is running or if the simuation is executed. I can do easily manually simply by dragging the library in the Project Explorer, but prefer to automate this process.

    In short, I try to develop a code that will change the target of a shared library of variable.

    I tried to do that by opening a reference to the project file, using the properties to get the library reference and change the target. However, the target property is read-only. Is there another way to do this or I'm stuck having to do it manually?

    It turns out that I had a version of the shared library Variable on the cRIO, so even when I welcomed the variables shared on the host PC, he always wrote in the cRIO. In fixing this issue, I have been able to accommodate the library on the host PC and get all what to run much more simply.

  • How to create a global variable?

    I want to create a global variable start button to control programs in the structure of the sequence. But I do not know how to creat it. Thanks for responding.


  • "Not a valid error code" when you create a shared variable of data type custom

    I am trying to create a shared variable with a data type of a 2d double table. I created a custom control that contains a table with a numeric type for this 2d. Manager of distributed system v12 I select 'add a variable', then select 'of the custom control. Once select my control I get the following error: "invalid data type. You want to choose a different data type. Any advice as to why it doesn't work? Thank you.

    This seems to be recorded in the CAR #405941.  All this is a bit strange, but I'll try better possible workaround solutions I can.  I tested a large number of these myself, and here is what I found.

    1. make sure that the custom control you did was created in 2012 of LabVIEW or you save it in an earlier version.  If you save on an earlier version, you may also open the .ctl in LabVIEW 2012 and resave it (I needed to do).  I tried to create my own control in 2012, as well as save the control to a previous version, the two worked, but I don't end up with the same result (I don't understand this, but I wanted to mention it so that you know).

    2. it seems that you are able to make the variable shared by program by modifying the example of the community to adapt to your needs.  If you do not need to create many variables it may be the best option if it works for you.

    I would also try adding the variable of the LabVIEW project, you are working on that.  It wasn't a direct troubleshooting step but there are several ways of doing things in LabVIEW and, sometimes, one of them is working while the other does not.

    Edit: Example of community is here https://decibel.ni.com/content/docs/DOC-16863

  • Create the registry variable

    Hello

    I'm looking to create the registry variable, the script console and came across this post http://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/f/4788/t/19557561.aspx to create the simple registry variable.

    However, I need to add registry values to objects of topology (FxMApplicationResult to be precise). Is there a way to do this in the script. Can you please indicate.

    Thank you

    Vincent

    To add that John has already provided.

    This will allow you to query the outside object and assign the value.

    She could use additional checks of types etc. but a quick way to reach of many objects to a specific value that are not part of the global default value

    // Name of the Registry Variable we are going to updatedef regVarName = 'SampleRegistryVariableName'  
    
    //Value we want to set on the returned objects.//This is based on the registry Variable Type (Double, Long, Integer, String, Boolean, Timestamp, Password)def newRegValue = 99 as Double
    
    // Query to return the objects we want the registry value scoped toodef topologyQuery = #!Host where name like 'host%'#
    
    // Get the Registry Service to execute the registry updatedef regSrv = server["RegistryService"]
    
    // Get the registry variable for updatedef regVar = regSrv.editRegistryVariable(regVarName)
    
    // Get all existing values for this registrydef values = regVar.getRegistryValues()
    
    // Loop through the objects returned from the queryfor( obj in topologyQuery.getTopologyObjects() ) {
    
    // create the registry value object associated to the current object in loop   newTop = regVar.createTopologyObjectRegistryValue(obj.uniqueId)
    
    //set the value defined within newRegValue   newTop.setDefaultValue(newRegValue)
    
    //add the topologyObjectRegistryValue to the Array of existing values   values.add(newTop)}
    
    // Store the values within the Registry VariableregSrv.saveRegistryVariable(regVar)
    

    Hope this helps your use and any other case.

Maybe you are looking for