08-14-2008 10:16 AM
Hi,
Another problem with LV 7.11:
I have a 'VI caller' that opens a VI by name or Ref, sets its controls using 'Invoke Method - Set Control Value [Variant], runs the VI and gets all display results. Worked fine up to now.
Today I ran into a problem when I was calling an IVI-based functional generator like NIs example 'IviFgen [ARB] - Generate Arb Wfm.vi'. This has a control named 'FG Device Handle' which is of the type IVI-Class.IviFGen.hp33120a and has the logical name 'FGen'. When I convert this value 'FGen' into Variant, it is represented as a numeric value, e.g. 0x05568858. If I use the string 'FGen', it is converted to '"FGen"'. Both values are NOT ACCEPTED by Set Control Value [Variant] when applied to the apropriate control of the 'IviFgen [ARB] - Generate Arb Wfm.vi'.
What can I do?
Greetings from Germany!
--
Uwe
08-14-2008 11:29 AM
an addition:
WHY should I do this?
Running that example VI as toplevel does well.
Running it as subVI throws an 'unspecific error' and stops execution.
I was trying to run it as independend toplevel VI.
08-20-2008 06:20 AM
Hello!
I tried to use the VI as SubVI and it worked without any exception.
To use it as top level VI called dynamically, you can simply replace the IVI Logical Name Control with a normal string control where you write the logical name.
IVIFGen initialize.vi accept also a String for the logical name.
So you can use the Set Control Value (Variant) to transfer the string to the control.
Best regards
Ken
08-22-2008 09:58 AM