03-31-2014 01:08 PM
I wonder what is the best practice to initilize instruments on test stand.
i have a vi that will ready a INI configuration file and map my instruments and will output a cluster(DMM, Scope, etc..)
so when starting the sequence on pre UUT i will load that ini file and pass it to some local variables.(dmm, scope, function generator etc..).
the question is here. is it better to initialize every instrument on the sequence one by one, or is it better to make a vi and initialize everything on one vi.
or do a call to a sequence where i initialize all step by step?
just some random thoughts but i wonder what is the best practice.
03-31-2014 03:10 PM
I initialize each instrument in a special sequence in TestStand. Seems a little easier to maintain my drivers that way. It is also a little cleaner than doing a state machine or sequence everything with an error cluster in LabVIEW.
Of course, I also have each instrument with its own routine to read the configuration file and initialize the driver/instrument. So I just have to pass the configuration file around inside of TestStand.
04-01-2014 07:10 PM
Hi,
In general I think there's less consensus on "best practices" in TestStand than in LabVIEW.
It is ok to load that ini file and pass it to some local variables.(dmm, scope, function generator etc..).
It is poor form to initialize all the instruments in one VI. By separating them you can debug by stepping through the TestStand sequence, and you generally get better reuse, and fewer big, complex VIs. It's more readable.
It's good to have a sub sequence containing the things above. You could easily move it, for example from PreUUT to MainSequence setup.
cc
04-03-2014 05:25 PM
thank you for your answers..
i end up initializing one by one. is more visual to an operator to know where is failing or if they miss to connect a usb module or something else.
a usefull thing is that i can save those steps and save them on the templates...next program is just drag and drop.
🙂