Hi Jeff,
It may be worthwhile to implement a multithreaded application. You can create a thread to handle the UI, while the other thread handles the serial communication. The thread pool is a simple way to easily create multiple threads. This feature allows the user to create a pool of threads that can be assigned to different tasks by associating different threads from the pool with different functions. Also, an asynchronous timer is a good way to execute a particular function at regular intervals while doing other tasks at the same time. The asynchronous timer functions are in a function panel (asynctmr.fp) that must be loaded with the project. The asynchronous timer uses the Windows multimedia timer which has a minimum interval of about 10ms (depending on you
r system) and handles all the asynchronous calls with one thread. For this reason, it is advised to only use one asynchronous timer. If more are needed, use the thread pool. Hope this helps!
Jeremy L.
National Instruments
Jeremy L.
National Instruments