Dim HBYTE(8) As Byte
Dim LBYTE(8) As Byte
Dim BBYTE(8) As Byte
Dim HLEV As Double
Dim LGRD As Double
Dim BGRD As Double
Private Declare Sub CopyMemory Lib "Kernel32" Alias "RtlMoveMemory" (ByVal Destination As Long, ByVal Source As Long, ByVal Lenghgt As Long)
''''''''''''''
Private Sub Command2_Click()
Dim Dateidaten
Dim GH As Byte
Dim TMP As String
Command2.Enabled = False
For I& = 0 To 38
CMD(I&).Enabled = False
Next I&
List1.Clear
Open Dir1 & "\" & File1 For Binary As #1' Datei zum Einlesen ?ffnen.
header = Input(15, #1)
If header <> "GARCON:PROJECT:" Then GoTo ERR
Do While Not EOF(1)' Auf Dateiende abfragen.
GHA = Input(1, #1)
If GHA <> "" Then
GH = Asc(GHA)
TMP = TMP & Chr(GH)
k = k + 1
Else
a = a
End If
Loop
Close #1
On Error Resume Next
For I& = 1 To Len(TMP)
a1 = InStr(I&, TMP, Chr(4))
a2 = InStr(a1 + 1, TMP, Chr(1))
If a1 = 0 Or a2 = 0 Then Exit For
wert1 = Trim$(Mid(TMP, a1 + 1, a2 - a1 + 1)) 'Bezeichner
a = a
a3 = InStr(a2 + 1, TMP, Chr(64))
If a3 = 0 Then Exit For
WERT2 = Right(Mid(TMP, a2 + 1, a3 - a2), 8) 'H?he
If Len(WERT2) <> 8 Then
a3 = InStr(a2 + 2, TMP, Chr(64))
WERT2 = Mid(TMP, a2 + 1, a3 - a2) 'Breite
End If
HBYTE(0) = Asc(Mid(WERT2, 1, 1))
HBYTE(1) = Asc(Mid(WERT2, 2, 1))
HBYTE(2) = Asc(Mid(WERT2, 3, 1))
HBYTE(3) = Asc(Mid(WERT2, 4, 1))
HBYTE(4) = Asc(Mid(WERT2, 5, 1))
HBYTE(5) = Asc(Mid(WERT2, 6, 1))
HBYTE(6) = Asc(Mid(WERT2, 7, 1))
HBYTE(7) = Asc(Mid(WERT2, 8, 1))
Call CopyMemory(VarPtr(HLEV), VarPtr(HBYTE(0)), 8)
a4 = InStr(a3 + 1, TMP, Chr(64))
If a4 = 0 Then Exit For
WERT3 = Mid(TMP, a3 + 1, a4 - a3) 'Breite
If Len(WERT3) <> 8 Then
a4 = InStr(a3 + 2, TMP, Chr(64))
WERT3 = Mid(TMP, a3 + 1, a4 - a3) 'Breite
End If
BBYTE(0) = Asc(Mid(WERT3, 1, 1))
BBYTE(1) = Asc(Mid(WERT3, 2, 1))
BBYTE(2) = Asc(Mid(WERT3, 3, 1))
BBYTE(3) = Asc(Mid(WERT3, 4, 1))
BBYTE(4) = Asc(Mid(WERT3, 5, 1))
BBYTE(5) = Asc(Mid(WERT3, 6, 1))
BBYTE(6) = Asc(Mid(WERT3, 7, 1))
BBYTE(7) = Asc(Mid(WERT3, 8, 1))
Call CopyMemory(VarPtr(BGRD), VarPtr(BBYTE(0)), 8)
Breitengrad = CDbl(BGRD)
a5 = InStr(a4 + 1, TMP, Chr(64))
If a5 = 0 Then Exit For
WERT4 = Mid(TMP, a4 + 1, a5 - a4) 'l?nge
If Len(WERT4) <> 8 Then
a6 = InStr(a5 + 1, TMP, Chr(64))
WERT4 = Mid(TMP, a5 + 1, a6 - a5) 'l?nge
a = a
End If
LBYTE(0) = Asc(Mid(WERT4, 1, 1))
LBYTE(1) = Asc(Mid(WERT4, 2, 1))
LBYTE(2) = Asc(Mid(WERT4, 3, 1))
LBYTE(3) = Asc(Mid(WERT4, 4, 1))
LBYTE(4) = Asc(Mid(WERT4, 5, 1))
LBYTE(5) = Asc(Mid(WERT4, 6, 1))
LBYTE(6) = Asc(Mid(WERT4, 7, 1))
LBYTE(7) = Asc(Mid(WERT4, 8, 1))
Call CopyMemory(VarPtr(LGRD), VarPtr(LBYTE(0)), 8)
L?ngengrad = CDbl(LGRD)
End Sub
御道御小黑
- 粉丝: 78
- 资源: 1万+
最新资源
- 燃气表摇杆上料压装机sw18全套技术开发资料100%好用.zip
- 美容品、电脑、书检测17-YOLO(v5至v11)、COCO、CreateML、Paligemma、TFRecord、VOC数据集合集.rar
- Runtime Editor v4.4.6
- 考虑需求响应的微网优化调度matlab 程序采用粒子群算法,风力发电机、光伏发电机、储能装置、燃气轮机、柴油机组等主体,考虑负荷需求响应、soc约束等,程序模块化编程,注释清楚,有对应资料
- STM32F103C8T6实现用2.4G模块NRF2401传输室内温湿度并显示OLED 源程序
- GENEX-Probe-3.5软件及GENEX-Assistant-3.5软件使用及报告输出指导书
- , 免费,局域网,IP电话, SIP, VOIP, 视频通话,可与手机互通,手机上也安装 yealink
- 西门子S7-200PLC和MCGS组态的燃油锅炉控制系统
- Peer-to-peer LAN chat and file transfer, 局域网点对点消息传输和文件 传输,类似飞秋
- FreeModbus从机基于STM32平台移植源码
- 基于高频方波电压注入的永磁同步电机无感FOC 1.采用方波电压注入,减少了提取dq轴基频电流时LPF的使用,提高了系统的动态性能; 2.可实现带载起动和突加负载运行; 提供算法对应的参考文献和仿真模型
- 免费,局域网,IP电话, SIP, VOIP, 视频通话,可与手机互通,需要安装 手机版本
- 旅游景点数据集.zip
- 基于龙贝格观测器的永磁同步电机无感FOC 1.采用龙伯格观测器提取电机反电势,使用PLL从反电势中获得转子位置和速度信息 2.提供算法对应的参考文献和仿真模型,支持技术解答 仿真模型纯手工搭建
- 中国汽车基础软件发展白皮书4.0
- 背包、炸弹、瓶子、椅子、时钟、键盘、老鼠、人检测1-YOLO(v5至v11)、COCO、CreateML、Paligemma、TFRecord、VOC数据集合集.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈