dougo: (Default)
([personal profile] dougo Mar. 7th, 2007 06:54 pm)
I work at Gensym, on a product called G2. (No, it's not the sequel to G1. Depending on who you talk to, the name has to do with either the term for military intelligence, or the fact that the gensym function in old Lisp implementations would return the symbol G2 the first time it was called.) I always have a hard time explaining what it is when people ask me what I do. But I just ran across a review of G2 8.2 from Unix Review magazine that does a reasonable job, though it's still a bit buzzwordy.

From: (Anonymous)


Hey. do you know how to send array or list through GSI from C-program to G2?

From: (Anonymous)


Would be grateful! So, I can't send array in G2 Variable (by g2-date-service) and think, that it is not possible :(
nosrednayduj: pink hair (Default)

From: [personal profile] nosrednayduj


There is discussion of this in the GSI manual (G2/Gateway Bridge Developers Guide). Look for Data Structures in the Reference chapter. The short of it is you make a gsi_item and then call gsi_set_type to some array type, such as GSI_INTEGER_ARRAY_TAG. Then there are a number of setter functions to set the values, such as gsi_set_int_array.

You're welcome for the free support. Try a CSS contract next time :-)

From: (Anonymous)


Thank you :) But what type there should be an attribute of variable in what I try to send array? And what director superior class should be at the variable(except gsi-data-service)?
PS: I try all variable classes (integer, float, quantity.. etc.) and it was impossible to set attribute value as array. sorry for disturb :(
nosrednayduj: pink hair (Default)

From: [personal profile] nosrednayduj


Hm. Well, let's ignore GSI for now, since that doesn't really seem to be your problem. When I click New Object, indeed, I don't see a G2 Variable of type Array. So maybe you can't have them. You can have a G2-Array (use Item Array) which contains variables, but I think the variables themselves have to be individual, as they'll be monitoring some individual value. So, once you figure out how to make your KB, then start working on the GSI end.

GSI is tedious, but you can manage it. One thing you can do is extend skeleton or some other demo to receive one value, send it your array of variables, and then write some code to check the type tags (gsi_type_of) and general structure, so you will know how to construct it from your GSI end, if that's what you want to do.
.

Most Popular Tags

Powered by Dreamwidth Studios

Style Credit

Expand Cut Tags

No cut tags