08-24-2010 02:17 PM
Is it possible to create a multi-threaded custom device? I want to create a client-server architecture much like the example http://zone.ni.com/devzone/cda/tut/p/id/3098 in a custom device. The only difference would be that I would like to perform serial read/write in the high priority task.
Thanks for the help!
-Ryan
Solved! Go to Solution.
08-25-2010 04:21 PM
Hi Ryan,
This should be possible if you use an asynchronous custom device. The loops will then be run in their own thread and not affect the execution of the Primary Control Loop. Just make sure there is still enough sleep time in your high priority loop. You should note, however, that putting serial communication in the high priority loop will negatively affect your determinism.
For more information on the Veristand Engine and types of Custom Devices you can choose from, please reference the following:
08-26-2010 10:52 AM
Hi Will,
Thanks for the response. It is great news that a asynchronous custom device will support multi-threading! Also, thanks for the caution that serial communication will affect my system's determinism.
Thanks for the help!
-Ryan