Pc

  • Uploaded by: Justin Cook
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Pc as PDF for free.

More details

  • Words: 713
  • Pages: 11
                 This is Nithin. Iam working in ISKRA, a german based energy meter Manuf. Company, operating in Trichy. First of all thank you very much for your kind response. Here by I undergone a project for the tampering condition for the electronic energy meters. We already having a test bench with its required hardwares. We also having the software which can control the test bench wrt. that hardwares. But it is in windows 2000 versions. It will not support the windows xp and server 2003 OS.   Mr. prem kumar please guide me in this project. I also given you the 'C' coding to operate the relay. You please go through the coding that weather you can make the same coding in VB.net with C#. please convert the coding into VB.net with C#. bcoz, after making the coding in VB.net with C# I will test it with the above hardware. Then there are lot and lots of special hardwares which can connect with the PC. I need a start of a coding in VB.net from ur side. I will be very great ful to you if u do so.. I expecting +ve reply from ur side. If u have any doubts in the above hardware pls mail me. If possible we can meet one day if u r free.   I already having a 'C' based voltage control software. This is as connected to the parallel port of the PC to the hardware. In practical application the C based software cannot be used. They need windows based software which can control the voltage and current. So I preferred vb.net with C# I here by sending you the software coding in C and also the hardware diagram for your reference.    

    This is the basic circuit which can get the signal from the system as input to the circuit. If the executed coding can drive the above relays in the circuit then it is OK for me for the further developments. Note that the above mentioned circuit is not the correct circuit which is using in that test bench. This is the test circuit which can drive the relay from the PC output.    

   Pls download the circuit diagram for the hardwares.         #include<stdio.h>  #include<conio.h> #include<math.h>  void main()  {  void tone(void);  int p=0x0378; char ex[23]={"Created by Nithin and team"};  int j; char ex1[34]={"For Further Details & Improvements"};  int k;  char ex2[40]={"Contact:[email protected]"};  int l;  char ex3[32]={"programming in C"};  int m;  int u[10]; int i; static a,b,c,d,e,f,g,h;  char no; clrscr();

 textcolor(15); gotoxy(20,6);  cprintf("COMPUTERISED ELECTRICAL CONTROL"); textcolor(11); gotoxy(20,7);  cprintf("-----------------------------------------"); textcolor(11); gotoxy(10,10);  cprintf("EQUIPMENT NO: 1 2 3 4 5 6 7 8");  textcolor(11); gotoxy(10,12); cprintf("STATUS: %d %d %d %d %d %d %d %d",a,b,c,d,e,f,g,h); textcolor(10); gotoxy(9,16); cprintf("FOR 'ON' AND 'OFF' AN EQUIPMENT PRESS CORRESPONDING EQUIP.NO."); textcolor(11); gotoxy(28,18); cprintf("STATUS 0=OFF STATUS 1=ON");  textcolor(12); gotoxy(32,20);  cprintf("FOR EXIT PRESS 'E'\n"); no=getch();  switch(no) { case '1':  a=!a; tone();  outportb(p,1); delay(500);

 outportb(p,0);  break; case '2': b=!b;  tone();  outportb(p,2);  delay(500); outportb(p,0);  break; case '3':  c=!c; tone(); outportb(p,4);  delay(500);  outportb(p,0); break; case '4': d=!d; tone(); outportb(p,8); delay(500);  outportb(p,0);  break; case '5':  e=!e;  tone(); outportb(p,16);

 delay(500); outportb(p,0);  break; case '6':  f=!f;  tone(); outportb(p,32);  delay(500);  outportb(p,0); break; case '7': g=!g;  tone();  outportb(p,64); delay(500);  outportb(p,0);  break; case '8': h=!h; tone(); outportb(p,128);  delay(500);  outportb(p,0);  break;  case 'e': if((a|b|c|d|e|f|g|h)==1)

{  clrscr(); textcolor(10); gotoxy(20,12); cprintf("PLEASE SHUT DOWN ALL THE ePQUIMENT"); sound(200); delay(500); nosound(); delay(3000);  break;  } else {  clrscr();  for(j=0;j<23;j++);  {  textcolor(10); gotoxy(20+j,12); cprintf("%c",ex[j]);  sound(30+j); delay(30);  nosound(); }  for(m=0;m<23;m++)  { textcolor(10);

gotoxy(20+m,13);  cprintf("%c",ex3[m]);  sound(1800+j); delay(30);  nosound();  }  for(k=0;k<34;k++); {  textcolor(10); gotoxy(20+k,14);  cprintf("%c",ex1[k]);  sound(2000+k);  delay(30);  nosound(); } for(l=0;l<40;l++); { textcolor(10); gotoxy(20+l,15); cprintf("%c",ex2[l]);  sound(2500+l);  delay(30); nosound(); } cprintf("\n\n\n\nPRESS ANY KEY");  getch();

outport(p,0); exit(0); } case'E': if((a|b|c|d|e|f|g|h)==1)  { clrscr(); textcolor(10); gotoxy(20,12);  cprintf("PLEASE SHUT DOWN ALL THE ePQUIMENT"); sound(200); delay(500); nosound();  delay(3000);  break;  } else { clrscr(); for(j=0;j<23;j++); {  textcolor(10); gotoxy(20+j,12); cprintf("%c",ex[j]);  sound(2500+j);  delay(30);

 nosound(); } for(m=0;m<23;m++) {  textcolor(10); gotoxy(20+m,13);  cprintf("%c",ex3[m]); sound(3500+j);  delay(30);  nosound(); } for(k=0;k<34;k++);  {  textcolor(10); gotoxy(20+k,14);  cprintf("%c",ex1[k]); sound(3000+k); delay(30);  nosound(); } for(l=0;l<40;l++); { textcolor(10); gotoxy(20+l,15); cprintf("%c",ex2[l]); sound(3500+l); delay(30); nosound();

  }  printf("\n\n\n\nPRESS ANY KEY"); getch(); outport(p,0); exit(0); } default: clrscr();  sound(500); delay(1000); nosound();  textcolor(11); gotoxy(30,12);  cprintf("INVALID KEY PRESSED"); textcolor(11); gotoxy(33,14); cprintf("WAIT 2 SECONDS"); delay(3000); break; } main();  }  void tone(void)  { sound(1000);

delay(100);  nosound();  }   Thanks and regards, Nithin Ph: 9965239476 email: [email protected]

Related Documents

Pc
August 2019 71
Pc
June 2020 41
Pc
June 2020 10
Pc
May 2020 12
Pc
December 2019 61
Pc
June 2020 30

More Documents from ""