Recently active
Step 5: Contained MashupStep 6: Add Chart Step 5: Contained Mashup Our Minimum Viable Product (MVP) Mashup which we created in the last guide did have valid information. Being able to display the inputs coming from the engine, as well as the analytical results coming from ThingWorx Analytics, are certainly items we don’t want to lose in this new, more complete Mashup. Rather than recreating that work from scratch, we’ll simply include that previous Mashup in one of our sub-section via the Contained Mashup Widget. 1. Click on the top-left section to select it, and ensure that you’re on the Widgets tab in the top-left. 2. Drag-and-drop a Contained Mashup Widget onto the top-left section. 3. With the Contained Mashup Widget selected, return to the Properties tab in the bottom-left. 4. Scroll down and locate the 
Step 7: Add GridStep 8: Add ControlsStep 9: View MashupStep 10: Next Steps Step 7: Add Grid It might also be helpful to display the data you've used to build the ThingWorx Analytics model. In the future, this might be split out into an entirely separate page/Mashup that is exclusively devoted to backend model creation, but that would be beyond the scope of this guide. For now, we'll simply display that collected data via the Grid Widget 1. On the EEFV_Mashup, drag-and-drop a Grid Advanced Widget onto the bottom-left Canvas section.. 2. On the top-right Data tab, click the green </> button beside Things_EdgeThing.Note that this will open the Add Data pop-up, but with EdgeThing pre-selected. 3. In the Services Filter field, type getproperties. 4. Click the right-arrow beside GetProperties to add it to Selected
GUIDE CONCEPTStep 1: ScenarioStep 2: Modify config.lua Use the Edge MicroServer (EMS) to simulate an engine with vibration sensors. GUIDE CONCEPT The Edge MicroServer (EMS) facilitates connectivity from Edge devices to ThingWorx Foundation. It’s often easier, though, to start development with simulated Edge values rather than hooking up sensors. This guide will show you how to simulate vibration values of an engine using the EMS. YOU'LL LEARN HOW TO Modify an EMS TemplateProvision Thing Properties and Values from an EMS rather than FoundationSend information from an EMS to FoundationStore large amounts of data in an InfoTable PropertyCreate a simulator for testing NOTE: The estimated time to complete all parts of this guide is 30 minutes. Step 1: Scenario MotorCo manufactures, sells, and services commercial motors. Recently, MotorCo has been developing a new motor, and they already have a working prototype. H
Step 5: Create InfoTable Step 5: Create InfoTable Now that we have connected values coming from our EMS engine simulator, we want a method of permanent storage whenever we feel it's appropriate to take a sample. From repeated sampling, we'll be able to build up a historical record usable for both manual inspection, as well as automatic analysis via ThingWorx Analytics (though ThingWorx Analytics is beyond the scope of this guide). To hold these records, we'll use an Info Table Property. But any time that you create an Info Table, you first need a Data Shape to format the columns. Click Browse > MODELING > Data Shapes. At the top-left, click + New. In the Name field, type esimDataShape. If Project is not already set, search for and select PTCDefaultProject.At the top, click Field Definitions. We now want to add a separate Field Defini
Step 3: Modify YourEdgeThingTemplate.luaStep 4: Modify EdgeThing Step 3: Modify YourEdgeThingTemplate.lua Now that the task rate has been decreased to 1000ms (one second), we can create a series of Thing Properties. In Windows, navigate to C:\CDEMO_EMS\etc\custom\templates. In your prefered text-editor, open YourEdgeThingTemplate.lua. We now want to add several lines of Lua code to define some Properties for EdgeThing. You’ll do some with some references that are pre-built into the EMS, primarily the properties structure. Working with the engine R&D team, their plan is to place two vibration sensors on the proptype engine. In addition, each vibration sensor will have five frequency bands. As such, we’ll need ten Properties to represent the vibration readings. In addition, we also want a Property that will record whether or not the engine is currently experiencing the low grease condition. This will be entered via manual-inspection at the sam
Step 6: Record DataStep 7: Next Steps Step 6: Record Data Now that we have a place to permanently store the values coming from the EMS engine simulator,we'll write a Service to take samples and place them within the Info Table. Part of that Service, though, will be incrementing the identifier, so we'll need to create one last Property. Ensure that you're on the Properties and Alerts tab of EdgeThing.At the top-left, click + Add. In the Name field of the slide-out on the right, type identifier.Change the Base Type to NUMBER.Click Persistent.Click Has Default Value.In the Has Default Value field, type 0. At the top-right, click the "Check" button for Done.At the top, click Save. Store the Property Values With all the pieces in place, we can now create our Service to add entries to our Info Table Property. At the top of EdgeThing, clic
Hi all, i have a menu which has 10 items in it. For one site i need to have 10 menu item. For other site i only need 8 item in a menu. Suggest a code to hide or delete the menu items based on my condition. Thanks in advance
For the random interval of time Kepware gets disconnected from thingworx (cloud server)
Hello, this is my first post, I search a solution to programmatically run an export 'xml' of all PLC from Kepware V5.21. I search on porwershell via Get-Command without any result. Someone already solve this please ?
Step 3: Configure EMSStep 4: Connect EMS Step 3: Configure EMS Now that you have "installed" (i.e. downloaded, unzipped, and moved to an appropriate location) the EMS on your Windows computer, it needs to be configured. The primary method of doing so is via the config.json and config.lua files. In this step, we'll create these files and paste some JSON / Lua configuration into them. Navigate to the C:\CDEMO_EMS\etc directory. Right-click inside the folder’s white-space and select New -> Text Document. Change the name of New Text Document.txt to config.json.Here are instructions on how to configure your computer to display file extensions if you are not currently doing so. Click Yes in the Rename Popup to confirm the file extension change. Open config.json in your preferred text editor.NOTE: You wil
Step 5: Verify ConnectivityStep 6: Next Steps Step 5: Verify Connectivity The EMS is now attempting to talk to the ThingWorx platform. However, ThingWorx does not have detailed information about the Edge device that is attempting to connect to it, so it will show up in the Unbound category. Open ThingWorx Composer. On the left, click Monitoring. Click STATUS > Remote Things. Click Unbound. Confirm that you see the EdgeThing listed in the Unbound section.NOTE: The name EdgeThing comes from the config.lua script. EdgeThing is simply the name that is in that script, hence the name that you see in ThingWorx. To change the name of the device, you could stop both wsems.exe and luaScriptResource.exe, edit config.lua to use a different Thing name other than EdgeThing, and then restart both of the WSEMS programs. At that point, the Thing showing up in Remote Thin
GUIDE CONCEPTStep 1: ScenarioStep 2: Create a TimerStep 3: Subscribe to the TimerStep 4: Data Acquisition Use a Timer to record mass amounts of test data, and then export it as a Comma-Separated Values file. GUIDE CONCEPT Having an Edge MicroServer (EMS) Engine Simulator has allowed you to begin work on using ThingWorx Foundation for instrumenting a prototype engine. However, the end goal is not to inspect the data manually, but to have ThingWorx Analytics perform an automatic notification for any issues. In this guide, you’ll create a Timer to generate thousands of data points, and then export the dataset as a Comma-Separated Values (.csv) file for future use in building an analytical model of the engine. YOU'LL LEARN HOW TO Create a TimerSubscribe to a Timer to Trigger a ServiceGenerate Mass Amounts of Test DataImport the CSV Parser ExtensionCreate a File RepositoryExport the Test Data as a Comma-Separated Values (.csv) fileDownload from
Step 5: Import ExtensionStep 6: Create File RepositoryStep 7: Create .csv Export ServiceStep 8: Export the Engine DataStep 9: Next Steps Step 5: Import Extension Now that we have a valid dataset, we want to export it as a .csv file, which can be imported into ThingWorx Analytics in a future guide to generate an analytical model. An easy way to do this is with the CSV Parser Extension, which you’ll now import. 1. Download the CSV Parser Extension from our third party provider IQNOX. Note: An account is required but the download is free. 2. At the bottom-left, click Import/Export. 3. On the drop-down, click Import. 4. For Import Option, select Extension. 5. Click Browse and navigate to the extension you downloaded above. 6. Click Open. 7. Click Import. 8. Click&nbs
Guide ConceptStep 1: Examples and StrategyStep 2: Setup Organizations and DepartmentsStep 3: Setup Users and User GroupsStep 4: Setup Permissions Setup methods and schemes to secure your data Guide Concept Securing data is often something thought of after an application is designed. It should always be the first and more important. These concepts and steps will allow you to focus on development of your application while still allowing the ability to utilize the power of ThingWorx! We will teach you how to design a secure environment and application from scratch You'll learn how to How to design and implement organizations and organization sectionsCreating secure User Groups with specific goalsLimit access to resources NOTE: The estimated time to complete this guide is 30 minutes Step 1: Examples and Strategy If you’d like to skip ahead, download and unzip the completed example of the Aerospace and Defense lea
Step 5: Limiting Composer AccessStep 6: Creating Clearance LevelsStep 7: Next Steps Step 5: Limiting Composer Access If you would like to limit a User even more, there are a few things you can do. Go back to the Administrator account and open one of the accounts we created, such as User.OtherAgencies, you will notice the Enabled and Locked checkboxes. Enabled allows you to set whether an account can be used in ThingWorx during runtime. Locked dictates whether an account can be logged into at all. Suppose we would like for the user to only see emptiness when they try to access the Composer. Follow the below steps to limit ThingWorx Composer access even more. 1. Open one of the Users we created earlier, ie User.OtherAgencies and click on the User Profile tab. The user profile configuration allows an administrator to control which categories and entities should be displayed for an individual User. 2. You will see various sections and checkb
GUIDE CONCEPTStep 1: IntroductionStep 2: Format MicroSDHC CardStep 3: Flash MicroSDHC Card Connect a Raspberry Pi to ThingWorx using the Edge MicroServer (EMS). GUIDE CONCEPT This project will utilize the Edge MicroServer (EMS) to connect ThingWorx Foundation to a Raspberry Pi. YOU'LL LEARN HOW TO Set up Raspberry PiInstall, configure, and launch the Edge MicroServer (EMS)Connect a remote device to ThingWorx Foundation NOTE: The estimated time to complete all parts of this guide is 60 minutes. Step 1: Introduction A Raspberry Pi is a small, single-board computer that utilizes an ARM processor and typically runs a variant of Linux. Due to its small size, relatively affordable cost, and ability to run a full operating system, the Pi is a near-ideal device to utilize as a Proof-of-Concept (PoC) IoT Edge device. In addition, there is a version of the ThingWorx Edge MicroServer (EMS) built to work on ARM
Step 4: Connect Peripherals and Initial ConfigurationStep 5: Install EMS Step 4: Connect Peripherals and Initial Configuration Connect Peripherals Now that we have a working microsdhc flash card with the Raspbian OS, we want to insert it into the Pi, as well as connect our other peripherals and power. Remove the microsdhc card from the adapter. With the power supply NOT connected, insert the microsdhc card into the Pi.Note that it may help to turn the Pi over. With the power supply NOT connected to a wall-socket, connect the power, monitor, USB keyboard, and USB mouse. Plug-in the power-supply to a wall-socket and wait for the Pi to boot. Pi Initial Configuration The Raspbian OS needs some initial configuration to set things such as your location and to connect to a WiFi n
Step 6: Configure EMSStep 7: Connect EMS Step 6: Configure EMS The EMS consists of two distinct components that perform slightly different operations and communicate with each other. The first is the EMS itself which creates an AlwaysOn™ connection to ThingWorx Foundation. It binds Things to the platform and automatically provides features like file transfer and tunneling. The second is the Lua Script Resource (LSR). It is used as a scripting language so that you can add Properties, Services, and Events to the Things that you create in the EMS. Now that you have "installed" (i.e. downloaded, unzipped, and moved to an appropriate location) the EMS on your Raspberry Pi, it needs to be configured. The primary method of doing so is via the config.json and config.lua files. In this step, we'll create these files and paste some JSON / Lua configuration
Step 8: Verify ConnectivityStep 9: Next Steps Step 8: Verify Connectivity The EMS is now attempting to talk to ThingWorx Foundation. However, ThingWorx does not have detailed information about the Edge device that is attempting to connect to it, so it will show up in the Unbound category of Remote Things. Open ThingWorx Composer. On the left, click Monitoring. Click Status -> Remote Things. Click Unbound. Confirm that you see the PiThing listed in the Unbound section.NOTE: The name PiThing comes from the config.lua script. PiThing is simply the name that is in that script, hence the name that you see in ThingWorx. To change the name of the device, you could stop both wsems and luaScriptResource, edit config.lua to use a different Thing name other than PiThing, and then restart both of the EMS programs. At that point, the Thing showing up in Remot
Hello, I have rebuilt a project that fetches some information regarding my companies thingworx platforms.It had to be rebuilt as it was timing out from all of the API requests taking too long to complete. So I designed it like this instead: Where one scheduler will trigger one subscription per platform, which in turn will get some data back from the remote platform. We will then push this to our DB. Now, the "issue" is that there is no way of knowing when all of these subscriptions have actually completed.Or am I wrong about that? If anyone has any insight or have some good links relating to this, please let me know. Regards,
Greetings, To provide a context:I'm building an app to store data from an experience. The process is simple, the app gets data from users and share it to Twx, Twx sends the data to pSQL and gets all data stored in the db to show it in a mashup. Now, I'm triying to send the data to postgresql. I created a js service to get the data from vuforia. I just read that I can't use "me.property" in SQL commands, that I should create variables in the js service and invoke those variables into the SQL command. But I'm not sure how.A different way I thought I could use was to call the Thing property into the SQL. But It didn't work, I think is because I didn't use the right command.Another way was to input the data directly into the SQL but I will have the same problems later in the process because I will need the data to use it in different services. Do you have any advise? Is there any guide about programming SQL in Twx? Thank you a lot for all your advises.
GUIDE CONCEPTStep 1: Example and StrategyStep 2: Setting Mashup PermissionsStep 3: Designing Tracked MashupsStep 4: Viewing and Filtering LogsStep 5: Next Steps Setup user interfaces and ways to track events GUIDE CONCEPT Being able to view your logs is an important part of knowing what is happening in your system. You can't keep things secure if you don't know who is doing what. These concepts and steps will allow you to focus on development of your application while still allowing the ability to utilize the power of ThingWorx! We will teach you how to access the system in a way you might not have done much of before. You'll learn how to How to design and implement meaningful user interfacesView different logs and search for dataNOTE: This guide's content aligns with ThingWorx 9.3. The estimated time to complete this guide is 30 minutes Step 1: Example and Strategy If you’d like to skip ahead, download the completed example of the&nbs
Hi, I would like to use the web frame widget to display a separate web application page in thingworx but by using Thingworx authentication for the page. My idea is: the webpage should be available only through the thingworx application.It is easily possible without any authentication by just passing the URL in the widget(if the user finds the URL and he can paste it into the browser he can access it without any auth.), but now I want to authenticate the web page with the TWX user creds(so by only if the TWX user is logged in or his session is active he can access the page).My initial impression: to use, post JSON service, and pass some user data to validate and authenticate by checking the user's roles, user groups, and ORGs then if the user passes the validation the end URL will be generated and get published (attach to the web frame widget).On the node js side(the webpage links should be available only based on TWX users): I need the user data to validate the users, then I can p
Hi all, I'm currently using ThingWorx 9.1.8-b845 and I have a problem when I want to create a mashup parameters in a Master Mashup. The gear symbol is unclickable (see picture below). Does it mean that I can't create mashup parameters in a master mashup? Best regards
Hi, Need to know how to change the colour of the grid row based on the date. I can change the colour based on string/Numeric. Thanks in advanceKeerthivarman
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.