Thingworx基础操作步骤docxWord文档格式.docx
《Thingworx基础操作步骤docxWord文档格式.docx》由会员分享,可在线阅读,更多相关《Thingworx基础操作步骤docxWord文档格式.docx(164页珍藏版)》请在冰豆网上搜索。
\PTC\Tomcat
intheDestinationFolderfieldtooverwritethedefaultcontents.
11.Click
Install.
12.Clearthe
RunApacheTomcat
checkbox.
13.Clearthe
ShowReadme
14.Clickthe
Finish
button.
3.Task3.Configureserver.xml.
1.Navigateto
\ptc\Tomcat\conf
2.Right-clickthe
server.xml
file.
3.Select
Sendto.
4.Select
NoteTabLight.
5.Select
Search
fromtheNoteTabLightmenu.
6.Select
Replace.
protocol="
HTTP/1.1"
intheFindwhatfield.
8.Type
org.apache.coyote.http11.Http11NioProtocol"
intheReplacewithfield.
9.Clickthe
ReplaceAll
10.Clickthe
OK
11.Clickthe
SaveDocument
iconinNoteTabLight.
12.Clickthe
Close
4.Task4.ConfigureTomcatsettings.
1.Clickthe
WindowsStart
iconontheWindowstaskbar.
2.Select
AllPrograms.
ApacheTomcat8.0Tomcat8.
ConfigureTomcat.
5.Clickthe
Startuptype
drop-downlisttoexpandit.
Automatic.
7.Selectthe
Java
tab.
8.CopythefollowingfourlinestotheendoftheJavaOptionssectiontoappendthecurrentcontents:
-XX:
+UseNUMA-XX:
+UseConcMarkSweepGC-XX:
PermSize=128m-XX:
MaxPermSize=1024m
▪DependingonyoursystemanddataneedsfortheThingWorxComposer,youmaywanttosettheMaxPermSizelargerthan1024MB.
9.ClearallofthecontentintheInitialmemorypoolfield.
10.ClearallofthecontentintheMaximummemorypoolfield.
Apply
12.Selectthe
General
13.Clickthe
Start
buttontostartTomcat.
5.Task5.InstalltheThingWorxComposerWebapplication.
1.Select
NewTab-GoogleChrome
ontheWindowstaskbar.
2.Type
http:
//localhost
intheaddressbarandpressENTER.
3.Clickthe
ManagerApp
4.Type
inthePasswordfieldandpressENTER.
6.Clickthe
ChooseFile
buttonintheWARfiletodeploysectionoftheuserinterface.
7.Double-click
D:
\Student\ThingWorx\LabFiles\Thingworx.war.
8.Clickthe
Deploy
buttonandwaitforthebrowserpagetorefresh.
6.Task6.OpentheThingWorxComposer.
1.Click
/Thingworx
intheApplicationssectionoftheTomcatWebApplicationManger.
▪IfyouwanttocompletetheMySQLdatabaseintegrationexercisesinthiscourse,youmusteitheruseaPTCUniversitycloud-basedvirtualmachineorinstallMySQLandthesampledata.MySQL,alongwithinstallationinstructions,isavailableaspartofthelabfilespackage.However,weareusingaPTCUniversitycloud-basedvirtualmachine,soMySQLispreinstalled.
Administrator
3.Type
4.Clickthe
Iaccept
⏹第二部分:
开始使用ThingWorx
2.1、CreatingaUserLogin
Task1.Createauserlogin.
Expand
toexpandSecurityintheExplorer.
Users.
3.Clickinthespotlightsearchfieldtoselectit.
4.Type+tolistobjectsyoucancreateinThingWorx.
5.TypeUtolistobjectsyoucancreateinThingWorxthatstartwiththeletterU.
+User.
ThingWorxStudent
intheNamefield.
StudentUser
intheDescriptionfield.
ChangePassword
ptc
intheEnterNewPasswordfield.
11.Type
intheRetypePasswordfield.
UserExtensions
linkintheENTITYINFORMATIONsectionoftheExplorer.
14.Typethee-mailaddressthatcorrespondstoyourSMStextmessagingnumberinthesmsAddressfield.
oInafutureexercise,atextmessagewillbesenttothisuser.Fortheupcomingexercisetowork,thevalide-mailaddressthatcorrespondstoyourSMStextmessagingnumbermustbeset.Formoreinformationonhowtodeterminethecorrecte-mailaddresstouseforthispurpose,visit
15.Typeavalide-mailaddressintheemailAddressfield.
16.Clickthe
Save
2.2、AddingaUsertoaGroup
Task1.AddtheThingWorxStudentusertotheAdministratorsgroup.
1.Type
Ad
inthespotlightsearchfieldtolocateallobjectswithnamesthatbeginwithAd.
2.Selectthe
Administrators
group.
CancelEdit(View)
EditMembers
intheleftpanel.
6.Drag
intotherightpanel.
7.Clickthe
8.Select
Members
intheExplorer.
2.3、ImportingEntities,Mashups,andData
1.Task1.Importentities.
Import/Export
intheThingWorxheadertoexpandadrop-downlist.
FromFile.
3.VerifythattheEntitiesradiobuttonandtheSingleFiletabareselected.Then,selectthe
UseDefaultPersistenceProvider
\Student\ThingWorx\LabFiles\ThingWorxFundamentalsPreloadEntities.xml.
Open
Import
2.Task2.Importdata.
1.WaitfortheImportSuccessfulmessageandthenselectthe
Data
radiobutton.
2.Clickthe
\Student\ThingWorx\LabFiles\ThingWorxFundamentalsPreloadData.json.
2.4、ViewingImportedContent
Task1.Viewimportedcontent.
Mashups
intheThingWorxExplorer.
2.ClickunderthescrollbartoscrolldowntoVendingMain.
VendingMain
link.
Info
ViewMashup
Pop-upswereblockedonthispage.
iconintheChromeaddressbar.
7.Select
Alwaysallowpop-upsfromlocalhost.
Done
buttonagain.
10.Click
toclosethemashupwindow.
MashupPreview
linkintheExplorer.
12.Type
//localhost/Thingworx/Mashups
intheChromeaddressbar.
13.ClickunderthescrollbartoscrolldowntoVendingMain.
2.5、ImportingaWidgetExtension
1.Task1.Importawidgetextension.
underEXTENSIONS.
\Student\ThingWorx\LabFiles\GoogleWidgets_ExtensionPackage.zip.
Yes
2.Task2.Verifythewidgetisviewableintheimportedmashup.
V
inthespotlightsearchfield.
VendingMain.
2.6、AddingaModelTagTermtoanExistingVocabulary
1.Task1.CreatetheThingWorxTrainingtagintheApplicationsvocabulary.
ModelTags
intheModelingsectionoftheThingWorxExplorer.
Applications
ManageTerms
ThingWorxTraining
intheAddTermfield.
AddTerm
2.Task2.TagtheThingWorxStudentuser.
ThingWorxSt
ThingWorxStudent.
Th
intheTagsfield.
ThingWorxTraining.
2.7、CreatingaModelTagVocabularywithTerms
1.Task1.CreatetheEquipmentTypesvocabulary.
New
EquipmentTypes
Ap
Applications:
ThingWorxTraining.
Edit
2.Task2.Addtermstothevocabulary.
VendingMachine
AddTerm.
VendingMachineCommunicationServer
3.Task3.UsetheRESTAPItoviewthevocabulary.
//localhost/Thingworx/ModelTags/
inChrome.
VocabularyTerms
2.8、CreatingaThingShape
1.Task1.CreatetheVendingMachineShapethingshape.
ThingShapes
linkintheThingWorxExplorer.
VendingMachineShape
ShapefortheVendingMachine
A
2.Task2.Addapropertyforthevendingmachinehumidity.
Properties
AddMyProperty
CurrentHumidity
VendingMachineCurrentHumidity
BaseType
listtoexpandit.
NUMBER.
%
intheUnitsfield.
8.Verifythat
Persistent
isnotselectedandthenclick
DoneandAdd
toaddthepropertytotheVendingMachineShape.
3.Task3.Addapropertyforthehumiditysetpoint.
VMHumiditySetpoint
VendingMachineHumiditySetpoint
6.Selectthe
7.Click
4.Task4.Addapropertyforthecurrenttemperature.
CurrentTemperature
VendingMachineTemperature
F
6.Verifythatthe
checkboxisnotselectedandthenclick
5.Task5.Addapropertyforthetemperaturesetpoint.
VMTemperatureSetpoint
2