11-01-2011 01:48 PM
I'm currently using a VI to read in a two-dimensional parameter list from a .csv file, where the parameters are in the rows, and the columns represent size. In the VI, I index into the array based on the "Size" passed from VBAI, and return the corresponding parameter values. While this works, it's a bit of a bother whenever I have to add a parameter, i.e., I have to edit the .vi file to add the new paramter, and then re-configure each instance of the VI call in the VBAI.
So I'm wondering: Is there any way to do and "ad hoc" query of a parameter list from an external document or database, e.g., Select "ProductLength" from "ParameterDB" where ( FoV = "Camera2" and Size = 4), or perhaps executing an Excel VLOOKUP statement to pull the value out of a spreadsheet?
Other suggestions are also welcome....the key issue is that the parameter list is maintained external to VBAI and I'd like to be able to add new parameters in VBAI without having to edit the VI each time.
Thanks,
Eric
11-01-2011 02:41 PM
Not sure I fully understand your needs, but it may be helpful to look into the Read/Write INI step in Vision Builder AI (located on the last tab towards the bottom). This step allows you to read/write all the variables to an INI. This might make it easy for you to update the INI, and then VBAI can read this INI and set variables to values saved in the INI and then you could use the variable value in the Run LabVIEW VI step as your parameter instead of having it be a constant.
Hope that helps,
Brad
11-01-2011 03:50 PM
Brad,
Thanks, I'll look at that option.
Eric