Results 1 to 3 of 3

Thread: Read file and update Global graph parameters

  1. #1
    Contributor
    Join Date
    Mar 2010
    Location
    Melbourne
    Posts
    27

    Default Read file and update Global graph parameters

    Hello.

    Is there anyway to read in an external data source (most likely a text file or from an Access DB) and then use the values from that (in a known format) file to populate the values of global graph parameters?

    I am collecting data from a number of users, as parameters (which are each called multiple times by the graph), for use in the same graph, and rather than entering them manually, was hoping to automate this, as much as possible.

    Regards,
    Mike

  2. #2
    Lavastorm Employee stonysmith's Avatar
    Join Date
    Nov 2006
    Location
    Grapevine Tx
    Posts
    799

    Default

    There a few ways to do this, but none of them are as "clean" as you may wish. And, these are not necessarily "supported".. in other words, your mileage may vary.

    Both methods are going to require that you separate your graph into two peices.. a "parent" and a "child", where the parent graph collects the parameter values and passes them to the child graph.

    One way is to examine the format for the BRP/BRS files that are associated with your graph. If the parent graph can re-write those properly, then when you load the child graph, it will read the parameters.

    The other (and perhaps better) way is to use a node called "ExecuteBRX" -this node can execute a child graph multiple times, passing new parameters each time.

  3. #3
    Contributor
    Join Date
    Mar 2010
    Location
    Melbourne
    Posts
    27

    Default

    Thanks Stony, looks like I have some reading up to do, to make this possible.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •