05-09-2010 08:57 PM
05-09-2010 10:29 PM
05-09-2010 11:18 PM - edited 05-09-2010 11:27 PM
Sure.
I am interfacing to an external scripting language which can be embedded in c which i would like to use in labview. It is called ECL. I have already been able to pass in arguments using the call interface node. I have implemented the c function that the call interface node calls to take a variable argument list.
So, there are 3 things this c function takes:
the name of the scripting function
the number of args passed
a variable amount of arguments which is represented by a va_list in c
It then calls the scripting function with those 3 things.
So, i can now call the function with a variable argument list, but this is not enough. I would like to be able to create a vi, well actually an xnode, which automates this process. I simply want to specify the name of the function, and passs in a variable amount of arguments. Then the xnode should be able to automatically fill in the number of arguments, and perhaps the type of each argument for type checking on the ECL side of things. It will automatically know where the dll is, since i will be including the dll in my library.
The problem is that i need to be able to expand the vi like the array index can do in order to implement this.
Edit: oh, and i already know how to resize the input/outputs in the xnode code, but i don't know how you can allow the user to resize the vi with the mouse to change the inputs/outputs like in the index array vi.
05-09-2010 11:18 PM - edited 05-09-2010 11:19 PM
Do you mean you want to make it so that you can resize your vi icon to change the number of inputs/outputs?
edit: I see you beat me to answering it.