Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hi guys,
does anyone knows how TQ are defined and processed in ThingWorx.
We are use to seeing those VTQs in SCADA systems, where the quality tag travels across whole system from its source(PLC) to the consumer(OPC client).
I have not found anything about this in Thingworx reference guide.
If you display my property as VTQ all of those are GOOD, so I kind a missing the point.
It has to do something of coarse, otherwise it would not be there..
Any knowledge about this stuff?
Thanks
Tomas
Enjoy your weekend.
Solved! Go to Solution.
Hello,
SetPropertyVTQ just allows for a datetime and quality status to be set when setting a property. This can be used for charting the property updates in Time Series Charts, logging the property updates, etc. The service definition can be found in the Help Center. Here is an example of a SetPropertyVTQ call from the .Net SDK:
using com.thingworx.types.primitives.structs; // this is for VTQ object
using com.thingworx.types.primitives; // for the primitive object below (other examples are IntegerPrimitive or NumberPrimitive)
using com.thingworx.types.constants; // this contains the QualityStatus class
this.setPropertyVTQ("Property1", new VTQ(new StringPrimitive(value), DateTime.Now, QualityStatus.GOOD), true); // give the property name, the VTQ information, and a boolean which tells the method whether or not to force an update
Hope this helps at all!
Tori
VTQ indeed matches up with SCADA systems.
You can write VTQ from the Agent to a property, you can even do it through services/rest api
If you don't provide T or Q then T becomes the time of the update and Q becomes either unknown or good, sounds like it becomes good from your experience.
Thanks,
I got it know.
Have not found the possbility to write VTQ in my Kepware Server, maybe I missed it though
Have a nice day
Hello,
SetPropertyVTQ just allows for a datetime and quality status to be set when setting a property. This can be used for charting the property updates in Time Series Charts, logging the property updates, etc. The service definition can be found in the Help Center. Here is an example of a SetPropertyVTQ call from the .Net SDK:
using com.thingworx.types.primitives.structs; // this is for VTQ object
using com.thingworx.types.primitives; // for the primitive object below (other examples are IntegerPrimitive or NumberPrimitive)
using com.thingworx.types.constants; // this contains the QualityStatus class
this.setPropertyVTQ("Property1", new VTQ(new StringPrimitive(value), DateTime.Now, QualityStatus.GOOD), true); // give the property name, the VTQ information, and a boolean which tells the method whether or not to force an update
Hope this helps at all!
Tori