HBM DMP41 Interface Description page 21

Digital precision measuring device
Hide thumbs Also See for DMP41:
Table of Contents

Advertisement

private void ConnectBt_Click(object sender, EventArgs e)
myTCPClient = new TCPClient(this.IPAddressTB.Text, 1234); //
private void PrepareBt_Click(object sender, EventArgs e)
myTCPClient.WriteLine("RAR1234");
myTCPClient.WriteLine("SRB1");//
myTCPClient.WriteLine("CHS1");//
myTCPClient.WriteLine("ASA2,1");//
myTCPClient.WriteLine("ASS2");//
myTCPClient.WriteLine("AFS1");//
myTCPClient.WriteLine("ASF1,6,1");//
myTCPClient.WriteLine("CMR2");//
myTCPClient.WriteLine("ENU2,"KG"");//
myTCPClient.WriteLine("LTB2,0,0,2,500");//
myTCPClient.WriteLine("IAD2,,3,1");//
myTCPClient.WriteLine("COF1");//
private void GetMeasvalsBt_Click(object sender, EventArgs e)
MeasvalTb.Text = myTCPClient.WriteLine("MSV?2")+" Kg";//
private void DisconnectBt_Click(object sender, EventArgs e
myTCPClient.Close()
DMP41
Single measured value acquisition with DMP41
//
Request administrator rights (to
be able to change settings; Default
password="1234")
Command acknowledgement on
Select amplifier 1
Set excitation voltage and measuring range
Transducer signal = Measure
Select Filter 1
Set filter limit frequency
Select scaled signal
Set unit of measurement
Set measured value scaling
Set decimal place and step for scaling
Set measured value output format
Read measured value net and output in
Textbox
You can also program other tasks accordingly following this example.
References:
Tom Archer, Andrew Whitechapel
Inside C#
Objektorientiertes Programmieren mit C# und dem .NET Framework
Microsoft Press
ISBN: 3­86063­669­3
A03474_04_E00_00 HBM: public
Communication via the Ethernet interface / Test program
1
Set up connection with DMP41 (via entered
IP address and default Port 1234)
2
3
4
Program creation
21

Advertisement

Table of Contents
loading

Table of Contents