ni / niveristand-communications-bus-template

Template custom device for using communications buses in VeriStand
http://www.ni.com
MIT License
0 stars 3 forks source link

Add Unflatten Shared Resources to template #109

Closed dbendele closed 3 years ago

dbendele commented 3 years ago

Describe the bug When developing a new custom device from the template, the shared resources object is constructed and flattened in Source\Custom Device\System Explorer\ActionVIOnCompile.vi image

However, the shared resources are not unflattened in Source\Custom Device Support\Engine\Custom Device\Unflatten Compiled Data.vi run in Initialize case of RT Driver VI.vi image

Users of the template will have to place this code in the Unflatten Compiled Data VI before leveraging shared resources.

To Reproduce Steps to reproduce the behavior:

  1. Go to Source\Custom Device Support\Engine\Custom Device\Unflatten Compiled Data.vi run in Initialize case of RT Driver VI.vi
  2. Note that shared resources are not unflattened.

Expected behavior If template includes code to flatten shared resources on host, users expect template to include code to unflatten shared resources on the RT target.

Screenshots

Desktop (please complete the following information):

Additional context Unflatten was implemented in ARINC 429 custom device: image