08-14-2008 11:39 AM
I need an explanation:
The example 'IviFgen [ARB] - Generate Arb Wfm.vi' runs fine on my XP/SP2 with LV 7.11 and controls an HP33220A.
I copied its code into a specific VI that generates waveform data from files. It than generates an unspecific error when reaching the examples code. I modifies the example bringing its controls onto the connector panel and called it as SubVI. Now the example generates a similar or identic error. When running the example again as toplevel VI it runs fine.
I was unable to programmatically invoke it as toplevel-VI cause the IVI name is converted to a hex number when making it variant and invoke-set controla s variant does not accept this.
Help is really appreciated now!
Greetings from Germany!
--
Uwe
08-15-2008 03:37 AM
Hi Uwe,
which error do you get, if you run it as a subvi?
Mike
08-15-2008 03:50 AM
Mike,
I have modified that code and cannot exactly reproduce the 'unspecified error' when calling the example as subVI. I still have the example code copied into a case of my VI and this generates:
LabVIEW: Unspecified errorv occured
VI "ANSI-AAMI-EC13-Test_Fg aus Testdaten_03.vi" was stopped at IUseDCO 0x10B30 of SubVI "ANSI-AAMI-EC13-Test_Fg aus Testdaten_03.vi"
<OK-Button>
A screenshot (http://forums.ni.com/ni/attachments/ni/140/31562/1/unspecified%20error.png ) was posted in the 'Instrument Control (GPIB, Serial, VISA, IVI)' forum (http://forums.ni.com/ni/board/message?board.id=140&message.id=31564#M31564)
Greetings from Germany!
--
Uwe
08-15-2008 04:13 AM
Hi Uwe,
and the only thing you do, is to connect all controls to the connector pane and use the example as a subvi? How do you stop the loop in the example?
Mike
08-15-2008 04:17 AM
Mike,
initially I wanted to invoke - set control value [variant], but it was sufficient zo open that FP and have the operator klick that <Stop>.
This is just a tool as one cannot set waveforms of 40k elements manually ;-(
Greetings from Germany!
--
Uwe
08-18-2008 08:10 AM
Hi Lul,
Can you post your code?
08-18-2008 10:27 AM