Recently active
Step 3: Monitor SPC PropertiesStep 4: Next Steps Step 3: Monitor SPC Properties Once the properties have been configured, you are ready to progress on to SPC monitoring. This is done by viewing the PTC.SPC.Monitoring_MU Mashup. NOTE: Once a property has been configured for SPC monitoring, 2-5 minutes must pass before the accelerator has collected enough streaming values to perform SPC calculations. During this time, you may see an item that has 2 OOC rules violated; “Collecting Enough Data to Begin Monitoring” and “… to Compute Capability”. Within Property SPC Status, click an item from the grid that has 0 in the OOC column. See that the Out of Control Rules area is blank, since there are no currently-violated SCP rules for that selected property. Both CP and CPK are above 1.0, showing that the process is capable. All the points in the charts are blue, as they do not violate any OOC rules. Within Property SPC Status, click an it
hi, i have a thing with several service each of them add a entry to stream when is executed, the process for add this entry is same on all services but not all services add entry, and i don´t know which is a problem. can you help me?
Hi Everyone, I am having troubles while creating Java extension for converting data from JSON to INFOTABLE, I have tried multiple methods and no seem to work. @ThingworxServiceDefinition(name = "JsontoInfo", description = "", category = "", isAllowOverride = false, aspects = {"isAsync:false" })@ThingworxServiceResult(name = "Result", description = "", baseType = "INFOTABLE", aspects = {"isEntityDataShape:true", "dataShape:DemoDS" })public InfoTable JsontoInfo(@ThingworxServiceParameter(name = "input", description = "", baseType = "JSON", aspects = {"defaultValue:{\"name\":\"Abcd\",\"salary\":25000,\"married\":true}" }) InfoTable input) {_logger.trace("Entering Service: JsontoInfo");_logger.trace("Exiting Service: JsontoInfo");return input;}ERROR: Unable to Invoke Service JsontoInfo on TestResJson2info : Cannot cast org.json.JSONObject to com.thingworx.types.InfoTable if anybody
Below is my code: //creating an infotablelet Log = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape({infoTableName: "InfoTable",dataShapeName: "DataShape"}); //Defining date variablevar currentDate; //assigning valueList variable to my infoTable property that contains values (current it only has one row)var valuesList = Things["TestThing1"].infoTableThingProperty; //loop through the infotable abovefor(var i=0; i<valuesList.length; i++){// new object newEntry = {duration:valuesList[i].duration,source: valuesList[i].Source,Name: valuesList[i].Name,Type: valuesList[i].Type,StartTime: valuesList[i].StartTime,EndTime: valuesList[i].faultEndTime,Voltage: valuesList[i].Voltage,Text: valuesList[i].Text};//adding my object values to the infotableLog.AddRow(newEntry);} //adding my infotable to the stream var newLog = Things["SinkWorx.PwrSupplyError_Stream"].AddStreamEntries({values: Log /* INFOTABLE {"dataShape":"StreamEntryWithValues"} */});&nbs
Some background, we were having some issues with properties connecting that do not change often. We changed the push type of the property to "Always" and this allowed good quality. According to best practices though, we shouldn't do this for many properties. In the same article, it mentions setting the Cache time would pull from the Edge device so we tried this in hopes these properties can pull these static values and connect. Issue: We're having trouble with setting the cache time of a remote property via service. Here's the code, cacheTime grabbed from this article. // properties and addresses from Kepware propertiesAndAddresses = ["FlowMeterFlowRateAV","S7E_1501_1032.1032.3.DB74,DBW10",.....]; for(var i = 0; i < propertiesAndAddresses.length - 1; i+=2){ var aspects = { "tagAddress": propertiesAndAddresses[i+1], "scanRate": 500 }; me.SetRemotePropertyBinding({ propertyName: propertiesAndAddresses[i], // STRING aspects: aspects,// JSON cache
Guide ConceptStep 1: Completed ExampleStep 2: Define OrganizationStep 3: Security and PermissionsStep 4: Deploy ApplicationStep 5: Logging and TroubleshootingStep 6: Next Steps Guide Concept This project will introduce how to get your application ready for usage by actual users or ready to collect data. Following the steps in this guide, you will be ready to present your finished application to users so they can benefit from its functionality. Deploying your application provides the ability for users to access it from anywhere, anytime and enables your edge devices to communicate with your application 24/7. We will teach you how to deploy your ThingWorx IoT application to be ready for whatever experience you've molded it to be. You'll learn how to Create login screens, users and user groupsDefine security permissionsDeploy applicationIdentify and troubleshoot issues NOTE: This guide's content aligns with ThingWorx 9.3. The estimated time t
Guide ConceptStep 1: Completed ExampleStep 2: Create Style DefinitionStep 3: Customize Style Definitions Convey information about IoT data effectively by customizing style definitions and implementing event-based logic Guide Concept This project will help you identify how you would like to create an experience for Users. Following the steps in this guide, you will use color schemes to convey information quickly and effectively, for example to alert users of critical events. With ThingWorx Composer, you can implement Styles and States in your Mashups to enhance your user experience. We will teach you how to create an affective IoT application experience that looks great and easy to navigate. How the UI is presented can influence users and their enjoyment of the application. You'll learn how to Create a Style DefinitionCustomize Style DefinitionsCreate and implement State DefinitionsImplement event-based state changes NOTE: This guid
Step 4: Create and Implement State DefinitionsStep 5: Implementing Event-Based State ChangesStep 6: Next Steps Step 4: Create and Implement State Definitions A state definition is a collection of style definitions, along with rules for when to apply each style definition. The rule plus the style definition is a state. In the HelloWorldPlayground Mashup, if the Gauge Widget goes to 10 and the Increment the Count button is clicked once again, the Gauge starts back at 0. This value change is displayed in the Line Chart when it is refreshed. Nevertheless, it would be helpful to have a way to show a user that they’re encroaching 10 and will have to restart, such as the Gauge changing colors in the section. This and many other uses is where State Definitions become useful and go hand and hand with Style Definitions. Create Style Definition to Represent State Change First, let’s create Style Definitions to represent the changes in the count. The default St
Hi Community, We created a grid using collection widget, which is working fine for us and is showing data as per expectation.But only two users are facing this issue that no data is loading for them on screen, but service is returning data in response. Although, I can see child mashup name in headers of network with Request Method as GET and Error code as 404.Is data loading on response and not on runtime because of this 404 error or can this be due to something else?Permissions seem to be working fine for user.
Guide ConceptStep 1: Create Thing ShapeStep 2: Add Properties to Thing ShapeStep 3: Next Steps Use Thing Shapes to create groups of related Properties Guide Concept Save time and effort by modeling a solution in ThingWorx using Thing Shapes to group Properties.A logical group of Properties can be applied to Things and Thing Templates. You'll learn how to Create a Thing ShapeAdd Properties to a Thing Shape NOTE: This guide's content aligns with ThingWorx 9.3. The estimated time to complete this guide is 30 minutes Step 1: Create Thing Shape In this section you will create a Thing Shape for sensor properties of a MXChip development board. Thing Shapes are components that contain Properties and Services. In Java programming terms, they are similar to an interface. Start on the Browse folder icon of ThingWorx Composer.Under the Modeling section of the left-hand navigation panel hover over Thing Shapes, then click the
Hello,I develop a thingworx application and our application is in a site that publishes us as an iframe. But in this way, the cookies do not work anymore. Indeed, the domain name on my browser is no longer the one of the Thingworx application. And I have the impression that it does not fit anymore. Is it possible to configure the cookie domain name so that it works as an iframe? Thank you for your help.
Guide ConceptThingWorx Analytics OverviewThingWorx Analytics Video GuideNext Steps A series of training videos for ThingWorx Analytics Guide Concept This guide provides a series of training videos covering ThingWorx Analytics Server and Platform Analytics. It is recommended that they be viewed in order. Additionally, a downloadable .zip with additional training materials is provided. You'll learn how to Use ThingWorx AnalyticsUnderstand the Analytics Thought ProcessBasic Analytics concepts (data types, variables, modeling)Descriptive AnalyticsPredictive Analytics modeling techniquesFamiliarity with other topics: Prescriptive Analytics, Clustering, Time Series, Anomaly DetectionAcquire basic knowledge of how to create an end-to-end Smart ApplicationDeepen your Foundation and Analytics understandingNOTE: This guide's content aligns with ThingWorx 9.3. The estimated time to complete all parts of this guide is 12 hours ThingWo
Step 3: Creating Customer DataStep 4: Expanding Logistics ModelsStep 5: Next Steps Step 3: Creating Customer Data Now let’s begin creating the customer data. Just enough examples for us to understand what is happening at each step. Let’s create at least 4 customers by following the steps below: Open the Fizos.Customers.DataTable Data Table and go to the services tab.Open the AddDataTableEntries service to be executed. This service will allow us to create some general data to work with. You can create as many as you like for this test. Click the values parameter to start creating entries.After clicking + Add, and enter data for customers. Try to add at least 1 Factor data tag for each customer. Save your entry and create a second entry with any location and tags you like. We aren’t adding vehicles as of yet, but we will in the next section.After saving, don’t forget to execute the service with the two entries s
GUIDE CONCEPTStep 1: Examples and StrategyStep 2: Expanding Customer Models Learn how to create systems to handle logistics and production distribution GUIDE CONCEPT This project will introduce complex aspects of the ThingWorx Composer and solution building. Following the steps in this guide, you will develop your own IoT application or get a jump start in how to utilize ThingWorx for your needs. We will teach you how to create a focused rules engine or service level logic to be used with the ThingWorx Platform. YOU'LL LEARN HOW TO Create automated logistical processesUse Services, Alerts, and Subscriptions to handle processes without human interactionIntegrating complex logic with straight forward step by step systems NOTE: This guide's content aligns with ThingWorx 9.3. The estimated time to complete All parts of this guide is 60 minutes. Step 1: Examples and Strategy This guide builds on the knowledge gain
GUIDE CONCEPTStep 1: Learning Path OverviewStep 2: Setup PLCStep 3: Create PLC ProjectStep 4: Configure ThingWorx Kepware ServerStep 5: TroubleshootingStep 6: Next Steps GUIDE CONCEPT This guide introduces connecting an Allen-Bradley PLC to ThingWorx Kepware Server. YOU'LL LEARN HOW TO Create and run a simple ladder logic application on an Allen-Bradley PLCConnect the PLC to ThingWorx Kepware Server NOTE: The estimated time to complete this guide is 30 minutes. Step 1: Learning Path Overview Assuming you are using this guide as part of the Rockwell Automation Learning Path, then you have now completed each of the following installations: 1. Connected Components Workbench 2. ThingWorx Kepware Server 3. ThingWorx Foundation (for Windows) In this continued step, you'll now connect an Allen-Bradley PLC to Connected Components Workbench and then to
Step 9: File TransferStep 10: TroubleshootingStep 11: Tunneling ExampleStep 12: Next Steps Step 9: File Transfer To handle file transfers, create a virtual directory in the FileTransferExample Entity and in the project directory. The source code used for this example is found in com.thingworx.sdk.examples.FileTransferExample.java. Set Up File Transfer Right-click the project. Click New. Scroll and select Folder.Enter transfer/incoming into the text box at the bottom. Click Finish.Repeat steps 1 and 2, but create a folder called transfer/outgoing.Right-click the transfer/outgoing folder. Click New. Scroll and select File.Create a file with the name outgoing.txt. Click Finish.Once the outgoing.txt document is open, add the following text, click Save, and close the file:Hello. This is a file coming from the client application.Navigate to the FileTransferExample.java code and update the lines below
Step 7: Delivery Truck ModelStep 8: Services and Events Step 7: Delivery Truck Model In the Delivery Truck application, there are three Delivery Truck Things. Each Thing has a number of Properties based on its location, speed, and its deliveries carried out. In this design, when a delivery is made or the truck is no longer moving, the property values are updated. The DeliveryTruckThing class extends the VirtualThing class and based on the DeliveryTruck Entities in the Composer. After extending VirtualThing, there are a number of steps necessary to get going. For the DeliveryTruckThing and SimpleThing classes, there are a number of methods for creating Properties, Events, Services, and Data Shapes for ease of use. The constructor for the DeliveryTruckThing takes in the name of the Thing, the description of the Thing, and the ConnectedThingClient instance used to make the connection. It then sends these values to the VirtualThing constructor as sh
Step 6: Power Grid Example Step 6: Power Grid Example In the Power Grid application, there are three Generator Things and three Consumers. Each Thing has a number of Properties based on its location, wattage, and its power lines provided with power. In this design, when a generator goes offline, comes back online, or one of the other power grid aspects are updated/created/deleted, the Property values are updated. The GeneratorThing class extends the VirtualThing class and based on the Generator entities in the Composer. After extending VirtualThing, there are a number of steps necessary to get going. For the GeneratorThing and SimpleThing classes, there are a number of methods for creating Properties, Events, Services, and Data Shapes for ease of use. The constructor for the GeneratorThing takes in the type of electricity generator, name of the Thing, the description of the Thing, and the ConnectedThingClient instance used to
Step 3: Test ConnectivityStep 4: Run Sample ApplicationsStep 5: Example Client Connection Step 3: Test Connectivity Before you can begin developing with the ThingWorx Java SDK, you will need to generate an Application Key and add it to the source code provided. Generate Application KeyOn the Home screen of Composer click + New the top left. In the dropdown list, click Application Key. Give your Application Key a name (i.e., MyAppKey) and set the Project (ie, PTCDefaultProject).Assign the application key to a User. Click Save.After saving, a Key ID is generated and appears above the Expiration Date. This is the secret key that you will use to make secure connections. If you have not updated the Expiration Date field, the default will be one day.This is an example of the Application Key ID that you will use for a successfull connection. NOTE: Using the Application Key for the default Adminis
GUIDE CONCEPTStep 1: Completed ExampleStep 2: Environment Setup Use our developer toolkit to connect Java-enabled devices and build an application. GUIDE CONCEPTThis project will introduce complex aspects of the ThingWorx Java SDK and help you to get started with development. Following the steps in this guide, you will develop your own IoT application with the ThingWorx Java SDK. We will teach you how to use the Java programming language to connect and build IoT applications to be used with the ThingWorx Platform. NOTE: This guide's content aligns with ThingWorx 9.3. The estimated time to complete all parts of this guide is 60 minutes. YOU'LL LEARN HOW TO Establish and manage a secure connection with a ThingWorx server, including SSL negotiation and connection maintenanceEnable easy programmatic interaction with the Properties, Services, and Events that are exposed by Entities running on a ThingWorx serverCreate applications that can be di
Step 7: Import ExtensionStep 8: Integrating Custom AuthenticationStep 9: Next Steps Step 7: Import Extension In the ThingWorx Composer. in the bottom left, click Import/Export, then select Import. NOTE: The build produces a zip file in AuthenticatorExample->build->distributions folder. This zip file will be required for importing the extension. 2. For the Import Option field, select Extension. 3. Click Browse and choose the zip file in the distributions folder (located in the Eclipse Project's build directory). 4. Click Import to finalize the import. Navigate to New Authenticator Navigate to and select Security > Authenticators. 2. You will now see your CustomizedAuthenticator Authenticator as a option to view/edit. 3. C
Step 4: Install and ConfigureStep 5: Create Extension ProjectStep 6: Build Extension Step 4: Install and Configure Before you install the plugin, ensure that software requirements are met for proper installation of the plugin. Open The Eclipse IDE and choose a suitable directory as a workspace.Go to the menu bar of the Eclipse window and select Help->Install New Software…After the Install window opens, click Add to add the Eclipse Plugin repository.Click Archive… and browse to the directory where the Eclipse Plugin zip file is stored and click Open.NOTE: Do not extract this zip file.Enter a name (for example, Eclipse Plugin). Click OK.Ensure that the Group items by category checkbox is not selected.Select ThingWorx Extension Builder in the items list of the Install window.Click Next and the items to be installed are listed.Click Next and review the licens
GUIDE CONCEPTStep 1: Completed ExampleStep 2: Understanding AuthenticatorsStep 3: Download Plugin and SDK Build authentications extensions quickly and add to the security of your application. GUIDE CONCEPT Extensions enable you to quickly and easily add new functionality to an IoT solution. Extensions can be service (function/method) libraries, connector templates, functional widgets, and more. These pointers and steps will enable you to maintain focus on development of your own application and still utilize the power of ThingWorx for other purposes at the same time. When to Utilize: You have your own login from outside of ThingWorx but you want to leverage ThingWorx user management You are using an identity provider other than ThingWorx You need to support passing of credentials in headers/query string parameters which ThingWorx doesn’t support out-of-the-box Concept Whether you would like ThingWorx to handle the security f
Guide ConceptStep 1: Install SoftwareStep 2: Set up Arduino IDE, Developer Board, and ThingWorx ServerStep 3: Run Arduino DemoStep 4: Next Steps Connect an ESP8266 WiFi module using the Arduino programming environment and the ThingWorx REST API. This information was created for a previous version of ThingWorx and may not be fully accurate. Report any issues with this article here. Guide Concept This project will introduce the utilities ThingWorx provides for connections to an Adafruit Feather. Following the steps in this guide, you will have a fully configured setup between your Adafruit Feather and the ThingWorx platform to begin your IoT development. We will teach you how to utilize the ThingWorx REST API and the Arduino programming language to connect your Adafruit Feather for IoT application development. You'll learn how to Connect an ESP8266 WiFi module to a ThingWorx server Use the Arduino programming environment with t
GUIDE CONCEPTStep 1: Completed ExampleStep 2: Templates and Using Code Snippets Expedite your application development with new ThingWorx features. GUIDE CONCEPT This project will introduce you to a variety of features designed to expedite the IoT application development workflow. In particular, there are several features that make the creation of custom Services quicker and easier when writing and testing your code. Following the steps in this guide, you will learn how to access features that will help you throughout your software development lifecycle: development, execution, and testing. We will teach you how to became a faster and more efficient IoT application developer. YOU'LL LEARN HOW TO Use Snippets to generate codeExecute and test ServicesSave Service test cases to facilitate QA processUtilize the code auto-completion featureTest code at design time with Lint warnings and errors NOTE: This guide's content aligns with
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.