07-12-2016 12:12 PM
Working on a test bench for doing some device characterization. There are 16 devices that are being tested at the same time with 15 front panel items for each. The front panel items are a 50/50 mix of controls for configuring VISA resource, and indicators with runtime data and test stats; all this totalling 240 items that need to be dealt with on the block diagram. I want to stay away from arrays for the front ppanel items as it creates UI organizational issues. Can someone suggest some methiods of handling this large number of items cleanly in the VI block diagram?
07-12-2016 12:23 PM
07-12-2016 12:42 PM
I would use subpanels and load up VIs into those panels that run in parallel. Then you have a VI dedicated to each device. If they are all the same, you could actually have 1 VI that is reentrant and just load up the different clones into the respective subpanels. This will greatly reduce the number of items you have to maintain on a single VI.
07-12-2016 01:01 PM
07-12-2016 01:20 PM
Im liking the idea of multiple concurrent VI's as well. It definately simplifies many things in the program flow! I will have to do some reading up on how to make this all work.
one concern that i have is does this create resource contention problems over the GPIB interface its talking to since its different channels on the same device that will be accessed?
07-12-2016 02:24 PM
07-12-2016 02:25 PM
If you have subVIs to do the actual communications, then those will act as a blocking mechanism to keep each routine from stomping over the other. Another option would be to have another loop that just reads the data and then use User Events or Queues to send the data to each/all of the individual unit VIs.