Herunterladen Inhalt Inhalt Diese Seite drucken

JÄGER ADwin-Pro II Systembeschreibung Seite 324

Programmierung in adbasic
Vorschau ausblenden Andere Handbücher für ADwin-Pro II:
Inhaltsverzeichnis

Werbung

Pro II: Dehnungsmessstreifen-Module
P2_SG_Init
320
Beispiel
#Include
ADwinPro_All.inc
#Define
module
2
gain_B
#Define
2
#Define
ex_B
4
Dim
i
As Long
Dim
Data_1[10]
As Long
LowInit:
Rem set mode single shot and select all channels
P2_SG_Mode(module,1,0FFH)
Rem set gain, filter, and excitation voltage of all bridges
For
i
=
1
To
4
P2_SG_Init(module, i, gain_B, 1, ex_B)
Next
Rem start sampling
P2_SG_Start(Shift_Left(1,
Processdelay
=
40000
Event:
Rem wait for end of sampling
P2_SG_Wait(module)
Rem read 8 values
P2_SG_Read(module, 8, Data_1, 1)
Rem start next sample
P2_SG_Start(Shift_Left(1,
Rem get bridge voltage
For
i
=
1
To
4
FPar[i] = P2_SG_Convert(Data_1[i], gain_B)
Next
Rem get sense voltage
For
i
=
5
To
8
FPar[i] = P2_SG_Convert(Data_1[i],
Next
Rem calculate relative strain
For
i
=
1
To
4
FPar[i+8] = FPar[i] / FPar[4+i]
Next
ADwin
'1..6: 20,40,80,160,320,640
'excitation voltage 6.25 V
module
- 1))
module
- 1))
0)/1000
'excitation [V]
'strain [mV/V]
ADwin-Pro II Software, Handbuch Apr. 2021
'bridge [mV]

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis