ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

How to update scan rate at a time to few properties industrial thing using service in Thingworx 9

vi1
16-Pearl
16-Pearl

How to update scan rate at a time to few properties industrial thing using service in Thingworx 9

Hi,

How to update scan rate for few properties to Kepware industrial thing at a time using service instead of updating one by one  property in Thingworx 9.5.

I am trying to update scanrate to few properties using service but SQL transaction log size is increasing. Because , updating scan rate one by one property using below service. Is there way update scan rate at a time ?

I am using below code.

for(let i = 0; i < propertynamelist.length; i++) {
 
 ...........
 .................
 
 Things[remotething].SetRemotePropertyBinding({
propertyName: propertyName /* STRING */ ,
aspects: 
        {
          scanRate: 480000  // Update only the scan rate aspect
        }
});
 
}
 
Thanks&Regards,
Latha
ACCEPTED SOLUTION

Accepted Solutions
wcui
16-Pearl
(To:vi1)

Hi @vi1 

This is a known issue when calling SetRemotePropertyBinding frequently because the service execution changes Thing definition so it adds a new record to Thing Change History which writes a new row to ThingWorx persisten database.

 

You can export the xml file of the Industrial thing and manually updated scanrate settings(aspect.scanRate="1000") then import xml file.

This will add only one new record to Thing Change history.

I am afraid currrently there is no other workarounds for this issue.

 

 

View solution in original post

3 REPLIES 3
wcui
16-Pearl
(To:vi1)

Hi @vi1 

This is a known issue when calling SetRemotePropertyBinding frequently because the service execution changes Thing definition so it adds a new record to Thing Change History which writes a new row to ThingWorx persisten database.

 

You can export the xml file of the Industrial thing and manually updated scanrate settings(aspect.scanRate="1000") then import xml file.

This will add only one new record to Thing Change history.

I am afraid currrently there is no other workarounds for this issue.

 

 

vi1
16-Pearl
16-Pearl
(To:wcui)

Thank you for reply. Is there automated service, Instead of Manual Export and Import for updating scan rate? Can we use wait after updating scan rate first property?

wcui
16-Pearl
(To:wcui)

@vi1 

I am afraid SetRemotePropertyBinding is the only available automated service.

For batch updating scanrate of remote property, either to perform Export/Import or to change scanrate settigs from Composer manually.

Announcements




Top Tags