08-09-2011 03:56 AM
Hi All
In initial phase of project where requirement is to test same unit in a parallel mode ( two UUT's side by side) in a fixture , UUT- A gets tested independent of UUT- B , Both UUT's will use separate analog & digital lines of Multifunction DAQ for measurement & control external hardware used for testing units and do not share instruments
Looking for suggestion from members & help with following queries
1. Parallel mode would execute same VI in Test socket 0 & Test socket 1 ; Say "Test +5V" for UUT-A uses analog channel ai0 and UUT-B uses channel ai1 for same test , what is the best way to pass parameters in step settings within sequence to work for two test sockets ( meaning when passing channel info etc ) , one method could be using RunState.Testsocket.Myindex in pre-condition & using same step twice , Is there another better way ?
2. What execution settings works best for VI for parallel mode, meaning select re-entrant or other1 \ other2
3. If someone has tried changing the Top level OI to support two simultaneous displays to work for Test socket 0 & Test socket 1, would appreciate if modified OI can be attached for reference.
Thanks vki
08-09-2011 09:36 AM
1. Create a local variable in the sequence as follows:
Locals.MyChannelArray[0] = "ai0"
Locals.MyChannelArray[1] = "ai1"
Then when you pass the channel parameter pass: Locals.MyChannelArray[RunState.Testsocket.Myindex]
2. If you want the VI to be callable in parallel then you must set it as reentrant. I think we also recommend using other2 for different reasons (perhaps someone else can explain why).
Hope this helps,
-Doug
08-10-2011 03:10 AM
Hi Doug
Thanks for suggestion.
vki