Did you know that you can execute .exe files within BTBasic testplans?
In fact, you can also run batch (.bat) files, too.
There are 2 ways ...
Execute and forget
execute "display.exe", Err; <options>
Err = traps error codes; mostly missing .exe file
<options> = some options can be set like nowindow, window, failwait, nowait, wait
Execute and wait for response
enter "display |",,Err ; Ret$ print Ret$
Err = traps error codes; mostly end-of-file (Err 101007) errors
Ret$ = the output string (max 80char), which you can use in the testplan
You can find detailed information in the user manual.
With the above commands, you can execute an application that checks the database whether the board's serial number is detected prior to executing the rest of the testplan. If you use the "enter" command, you can get a "PASS" or "FAIL" result into the Ret$ and handle this in the testplan.