09-13-2016 10:00 AM
Recently We are developping a software platform using TestStand. There are some issues when developing the init module, here is the detail:
We creat a step which called a Initializing function in CVI created dll. In the dll, we need to init ten more instrments like power, switch, matrix switch , dmm, siganl generator, etc. First, we read the configuration infomation which resides in the .ini file, then use the info to init the instrument(via viOpen()). After that. we get an array of instrument handlers. we return that array back to teststand from the dll, and use it in the subsequent step, like in the clean up step, we call the viClose() to close the instrument.
Howerer, the NI salesman told me it is not best practice to transmit complex data types like array in the teststand, Instead, only the standard data type like Number and string is recommonded. It really confuse me.
So, here is my question:
So, is there some best prcatice for situation above?
Thanks!
09-13-2016 04:15 PM
Is there any official NI document which confirms this NI guy best practice? I'm using LabVIEWIOControl type pretty often and I initialise e.g. PSUs only at the beginning of sequence. Not to mention that LabVIEWIOControl is the least complex data type that I'm using. If this is wrong approach I also would like to know the official NI position in that matter 🙂