• Tidak ada hasil yang ditemukan

BAB V KESIMPULAN DAN SARAN

5.2. Saran

Untuk menyempurnakan penelitian ini dan penelitian yang berkaitan dengannya, maka disarankan :

1. Penelitan ini dapat dikembangkan dengan menggunakan program komputasi yang lebih baik, dan lebih canggih sesuai dengan perkembangan program komputasi.

2. Jika alat ini digunakan untuk mengukur cuaca 24 jam, harus dengan

pengawasan yang baik agar dapat mengantisipasi jika suatu saat mati lampu atau arus tidak terhubung.

DAFTAR PUSTAKA

Budianto Bregas dan C.Setiawan Arif. 2003. Komputer Untuk Pengamatan Cuaca dan Pengembangannya. Pelatihan Dosen. Departemen Geofisika dan Meteorologi IPB. Bogor.

Budianto Bregas. 2003. Instrumentasi Meteorologi Elektronik. Pelatihan Dosen. Departemen Geofisika dan Meteorologi IPB. Bogor.

Budianto Bregas. 2003. Integrasi Instrumentasi dengan Pemodelan Komputer. Pelatihan Dosen. Departemen Geofisika dan Meteorologi IPB. Bogor. Djunaidi, M,. Nugroho, M. T., Anton, Johan. 2006. Simulasi Group Technologi

Sistem Untuk Meminimalkan Biaya Material Handing dengan Metode Heuristic, Jurnal Ilmiah. Teknik Industri. Universitas Muhammadiyah Surakarta. Vol 4. No.3.

Imantho, H. 2004. Materi Diklat dalam Pelatihan Dosen Tentang Teknologi Informasi Untuk Manajemen Sumber Daya Alam. Bogor, 9-21 Agustus 2004.

Ishadamy.1994. Otomatisasi Sistem Instrumentasi Meteorologi. Skripsi. Jurusan Geofisika dan Meteorologi FMIPA IPB, Bogor.

Kartasapoetra, A.G. 2004. Klimatologi : Pengaruh Iklim terhadap Tanah dan Tanaman. Edisi Revisi. Bumi Aksara, Jakarta.

Manan, ME, Nursiwan, MA, dan Sudarsono. 1986. Alat Pengukur Cuaca di Stasiun Klimatologi. Institut Pertanian Bogor. Bogor.

Munir, Rinaldi. 1999. Algoritma dan Pemograman dalam Bahasa Pascal dan C. Penerbit Informatika. Bandung.

Sutamto dan Alifi Maria Ulfah, 2007. Modul Akurasi Prakiraa Musim. Badan Meteorologi dan Geofisika, Jakarta.

Zarlis, M., Sembiring, R.W., Siregar, L., Firdaus, M, 2005. Pengantar Teknologi Informasi. USU. Medan.

_____, 2010a. Mathematica Komputer. http://www.math.ipb.ac.id/e_Learning.. Diakses pada tanggal 20 February 2010 jam 23.44 WIB.

_____, 2010b. Ilmu Komputer. http://www.id.wikipedia.org/wiki/ilmu_komputer. Diakses pada tanggal 21 February 2010 jam 6.54 WIB.

_____, 2010c. Mathematica Internet. http://www.internetmathematics.org/. Diakses pada tanggal 11 Maret 2010 jam 9.12 WIB.

_____, 2010d. Mathematica Komputer. http://www.ams.org/mcom/aboutmcom. Diakses pada tanggal 11 Maret 2010 jam 9.13 WIB.

_____, 2010e. Elektronika. www.elektroindonesia.com/elektro/elek33.html. Diakses pada tanggal 12 Desember 2009 jam 21.15 WIB

_____, 2010f. Komputer Pemula. http://www.komputerpemula.blogspot.com. Diakses pada tanggal 21 February 2009 jam 9.25 WIB.

Lampiran A. Program Visualisasi Cuaca Otomatis

Form1 - 1

'Fungsi Explicit menggunakan lybrary yang telah tersedia Option Explicit

Private Declare Function joyGetDevCaps Lib "winmm.dll" Alias "joyGetDevCapsA" (ByVal id As Long, By

Val uSize As Long) As Long

Private Declare Function joyGetPos Lib "winmm.dll" (ByVal uJoyID As Long, pji As Sinyal) As Long

'Inisialiasi Sinyal Masukan Private Type Sinyal

wXpos As Long wYpos As Long wZpos As Long indikator As Long End Type

'Pengenalan Antarmuka USB Const antarmuka As Long = &H0 'Bagian pengakhir Program Dim WaktuBerakhir As Boolean 'pengaman

Dim toggle1, toggle2, toggle3, toggle4, toggle5 'universal

Dim FrekuensiAnalog 'unsur cuaca

Dim suhu, suhuMin, suhuMax Dim RH, RHMin, RHMax

Dim Rad Dim Kec Dim CH 'Counter Dim Csuhu Dim CRH Dim Crad

Dim CKec Dim CCH 'grafik Dim grafsuhu(50) Dim grafRH(50) Dim grafRad(50) Dim grafKec(50) Dim grafCH(50) Dim S, pos1, pos2

Dim GT, GRH, GRad, GKec, GCH 'Pengatur Tanggal

Dim tanggal As Date Dim anibaner As Integer

'inti proses pengembalilan dan pengolahan data Private Sub Proses()

'menjalankan program inti On Error Resume Next

Dim sinyalmasukan As Sinyal Me.Show

Do

DoEvents

'berhubungan dengan perangkat dengan antar muka usb joyGetPos antarmuka, sinyalmasukan

'Pemmbacaan data 'suhu udara

If sinyalmasukan.indikator And 4 Then Shapea(0).Visible = True

Else

Shapea(0).Visible = False End If

If Shapea(0).Visible = True And toggle2 = 0 Then Form1 - 2

Csuhu = FrekuensiAnalog

FrekuensiAnalog = 0 toggle2 = 1

End If

If Shapea(0).Visible = False Then toggle2 = 0

End If

'Kelembaban Udara (RH)

If sinyalmasukan.indikator And 1 Then Shapea(1).Visible = True

Else

Shapea(1).Visible = False End If

If Shapea(1).Visible = True And toggle3 = 0 Then CRH = FrekuensiAnalog RH = ((2 ^ 14) / CRH) / 10 txtRh.Text = Format(RH, "##.#") Text1.Text = FrekuensiAnalog FrekuensiAnalog = 0 toggle3 = 1 End If

If Shapea(1).Visible = False Then toggle3 = 0

End If

'Radiasi Matahari

If sinyalmasukan.indikator And 2 Then Shapea(2).Visible = True

Else

Shapea(2).Visible = False End If

If Shapea(2).Visible = True And toggle4 = 0 Then Crad = FrekuensiAnalog Rad = ((2 ^ 14) / Crad) / 10 TxtraD.Text = Format(Rad, "##.#") Text1.Text = FrekuensiAnalog FrekuensiAnalog = 0 toggle4 = 1 End If

If Shapea(2).Visible = False Then toggle4 = 0

End If

'Keceptana Angin

If sinyalmasukan.indikator And 8 Then Shapea(3).Visible = True

Else

Shapea(3).Visible = False End If

If Shapea(3).Visible = True And toggle1 = 0 Then Kec = Kec + 1

txtkec.Text = Kec toggle1 = 1

End If

If Shapea(3).Visible = False Then toggle1 = 0

End If

'Curah Hujan

If sinyalmasukan.indikator And 16 Then Shapea(4).Visible = True

Else

Shapea(4).Visible = False End If

If Shapea(4).Visible = True And toggle5 = 0 Then CH = CH + 1

txtCh.Text = CH toggle5 = 1 End If Form1 - 3

If Shapea(4).Visible = False Then toggle5 = 0

End If

'Bagian Akhir Inti Program DoEvents

Loop Until WaktuBerakhir Quit:

End Sub

Private Sub Command1_Click() 'Grafik Suhu Udara

On Error Resume Next

GT = (100 / 30) * Val(Text1.Text) pict1.Cls grafsuhu(50) = GT - 33 For S = 2 To 48 grafsuhu(S) = grafsuhu(S + 2) pos1 = grafsuhu(S - 2) pos2 = grafsuhu(S)

pict1.Line ((S - 2) * 2, pos1)-((S) * 2, pos2), &HFF0000 Next S

'Grafik Kelembaban Udara On Error Resume Next

GRH = (100 / 60) * Val(Text2.Text) grafRH(50) = GRH - 66 'Val(Text2.Text) 'GT ' - 33 For S = 2 To 48 grafRH(S) = grafRH(S + 2) pos1 = grafRH(S - 2) pos2 = grafRH(S)

pict1.Line ((S - 2) * 2, pos1)-((S) * 2, pos2), &HFF& Next S

'Grafik Radiasi Matahari On Error Resume Next Picture1.Cls grafRad(50) = Val(Text3.Text) / 4 For S = 2 To 48 grafRad(S) = grafRad(S + 2) pos1 = grafRad(S - 2) pos2 = grafRad(S)

Picture1.Line ((S - 2) * 2, pos1)-((S) * 2, pos2), &HFF& Next S

'Grafik Curah Hujan Picture2.Cls

For S = 2 To 48 grafCH(S) = grafCH(S + 2) pos1 = grafCH(S - 2) pos2 = grafCH(S) Picture2.Line (((S * 2) - 1.5), 0)-((S * 2) + 1.5, grafCH(S)), &H808000, BF 'picch.Line (((s * 2) - 1.5), 0)-((s * 2) + 1.5, &HFFFF&, BF Next S

'Grafik Kecepatan Angin End Sub

Private Sub Form_Load()

'Menampilkan Tanggal dan jam terkini Label5.Caption = Format(Now, "hh:mm:ss") Label6.Caption = Format(Now, "dd-MM-yyyy") Label7.Caption = Format(Now, "dddd")

Proses End Sub

Private Sub Timer1_Timer()

FrekuensiAnalog = FrekuensiAnalog + 1 'Csuhu = Csuhu + 1 Form1 - 4 'CRH = CRH + 1 'Crad = Crad + 1 anibaner = anibaner + 1

If anibaner = 2 Then lblhead.ForeColor = vbRed If anibaner = 4 Then lblhead.ForeColor = &H80FF80 If anibaner = 6 Then lblhead.ForeColor = &HFF8080 If anibaner = 8 Then lblhead.ForeColor = &H80FF80 If anibaner = 8 Then anibaner = 0

Label5.Caption = Format(Now, "hh:mm:ss") Label6.Caption = Format(Now, "dd-MM-yyyy") Label7.Caption = Format(Now, "dddd")

End Sub

Private Sub Form_Unload(Cancel As Integer) WaktuBerakhir = True

Dokumen terkait