Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Tuesday, 30 May 2023

Tutorial: WPF SCADA - Day 5 (finale - Graphic Dashboard)

- 0 komentar

 Assalaamu'alaikum.. 


Teman2 yang saya hormati, tibalah kita pada akhir seri DIY membuat aplikasi SCADA: WPF SCADA. 

Pada video kali ini kita akan belajar bagaimana membuat Dashboard SCADA. Kita akan menggunakan library Livecharts untuk membuat objek Gauge, Bar Chart dan Line Chart. 



AFAIK, ada 2 tipe Graphic pada aplikasi/software SCADA: 

1. Fixed Graphic/Dashboard

2. Dynamic Graphic/Dashboard


Yang tipe 1 itu maksudnya adalah tampilan SCADA nya tidak bisa kita rubah-rubah. Semua objek yang ditampilkan pada halaman Graphic/Dashboard dibuat di-script atau dibuat saat development, dan ketika aplikasi sudah jadi maka tampilan tersebut tidak bisa dirubah lagi, baik Teksnya, Warnanya, atau Posisinya. Biasanya aplikasi SCADA dengan tipe ini dibuat khusus/custom untuk client/user tertentu.


Tipe yang ke-2 itu maksudnya adalah tampilan SCADA nya bisa kita buat sendiri, ada fitur Graphic Designer untuk membuat tampilan dengan cara menambahkan objek-objek yang kita inginkan. Ini yang biasa ada pada software2 SCADA branded, termasuk SCALARE* 


*SCALARE ini walaupun termasuk low-cost SCADA software tapi sudah ada fitur Graphic Designer. Silakan download SCALARE FREE Version disini: hadiscada.com/scalare


Demikian materi yang bisa kami bagi. Kami memohon maaf karena banyak kekurangannya. Semoga ada yang bisa teman2 manfaatkan dari sini. 

We are sorry to all my friends who can not understand Bahasa Indonesia, because from the beginning until this end, I use Bahasa to explain the lessons.   


Terima kasih. Sampai jumpa pada video2 yang lainnya. 

WalhamduliLLAAH.. wassalaam..

[Continue reading...]

Tutorial: WPF SCADA - Day 4 (Modbus Connect, Read & Write)

- 0 komentar

 Asslaamu'alaikum.. 


Pada tutorial kali ini kita akan instal library EasyModbus untuk konek, baca dan tulis ke Modbus TCP Server. Kita akan menggunakan aplikasi ModbusHD sebagai Modbus TCP Server simulator. 



Selamat menyaksikan.

Terima kasih dan Salam.

[Continue reading...]

Friday, 26 May 2023

Tutorial: WPF SCADA - Day 3 (Theme & Icon)

- 0 komentar

 Assalaamu'alaikum..


Jumpa lagi dengan HadiSCADA, mudah-mudahan teman-teman tidak bosan, karena pelajaran kita masih banyak.. hehe..


Melanjutkan pembelajaran kita sebelumnya, pada video kali ini kita akan menambahkan Theme dan Icon pada projek WPF SCADA kita dengan menggunakan library dari MaterialDesign.


Dengan library tersebut kita bisa merubah warna-warna objek dengan mudah. Kita bisa juga menambahkan icon pada beberapa objek yang diperlukan seperti pada objek Button dan Menu. Hal tersebut bisa membuat aplikasi kita menjadi tampak lebih profesional dan menarik.


Silakan disimak dan diikuti tutorialnya, jika ada masalah silakan tulis di komentar atau hubungi kami via WA. Semoga bermanfaat.


Terima kasih dan Salam..

[Continue reading...]

Wednesday, 24 May 2023

Tutorial: WPF SCADA - Day 2 (Menu File Save Open)

- 0 komentar

 Assalaamu'alaikum...


Melanjutkan pembelajaran sebelumnya, kali ini kita akan memodifikasi projek WPF SCADA kita dengan menambahkan Menu, yang berisi menu File diantaranya untuk Save dan Open ke/dari file Text, juga menu Recents untuk menyimpan list file yang sudah dibuka. 


Untuk yang belum melihat materi sebelumnya (Day 1) silakan buka link berikut : 

Part 1 : https://youtu.be/GVif1Z4Eo0o

Part 2 : https://youtu.be/BjtyPY1htB8


Beberapa point yang akan kita pelajari di video kali ini adalah:

1. Membuat Menu, Menu Item dan Separator menu

2. Membuat script untuk setiap menu

3. Menampilkan Save File Dialog dan Open File Dialog

4. Menulis file Text dengan Stream Writer

5. Membaca file Text dengan Stream Reader

6. Menyimpan data pada Properties Settings aplikasi

7. Menghapus dan menambahkan Menu Item dengan script


Silakan disimak, dipelajari dan diikuti. Sebaiknya teman-teman langsung praktek di komputer masing-masing. 




Demikian dari kami. Sampai jumpa di pelajaran berikutnya, insya Allah. 


Salam.

[Continue reading...]

Monday, 22 May 2023

Tutorial: WPF SCADA - Day 1 (Connection & Tag)

- 0 komentar

 Assalaamu'alaikum... 


Pada video kali ini kita akan belajar untuk membuat aplikasi WPF SCADA. 

Durasinya lebih panjang dari biasanya karena kami sertakan penjelasan mengenai beberapa hal terkait WPF untuk pengetahuan bagi yang baru mengenal WPF. 

Kami menggunakan Bahasa Indonesia agar teman-teman bisa lebih mengerti materinya. 


WPF (Windows Presentation Form) mempunyai banyak kelebihan dari Windows Form (WinForm) dalam visualisasi dan interaksi User Interface, sehingga sangat cocok untuk dipakai pada aplikasi SCADA. 


Pada Day 1 ini kita akan membahas Connection dan Tag, bagaimana membuat antarmuka untuk Add, Edit dan Delete Connection juga Tag. 

Kami bagi menjadi 2 bagian (part) agar lebih mudah untuk upload dan downloadnya. 

Silakan disimak Part 1 dan Part 2 nya, disini:


Part 1 : https://youtu.be/GVif1Z4Eo0o



Part 2 : https://youtu.be/BjtyPY1htB8




Semoga bermanfaat.

Salam inovasi !

[Continue reading...]

Tuesday, 16 May 2023

Tutorial: C# OPC UA Client

- 0 komentar

 Halo teman2 inovator!


Pada tutorial kali ini kita akan belajar bagaimana membuat aplikasi sederhana untuk membaca data dari sebuah OPC UA Server, artinya kita akan membuat sebuah aplikasi OPC UA Client. Kita akan menggunakan Visual Studio 2022 dan bahasa C# dengan tipe aplikasi Desktop Windows Form atau bisa disingkat WinForm. 

Aplikasi OPC UA Server yang akan kita gunakan ada 2 macam, yaitu memakai OPCAgentX dari HadiSCADA (silakan lihat di video2 kami sebelumnya jika teman2 belum tahu) dan untuk mensimulasikan fungsi Write kita akan pakai OPC UA Server Simulator dari Integration Objects. 


OPC UA berbeda dengan OPC DA. OPC UA memliki banyak kelebihan. Kekurangan2 pada OPC DA seperti ribetnya konfigurasi DCOM, sudah tidak perlu dipikirkan lagi. Sebenarnya ada beberapa macam koneksi, namun pada tutorial kali ini kita akan menggunakan koneksi Anonymous artinya kita tidak perlu mendefinisikan user authentication apapun, kita hanya perlu parameter IP atau nama komputer dan nama OPC UA Server nya.

Untuk projek kali ini kita akan menggunakan library OPC UA Helper. Kami tidak terlalu mengerti mengenai legalitas library ini, jadi kami tidak bertanggung jawab apabila ada permasalahan terkait legalitas atau apapaun yang menyangkut hukum. Disini kami menunjukan tutorial untuk tujuan pembelajaran saja.


Untuk membaca data dari sebuah OPC Server, ada 2 metode yang bisa dilakukan. Pertama adalah metode Read dan yang kedua adalah metode Subscription. Metode Read butuh triger manual untuk membaca data bisa dari penekanan tombol atau bisa dikombinasikan dengan objek Timer untuk melakukan Read setiap interval waktu tertentu, metode ini disebut juga metode Polling. Sedangkan metode Subscibe atau Subscription dia tidak perlu triger manual, setiap kali ada perubahan value di sisi server akan dikirim pemberitahuan ke sisi client. 

Baik metode Polling ataupun Subscribe masing2 punya kelebihan dan kekurangan masing2. Silakan teman2 coba2 sendiri dan temukan metode yang paling pas untuk sistem yang teman2 punya.


Berikut adalah timeline dari video tutorial kali ini:

00:00 - intro

00:08 - setup OPCAgentX as OPC UA Server

02:17 - create a new project

13:41 - test Connect

16:05 - test Read value

16:26 - Write value

21:12 - Subscribe



Demikian yang bisa kami sajikan kali ini, semoga bermanfaat. Terima kasih dan Salam inovasi!

[Continue reading...]

Wednesday, 5 April 2023

Tutorial : EXCEL to MQTT - VB WinForm

- 0 komentar

 How to publish data from Excel file to MQTT, and write back data from MQTT to Excel file


Part 1 : Create VB project, Read & Write Excel file



Part 2 : MQTT publish and subscribe, Testing



We will use :

+ Miqottt.com as MQTT broker

+ WPS Office spreadsheet to create Excel (xlsx) file

+ Visual Studio 2022

+ MQTT Explorer

[Continue reading...]

Tutorial: MySQL to MQTT - VB.net WinForm

- 0 komentar

 Hello innovators !


This video tutorial shows how to create a VB (Visual Basic) dot Net Windows Form application to read data from MySQL and publish to MQTT. 


These are the steps:

00:00 - intro

00:11 - setup database & login to Miqottt.com

01:34 - create a new VB WinForm project

10:20 - install package: MySQLConnector & M2Mqtt

11:55 - scripting

27:25 - start Runtime & Test


We use Miqottt as a MQTT broker. If you don't know about it, please watch the previous video here: https://youtu.be/G7tTA49Vd7w

Miqottt is FREE. You can register and follow the steps here: miqottt.com

 

Thanks, and have a nice day !

[Continue reading...]

Monday, 27 March 2023

Tutorial: Modbus TCP to MQTT - VB.net WinForm

- 0 komentar

 Hello innovators!



If you have Modbus data and you want to make it accessible from the internet, this video could be a perfect solution for you. 

The goal of this project is to publish Modbus TCP data to MQTT so we can access it from anywhere and any application.

This is a Modbus IOT (internet of things) project. 


Before you start, there are a few things you have to prepare:

1. get access to a MQTT broker. We will use Miqottt.com as a FREE MQTT broker. All you need to do is easily register, login and create a topic.

2. a Modbus device or simulator. We will use ModbusHD. You can get it from this link: https://youtu.be/gmmLis3Vk6Y

3. Visual Studio 2022 as an IDE for creating a project.

4. an application to check MQTT data. We will use MQTT Explorer. 



These are the steps:

00:00 - intro

00:10 - create a new VB WinForm project

04:26 - login to Miqottt.com to get MQTT topic

05:04 - configure Modbus Register address

08:32 - install package: EasyModbus, M2Mqtt

10:07 - Scripting

19:53 - test Modbus with ModbusHD

20:32 - scripting MQTT client

24:41 - test MQTT with MQTT Explorer


Thanks, and have a nice day!

[Continue reading...]

Friday, 24 March 2023

Tutorial: iOS & Android MQTT Client App - Xamarin Forms Visual Studio Mac

- 0 komentar

 Hello innovators!


This video tutorial is for you who want to create Mobile Application as MQTT client for iOS and Android using Xamarin Forms project with Visual Studio on Mac.

From this app, you can Subscribe to get/read data and Publish to set/write data to some MQTT topics on the MQTT broker.


These are the steps:

00:00 - intro

00:11 - login to Miqottt.com and get main Topic

00:50 - test with MQTT Explorer

01:34 - create a new Xamarin Forms project

04:46 - edit MainPage layout

11:01 - install M2Mqtt package

11:49 - scripting

18:30 - start Runtime iOS emulator

21:32 - start Runtime Android emulator



We use Miqottt as a MQTT broker. If you don't know about it, please watch the previous video here: https://youtu.be/G7tTA49Vd7w

Miqottt is FREE. You can register and follow the steps here: miqottt.com


Thanks and have a nice day!

[Continue reading...]

Wednesday, 22 March 2023

Tutorial: C# MQTT Client WinForm

- 0 komentar

 Hello innovators !



This video tutorial is for you who want to create a C# Windows Form application as a MQTT client. 

From this app, you can Subscribe to get/read data and Publish to set/write data to some MQTT topics on the MQTT broker.


These are the steps:

00:00 - intro

00:11 - login to Miqottt.com and get Topic

00:39 - create a new C# WinForm project

04:21 - add M2Mqtt library

04:49 - scripting

13:40 - test Runtime with MQTT Explorer



We use Miqottt as a MQTT broker. If you don't know about it, please watch the previous video here: https://youtu.be/G7tTA49Vd7w

Miqottt is FREE. You can register and follow the steps here: miqottt.com

 

Thanks, and have a nice day !

[Continue reading...]

Sunday, 19 March 2023

Tutorial: Visual Basic .Net MQTT Client WinForm

- 0 komentar

 Hello innovators !



This video tutorial is for you who want to create a VB (Visual Basic) dot Net Windows Form application as a MQTT client. 

From this app, you can Subscribe to get/read data and Publish to set/write data to some MQTT topics on the MQTT broker.


These are the steps:

00:00 - intro

00:11 - login to Miqottt.com and get Topic

00:39 - create a new VB WinForm project

04:43 - add M2Mqtt library

05:15 - scripting

16:48 - test Runtime with MQTT Explorer



We use Miqottt as a MQTT broker. If you don't know about it, please watch the previous video here: https://youtu.be/G7tTA49Vd7w

Miqottt is FREE. You can register and follow the steps here: miqottt.com

 

Thanks, and have a nice day !

[Continue reading...]

Saturday, 11 March 2023

Tutorial: VB.Net S7-PLC Client

- 0 komentar

 This tutorial shows you how to create an application that can read and write to a Siemens S7-PLC.

We use Visual Studio 2022, with Visual Basic and WinForm .Net Framework type project.



These are the steps:

00:00 - Create VB WinForm Project

08:19 - Scripting

16:37 - Test with S7-PLC DB Simulator

 

The S7DBSim application can be downloaded from this link:

https://youtu.be/ZGsIwFcajUE


Thank you, and have a nice day!

[Continue reading...]

Friday, 10 March 2023

Tutorial: C# S7-PLC Client

- 0 komentar

 This tutorial shows you how to create an application that can read and write to a Siemens S7-PLC.

We use Visual Studio 2022, with C# and WinForm .Net Framework type project.




These are the steps:

00:00 - Create C# WinForm Project

07:42 - Scripting

13:57 - Test with S7-PLC DB Simulator

 

The S7DBSim application can be downloaded from this link: 

https://youtu.be/ZGsIwFcajUE

  

Thank you, and have a nice day!

[Continue reading...]

Sunday, 26 February 2023

Tutorial: Modbus Chart - C# WPF

- 0 komentar

Hi innovators! 


This tutorial shows you the easy way to create an application that displays Modbus data on a Chart object.

We use Visual Studio 2022, with C# and WPF .Net Framework type project.



These are the steps:

00:00 - Create a C# WPF Project

00:42 - Install EasyModbus & LiveCharts package

01:28 - Create Chart objects

08:28 - Coding / Scripting

14:37 - Test with Modbus TCP Server Simulator (ModbusHD)

18:30 - Change some parameters

 

The Modbus simulator (ModbusHD) can be downloaded from this link:

https://hadiscada.blogspot.com/2021/05/modbushd-update-version-210.html


Thank you, and have a nice day!

[Continue reading...]

Friday, 24 February 2023

Tutorial: Modbus Gauge - C# WPF

- 0 komentar

 Hi innovators! 


This video tutorial shows you the easy way to create an application that displays Modbus data on a Gauge object.

We use Visual Studio 2022, with C# and WPF .Net Framework type project.


These are the steps:

00:00 - Create a C# WPF Project

01:37 - Install the library of EasyModbus & LiveCharts

02:39 - Create Gauge objects

10:05 - Set Name of Gauge objects

11:07 - Coding / Scripting

15:09 - Test with Modbus TCP Server Simulator (ModbusHD)

 

Thank you, and have a nice day!

[Continue reading...]

Sunday, 19 February 2023

Tutorial: Modbus RTU Master Multi Slave - C# & VB.net

- 0 komentar

 This video tutorial shows you the easy way to create a Modbus RTU/Serial Master application (using C# and VB.net on Visual Studio 2022) and read some Holding Registers from multiple Modbus RTU Slaves. 



The Modbus RTU/Serial Slave devices are simulated by ModbusHD application, you can get the app from this link:

https://hadiscada.blogspot.com/2021/05/modbushd-update-version-210.html

 

and the COM ports are emulated by Virtual Serial Port Emulator (VSPE), you can download from here:

http://www.eterlogic.com/Products.VSPE.html



Thanks, and have a nice day!

[Continue reading...]

Sunday, 12 February 2023

Tutorial Modbus TCP Server C# Desktop App

- 1 komentar

Hi inovators! 

This video shows a simple and easy tutorial for creating a Modbus TCP Server application using C# on Visual Studio 2022.

These are the steps:

+ Create a new WinForm .Net Framework project

+ Install Easymodbus package from NuGet.

+ Add some objects.

+ Write the scripts/coding.

+ Test with Modbus TCP Client (ModbusHD).

 

Download ModbusHD from here: 

https://hadiscada.blogspot.com/2021/05/modbushd-update-version-210.html

 

Thanks, and have a nice day!

[Continue reading...]

Tuesday, 7 February 2023

Tutorial Modbus TCP Client Xamarin Mobile App

- 0 komentar

This video tutorial shows you how to create a Mobus TCP Client app on mobile (Android) using Visual Studio with a Xamarin Forms C# project.

For Modbus TCP Server Simulator, please download ModbusHD application from here: https://drive.google.com/file/d/1qlb29iHVV4s2ykGiPQvSF1xa7I4dhFTe/view


[Continue reading...]

Monday, 26 April 2021

Sharing Sourcecode : Modbus QW to Double - C#

- 0 komentar

Read QW (Quad Word / 4 Register) of Modbus and Convert to Double.

Download the sourcecode here:

[Continue reading...]
 
Copyright © . HadiSCADA - Posts · Comments
Theme Template by BTDesigner · Powered by Blogger