Posts: 125
Threads: 16
Joined: May 2020
Reputation:
0
Hi, how can I create a large number of virtual objects with the same specific properties, using a script, specifying a smaller address and a larger address or the desired number of addresses?
Greetings
Posts: 4572
Threads: 23
Joined: Aug 2017
Reputation:
206
You received the answer already, use grp.create and some loop.
https://openrb.com/docs/lua.htm#grp.create
------------------------------
Ctrl+F5
Posts: 125
Threads: 16
Joined: May 2020
Reputation:
0
Hello
Yes, but I'm trying to use it and I can't make a loop that does what I want.
Greetings
Posts: 125
Threads: 16
Joined: May 2020
Reputation:
0
Hello Thanks is just what I needed.
The point is that I want to understand the buslib.encodega function.
What it does is get the id of the group address? What is a direct call to the object database?
I can't find it in the documentation.
Greetings
Posts: 4572
Threads: 23
Joined: Aug 2017
Reputation:
206
It just converts group addresse in to numeric format.
------------------------------
Ctrl+F5
Posts: 167
Threads: 20
Joined: Apr 2017
Reputation:
2
27.06.2021, 12:48
(This post was last modified: 27.06.2021, 12:50 by Dré.)
I did made a export in ETS, with a esf file.
I opened it in a notepad en edit the names, groupadresses en type.
and i imported in to the LM.
So i can edit all at the same time in a single view.
It also support to import a virtual object.
For me it was easier to do, and i could use different names types for all of these object.
Posts: 7720
Threads: 42
Joined: Jun 2015
Reputation:
446
ESF works but you cannot specify the datatype there directly, only the data length in bits/bytes. This means that all 1 byte objects will have 05.001 scale datatype, 2 bytes will have 09 floating point datatype and so on.
Posts: 7720
Threads: 42
Joined: Jun 2015
Reputation:
446
This can be caused by the the internal microSD card being in read-only state. The only solution is to replace it.