Results 1 to 5 of 5
Thread: T7350H and Tridium Jace
-
10-23-2008, 09:36 AM #1
T7350H and Tridium Jace
I have got a job with 15 T7350s 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
-
10-23-2008, 10:52 AM #2
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
-
10-24-2008, 01:18 PM #3
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
-
10-27-2008, 04:27 PM #4
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 intoLast edited by DCVoltZ; 10-27-2008 at 04:30 PM. Reason: text editor adds spaces in the paste
-
10-27-2008, 06:01 PM #5
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.


Reply With Quote