create one and only one device of a type

Posted on
Tue Mar 11, 2014 11:36 am
kw123 offline
User avatar
Posts: 8392
Joined: May 12, 2013
Location: Dallas, TX

create one and only one device of a type

Matt, Jay,

how can I make sure that only one device of a type is created?

here is what I like to do:

indigoplot split into 2 parts:
1. One "device" used to define which data should be tracked -- that must be done once <== this is my direction of how to manage this.
or should that stay in config, as it is shared across all plots?
2. one create a device for each plot to define and setup parameters , thats ok


Karl

Posted on
Thu Mar 13, 2014 10:18 am
jay (support) offline
Site Admin
User avatar
Posts: 18260
Joined: Mar 19, 2008
Location: Austin, Texas

Re: create one and only one device of a type

If you have a singleton like that, it's generally best to keep it at the plugin config level.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron