Subset of the Serial error string

Hello world

I have a simple program. I used arduino to transfer a string to labview.

And in Labview, I want to chain of subset. But she works only first string and the strings later be not subset.

Can you help me find my error?

Thanks for reading

Here is my code and my mistake

Here is my video: https://www.youtube.com/watch?v=Gm5nOrZ3iyo

Here's my arduino code:

#include
#include
int i = 0;
LiquidCrystal_I2C lcd (0 x 27, 20, 4);  set address 0 x 20 for a 2 line display and 16 characters LCD

void setup()
{
LCD.init ();    initialize the LCD
Serial.begin(9600) (9600);
attachInterrupt(0,irt1,CHANGE);
attachInterrupt(1,irt2,FALLING);
Print a message on the LCD screen.
LCD.backlight ();
LCD. Print ("Hello, world!");
Serial.Print ("Hello, everyone");
Delay (1000);
LCD. Clear();
}

void loop()
{

While (Serial.available ())
{
tank r = (char) Serial.read ();
if(r=='t')
{
lcd.setCursor (0,0);
LCD. Print ("you're a robot");
Serial.Print ("you robot\n");
}
ElseIf (r = ' a')
{
lcd.setCursor (0,0);
LCD. Print ("you're human");
Serial.Print ("you human\n");
}
}
}

Sub irt2()
{
Delay (1500);
i ++ ;
If (i %2)
{Serial.print ("ngaysinh010071992\n") ;}
on the other
{Serial.print ("ngaysinh123455\n") ;}
}

I advanced and did a cleansing of your diagram.  See if that makes sense.

Tags: NI Hardware

Similar Questions

Maybe you are looking for

  • Solution: Save all tabs and recharge anywhere (from thread archived)

    Hello My problem "was that I was working on Firefox at home and in my office." Since computers are fast these days, I'm used to open many tabs in firefox. And I always wanted to open the same tabs at my office that I opened my home and vice versa. I

  • Portege Z10t - A PT132A goes to sleep after 60 seconds of noninteraction

    Portege Z10t-A PT132A-00F00T My Tablet continues to go to sleep after about 60 seconds of noninteraction.I can watch youtube, read, listen to music... etc and after about 60 seconds of me not to touch the display turns on outside and all the audio an

  • Satellite T110 - Defective Bluetooth after waking from sleep

    SATELLITE T110 Bluetooth will fail after awakening from sleep.The icon will be flick between white and green as he seeks my device (phone). I ve reduced the problem to the laptop, because if I try to pair again phone to the laptop it fails. It's almo

  • Will the iCloud drive synchronize my files?

    If I spend synchronization of sugar to iCloud by car will be my files always be synchronized between my Macbook Pro and Macbook Air.  When he sets out first it dupliquera all my files or it will recognize that the files on my Macbook Pro are identica

  • Cannot get SMTP to work, please help.

    Hello I recently bought the camera WVC80N. The main reason I bought it was to receive alerts of request sent to me. I have tried all the different combinations for a week and still no TEST EMAIL failed. Here are my specs: ISP: Verizon FiOS I have a s