Thanks Steve.
At the moment i have this code for the interupt, it works as long as i send "Time" as the qualifier.
So in VB it sends:
Code:
MSComm1.Output = "Time" & Format(Hours, "00") & Format(Minutes, "00") & Format(Seconds, "00")
Where the PIC command is:
Code:
HSERIN [Wait("Time"), DEC2 hours, DEC2 Minutes, DEC2 Seconds]
Thing is, I don't want it to wait. I want it to look at the serial command comming in and check for the qualifier. So if the qualifier is TIME, it then takes the DEC2 hours, DEC2 Minutes, DEC2 Seconds strings.
However, if the qualifier is FLAG, then it performs a different command, such as:
Code:
HSERIN [flag1, flag2, flag3]
If neither of the qualifiers are met (or any depending how many i need), then it resumes and waits for the next serial input.
Does this make sense, i'm starting to confuse myself !
Cheers,
Steve
Bookmarks