VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-Threaded Custom Device

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(6,921 Views)
Solution
Accepted by topic author Ryan_H

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:

 

Understanding the VeriStand Engine

Creating Custom Devices

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
Message 2 of 3
(6,892 Views)

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

0 Kudos
Message 3 of 3
(6,872 Views)