RF and EFID interference

Hello guys,

this is my first thread, so if I do anything wrong, please forgive me. I have a problem using both RFID reader and RF transmitter at the same time. I have written a short sketch, which makes one short “beep” whet I push a button, and another one, when RFID reads my transponder successfully. The sketch works perfect… until I comment out vw_setup(1000);. If I do this, the RFID stops working. I guess that the problem may be caused with interrupts generated by virtual wire library- how can I make this work? I will be really grateful for help.

#include <SPI.h>
#include <RFID.h>
#include <VirtualWire.h>
 
#define SS_PIN 7 
#define RST_PIN 6
 
RFID rfid(SS_PIN, RST_PIN);
 
char *controller;
int serNum0;
int serNum1;
int serNum2;
int serNum3;
int serNum4;
int counter = 0;
 
boolean ALARM = false;
 
int X0 = 123;
int X1 = 123;
int X2 = 123;
int X3 = 123;
int X4 = 123;
 
void setup()
{
  pinMode(3, INPUT); //button
  pinMode(2, OUTPUT); //buzzer
  SPI.begin();
  rfid.init();
  vw_set_ptt_inverted(true);
  vw_set_tx_pin(8);
  vw_setup(1000);// speed of data transfer Kbps
 
}
 
 
void loop()
{
  if (digitalRead(3) == LOW)
  {
    ALARM = true;
    digitalWrite(2, HIGH);
    delay(50);
    digitalWrite(2, LOW);
    while (counter < 10)
    {
      if (rfid.isCard()) {
        if (rfid.readCardSerial()) {
          if (
            rfid.serNum[0] == X0
            && rfid.serNum[1] == X1
            && rfid.serNum[2] == X2
            && rfid.serNum[3] == X3
            && rfid.serNum[4] == X4
          )
          {
            ALARM = false;
            digitalWrite(2, HIGH);
            delay(50);
            digitalWrite(2, LOW);
          }
        }
      }
      delay(300);
      counter++;
    }
  }
 
  if (ALARM == true)
  {
    ALARM_ON();
  }
}
 
 
void ALARM_ON()
{
  digitalWrite(2, HIGH);
  delay(1000);
  digitalWrite(2, LOW);
  delay(500);
  digitalWrite(2, HIGH);
  delay(1000);
  digitalWrite(2, LOW);
  delay(500);
}