Showing results 1 to 2 of 2

Thread: [C#] Data types defined by user

  1. #1
    Join Date
    19.11.2015
    Posts
    9

    Frage [C#] Data types defined by user

    Hello,
    I defined data type editor (array, structure) TimeTicks with two fields (variables) of type String.
    Then, I created a new type of variable (TimeTicks) called myVar.
    How now access this variable from c #?

  2. #2
    Join Date
    13.09.2007
    Posts
    2

    Default Re: [C#] Data types defined by user

    Hi, the best way to learn the object model you visit a zenon programming training from Copa-Data :-)

    What do you want exactly. Access from editor or runtime?

    In C# you can read or write the variable in the runtime like this:

    zenOn.IVariable zVar;

    zVar = this.Variables().Item("TimeTicks[1].Time")

    string tmp = zVar.get_Value(0); //read

    zVar.set_Value(0,tmp); //write

    zVar = null;

    But you have only access if the variable are advised. You can advise the variable with a online container or the variable is on a open picture. Another way set the property "dde active". You find very usefull information in the online help from Editor under programming interface ->object model
    Last edited by m.parotat : 8th December 2015 at 23:09

Similar Threads

  1. What sensor types are supported?
    By markusw in forum zenon Science Package for LEGO MINDSTORMS
    Replies: 2
    Last Post: 25th April 2013, 16:08
  2. Nested structured Data types
    By bsneddon in forum Drivers
    Replies: 5
    Last Post: 3rd April 2011, 23:23
  3. read-back user administration data by Transport
    By marchelo in forum zenon Supervisor
    Replies: 4
    Last Post: 20th June 2010, 23:49
  4. How to evaluate the user level a user has in the runtime?
    By markclemens in forum zenon Supervisor
    Replies: 0
    Last Post: 6th November 2007, 17:10

Posting Rules

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