Changed main.c to scancmdr.c.  Working version for integration with labview.