Jump to content

Open G Dictionary


Recommended Posts

Hello,

I am a big fan of open G but something has been has peeked my curiostity.

What does Open G Dictionary pallette do? I have been trying to find some documentation on this, but have failed. Can anyone point me to some documentation on what these curious set of tools do?

Does anybody else use Open G Dictionary? Do you like it? Is it a form of GOOP? If so how does it compare?

Thanks

Dan

Link to comment

Wow thanks for the explanaiton.

This opens more questions for me. In my projects currently I store all my data in a type def cluster within a FGV (i.e. file paths, channel names, etc). I store this data in an .ini file using Open G's tools. What I like about this I can eaisly find my data in the cluster using the unbundle by Name function. It is also very east to add data values later.

Is there a better way to do this? What I am looking for is a good method for a data repository. I want to save the values to file, load them into memory, and access them easily. I am happy with my current method but as always there is probably a better way to do this.

Dictionaries look interesting. What would be the advantage/disadvantage of using a dictionary over this method?

Thanks

Dan

Link to comment

QUOTE (ASTDan @ Jul 12 2008, 07:31 PM)

The varient could be thought of as my big cluster. Each attribute of that variant could be thought of as an element in my big cluster? Is that close or am I way off.

You're spot-on. This pattern isn't for every situtation, as it's loosely-typed. That said, it's the looseness that makes it so powerful. We use it in one of our standard architectures to apss data between asynchronous nodes using user events, and it's amazingly fast.

Link to comment
  • 2 months later...

I have been thinking about the CVT lately and I keep coming back to this problem.

When you define a name for something to put in your CVT how do you remember it? Do you create a type def of string combos? How do you document/comunicate the names of the variables in your CVT to yourself and other people?

Thanks

Dan

Link to comment

QUOTE (ASTDan @ Sep 29 2008, 10:33 AM)

When you define a name for something to put in your CVT how do you remember it? How do you document/comunicate the names of the variables in your CVT to yourself and other people?

That's a really important point for any loosley-defined datatype. We do two things:

  • Document every key-value pair in the SDD, including where it is spawned and where it is destroyed (if anywhere)
  • We also have a probe VI that watches all messages in the CVT, and can log to disk (this is vital when debugging)

Link to comment

Would a string combo Type def be a good idea to avoid spelling mistakes? Is a string combo type def containing all the variable names a good or bad idea? You could have what each variable documented in the custom control and you could put it under SCC.

Also 2 developers are working on the same program. Developer A addes a variable lets say Sample Rate today. Developer B addes a variable named Sample Time the next day. These are 2 variables that do essentialy the same thing. How do you manage this situation?

Link to comment

QUOTE (ASTDan @ Sep 29 2008, 11:09 AM)

That would work if you didn't want the CVT to grow or contract dynamically (which is, btw, a valid usecase). You're basically defining all the allowable keys up front.

QUOTE (ASTDan @ Sep 29 2008, 11:09 AM)

Also 2 developers are working on the same program. Developer A addes a variable lets say Sample Rate today. Developer B addes a variable named Sample Time the next day. These are 2 variables that do essentialy the same thing. How do you manage this situation?

Two steps: Developer A documents his variable and Developer B talks to Developer A. We also try to define as many of the variables at the SDD stage as possible, then developers become responsible for the group of variables specific to their module and are the person to go to if you want to get a variable or create one. Network the synergies and spread the knowledge!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.