Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2008
    Location
    NE PA
    Posts
    36

    T7350H and Tridium Jace

    I have got a job with 15 T7350’s and I am trying to send a time stamp to them but the snvt that Honeywell uses (nvitimeset not nvitimestamp) does not conform to the normal Lontime applet in the kitlon pallet

    The question is……How do I break out the year, month, date, and time, separate and send it to the separate year, month, date, hour, min, seconds, snvt.s that the T7350 provides?

    Thanks for any suggestions

  2. #2
    Join Date
    Apr 2007
    Location
    San Diego, CA
    Posts
    1,348
    Someone shared this program object a while ago, not sure who to give credit to, but here it is.
    Open up the program palette and drag a new "program" into a folder somewhere on your station. Name the program, and paste the following code under the "edit" tab.

    public void onStart() throws Exception
    {
    updateTimer();
    }

    public void onStop() throws Exception
    {
    // If we have a ticket, then cancel it
    if (ticket != null) ticket.cancel();
    }

    public void onExecute() throws Exception
    {

    BAbsTime babstime = BAbsTime.make();

    getYear().setValue(babstime.getYear());
    getMonth().setValue(babstime.getMonth().getMonthOf Year());
    getDay().setValue(babstime.getDay());
    getHour().setValue(babstime.getHour());
    getMinute().setValue(babstime.getMinute());
    getSeconds().setValue(babstime.getSecond());
    }


    void updateTimer()
    {
    if (ticket != null) ticket.cancel();

    ticket = Clock.schedulePeriodically(getProgram(), BRelTime.makeSeconds(15), BProgram.execute, null);
    }

    Clock.Ticket ticket;


    Under the "Slots" tab, add slots of type: baja StatusNumeric named year, month, day, hour, minute, seconds. Set their flags to read-only and summary.
    These slots can then be linked to the proxy points you create for each field on nviTimeSet.

    I've included the bog file of the program object as a .doc attachment (just be sure to rename it as a .bog)

    Good Luck,
    -Digo
    Attached Files Attached Files

  3. #3
    Join Date
    Jun 2008
    Location
    NE PA
    Posts
    36

    Pardon my Nube ignorance

    I just Graduated from NU so pardon my ignorance
    I did just as you asked and I can connect the new object in the wire view to the nvi's but how does the new object get the time date to xfer

  4. #4
    Join Date
    Jun 2008
    Location
    NE PA
    Posts
    36
    I finaly figured it out your line of code
    getMonth().setValue(babstime.getMonth().getMonthOf Year());
    has a typo it should be
    getMonthOfYear

    no space between Of and Year
    when I edited it and pasted it back into this the editor adds the space emmmm this needs looking into
    Last edited by DCVoltZ; 10-27-2008 at 05:30 PM. Reason: text editor adds spaces in the paste

  5. #5
    Join Date
    Apr 2007
    Location
    San Diego, CA
    Posts
    1,348
    yeah, forums are known for chopping lines out... nice catch though.
    the .doc file I attached should have had the correct code though, no?
    did you remember to rename the .doc to a .bog?
    a .bog file in reality is a zip file, that in turn contains an xml file.

    The way to bring a .bog into a live station, is to look for it under My Host->My File System and then drag it file into a folder within a live station.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Comfortech Show Promo Image

Related Forums

Plumbing Talks | Contractor Magazine
Forums | Electrical Construction & Maintenance (EC&M) Magazine
Comfortech365 Virtual Event