Is there a way to know that?.
Identify which one is reading by the serial number. I need it to know where is the tag in the working process.
My code is below and it's wrote in c#
Code: Select all
public partial class Form1 : Form
{
Manager manager;
RFID rfid1, rfid2;
string cad = "";
bool cachado = false;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
try
{
rfid1 = new RFID();
rfid1.Tag += rfid_Tag;
rfid1.TagLost += rfid_TagLost;
rfid2 = new RFID();
rfid2.Tag += rfid_Tag;
rfid2.TagLost += rfid_TagLost;
//428566 this is the serial number of my readers
//428706
rfid1.Open();
rfid2.Open();
}
catch (PhidgetException ex)
{
MessageBox.Show(ex.Message);
}
}
void rfid_TagLost(object sender, RFIDTagLostEventArgs e)
{
label1.Text = "";
}
void rfid_Tag(object sender, RFIDTagEventArgs e)
{
cad = e.Tag;
label1.Text = e.Tag;
}
}