我使用dcuterm,需要调整DTS文件。有人可以协助调整代码吗? [英] I use dcuterm, and need to adjust the DTS file. Can someone assist with adjusting the code?

查看:211
本文介绍了我使用dcuterm,需要调整DTS文件。有人可以协助调整代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用DCUTerm重置制动系统计数器,此时我必须连接到每个单独的IP,运行脚本,然后移动到下一个IP。我希望能够插入IP端口并运行脚本,以便使用相同的方法循环通过预定IP列表。有人可以协助调整代码。我相信对于知道如何操作的人来说非常简单。



目前我连接到端口,然后启动使用此脚本的DCUTerm。 10.0.1.72加载到IP地址栏中,默认端口为54321.



程序ping IP并确认连接,然后单击重置计数器按钮。完成后,我需要手动将IP调整为10.0.1.73,并完成相同的过程等等。



我想连接到端口,让软件ping第一个IP以确认连接,然后单击重置计数器,脚本将运行/循环通过每个IP重置所有计数器一次运行。



I use DCUTerm to reset brake system counters, at the moment I have to connect to each individual IP, run the script, and move to the next IP. I would like to be able to plug into the IP port and run the scrip so it cycles through a list of predetermined IPs using the same method. Can someone assist with adjusting the code. I am sure it is very simple to someone who knows how.

At the moment i connect to the port, then launch DCUTerm that uses this script. 10.0.1.72 is loaded into the IP address bar with default port 54321.

The program pings the IP and confirms connection, then i click the reset counter button. On completion I then need to manually adjust the IP to 10.0.1.73, and go through the same process and so on.

I would like to connect to the port, have the software ping the first IP to confirm connection, then click "reset counters" and the script will then run through/loop through each IP resetting all counters in one single run.

[SocketSetup]
ConnectToServerIP=10.0.1.72
ConnectToServerPort=54321
RemoteControlServerPort=6001
SkipPingTest=0

[DownLoad]
Speed=
EF1=0
EF2=0
EF3=0
DownLoadType=
DownLoadStartFrom=
DownLoadRestartSpeed=
DownloadFileList_LastLine=0
LastLine=0

[Recorder Dump]
ZName1=
ZName2=

[Dump addr]
Begin=
End=

[OutputDir]
LastDir=

[MCUWinForm]
Signal1=
PlotFact1=
Signal2=
PlotFact2=
Signal3=
PlotFact3=
Signal4=
PlotFact4=
Signal5=
PlotFact5=
Signal6=
PlotFact6=
Signal7=
PlotFact7=
Signal8=
PlotFact8=
Signal9=
PlotFact9=

[DSPWinForm]
Signal1=
PlotFact1=
Signal2=
PlotFact2=
Signal3=
PlotFact3=
Signal4=
PlotFact4=
Signal5=
PlotFact5=
Signal6=
PlotFact6=
Signal7=
PlotFact7=
Signal8=
PlotFact8=

[UploadRecorder]
RecName1=
RecName2=
RecName3=
RecName4=
RecName5=
RecName6=
RecName7=
RecName8=
RecName9=
RecName10=
RecName11=
RecName12=
UploadRate=

[File Written by]
ProgramName=DCUTERM
VersionId=3.4.0.0
File Format=320
WindowsSystemLanguage=ENG
ActiveLanguageFromResource=ENU

[Communication]
AppComState=TCP/IP
VT100=1
Connector=COM1
BaudRate=9600
OS=TRACSOS+/EXT

[DCUTerm Symbolic Addresses]
Index1=
Index2=
WIndex=
HiData1=
LoData1=
HiData2=
LoData2=
LogCh1=
LogCh2=
LogCh3=
LogCh4=
LogCh5=
LogCh6=
LogCh7=
LogCh8=

[DCUTerm Hex Addresses]
Index1=
Index2=
WIndex=
HiData1=
LoData1=
HiData2=
LoData2=
LogCh1=
LogCh2=
LogCh3=
LogCh4=
LogCh5=
LogCh6=
LogCh7=
LogCh8=

[Application]
Name=
IconNumber=0
InfoFileName=
StructTreeFileName=C:\Documents and Settings\LU\Desktop\Laptop SymTree_Files\DCUM_SSL_LTA9X7_2_7_6_2_symTree.txt
AllowEditTreeFile=0
SignalTreeFileName=

[Window]
Left=57
Width=780
Top=20
Height=597
FontName=Lucida Console
FontSize=9
FontBold=0
ShowStructTree=0
ShowTraceWin=0
TraceWinStayOnTop=1
TraceWinLeft=22
TraceWinWidth=640
TraceWinTop=29
TraceWinHeight=419
ShowHistWin=0
VerticalSplit=0
HorizontalSplit=247

[View]
Buttons=1
TraceWinDescriptions=1
TraceWinSignalnames=1
TraceWinTimeSpanIndex=0

[Return value]
Target Data=1
TypedScaledData=0
Physical Units=0
Half Precision=0
BinaryData=0
HexData=0
DecimalData=0
FractionalData=0

[ButtonSets]
ActiveSet=Default set
Set_0=Default set

[ButtonSet_Default set]
Btn0Line0=;Dynamic brake counter reset
Btn0Line1=
Btn0Line2=FLS
Btn0Line3=
Btn0Line4=FLC. *
Btn0Line5=
Btn0Line6=O MWT.MXX_DB.Enable/0/.
Btn0Line7=O MWT.MXX_DB.P_Rst/1/.
Btn0Line8=
Btn0Line9=
Btn0Line10=
Btn0Line11=O MWT.MXX_DB.Enable/1/.
Btn0Color=255

[SIGLINK]
IPADDR=
USB_AO0_SignalName=
USB_AO0_SignalDescription=
USB_AO0_SType=
USB_AO0_OutRangeMax=0
USB_AO0_OutRangeMin=0
USB_AO1_SignalName=
USB_AO1_SignalDescription=
USB_AO1_SType=
USB_AO1_OutRangeMax=0
USB_AO1_OutRangeMin=0
USB_AO2_SignalName=
USB_AO2_SignalDescription=
USB_AO2_SType=
USB_AO2_OutRangeMax=0
USB_AO2_OutRangeMin=0
USB_AO3_SignalName=
USB_AO3_SignalDescription=
USB_AO3_SType=
USB_AO3_OutRangeMax=0
USB_AO3_OutRangeMin=0
USB_AO4_SignalName=
USB_AO4_SignalDescription=
USB_AO4_SType=
USB_AO4_OutRangeMax=0
USB_AO4_OutRangeMin=0
USB_AO5_SignalName=
USB_AO5_SignalDescription=
USB_AO5_SType=
USB_AO5_OutRangeMax=0
USB_AO5_OutRangeMin=0
USB_AO6_SignalName=
USB_AO6_SignalDescription=
USB_AO6_SType=
USB_AO6_OutRangeMax=0
USB_AO6_OutRangeMin=0
USB_AO7_SignalName=
USB_AO7_SignalDescription=
USB_AO7_SType=
USB_AO7_OutRangeMax=0
USB_AO7_OutRangeMin=0
USB_DO0_SignalName=
USB_DO0_SignalDescription=
USB_DO1_SignalName=
USB_DO1_SignalDescription=
USB_DO2_SignalName=
USB_DO2_SignalDescription=
USB_DO3_SignalName=
USB_DO3_SignalDescription=
USB_DO4_SignalName=
USB_DO4_SignalDescription=
USB_DO5_SignalName=
USB_DO5_SignalDescription=
USB_DO6_SignalName=
USB_DO6_SignalDescription=
USB_DO7_SignalName=
USB_DO7_SignalDescription=





我需要脚本循环以下内容IP:港口



10.0.1.72:54321

10.0.1.73:54321

10.0.1.74:54321

10.0.1.75:54321

10.0.1.76:54321

10.0.1.78:54321

10.0.1.79 :54321



有人可以帮我调整这个调整吗?



我尝试过:



我试过l oop命令,但它会导致错误,因为我不删除关于按钮的脚本的哪一部分。我试图无休止地调整代码,但一直打砖墙。请有人帮忙。



I need the script to cycle through the following IP:Ports

10.0.1.72:54321
10.0.1.73:54321
10.0.1.74:54321
10.0.1.75:54321
10.0.1.76:54321
10.0.1.78:54321
10.0.1.79:54321

Can someone help me with this adjustment?

What I have tried:

I have tried to loop the commands but it causes errors as I dont what part of the script to remove with regards to the button. I have tried to adjust the code endlessly but keep hitting a brick wall.Please can someone help.

推荐答案

这不是一个脚本,而是一个加载的配置文件你的终端应用。这里没有什么可以改变的。



如果您的终端应用程序支持,您必须从头开始编写脚本来执行您正在谈论的内容。我不知道它是否或如何做。
This is not a script but a configuration file that is loaded by your terminal app. There's nothing to change here.

You'd have to write a script from scratch to do what you're talking about, IF your terminal app supports doing so. I have no idea if it does or how to do it.


这篇关于我使用dcuterm,需要调整DTS文件。有人可以协助调整代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆