LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unspecified error as subVI

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

0 Kudos
Message 1 of 7
(3,302 Views)

Hi Uwe,

which error do you get, if you run it as a subvi?

Mike 

0 Kudos
Message 2 of 7
(3,286 Views)

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

 

0 Kudos
Message 3 of 7
(3,281 Views)

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 

0 Kudos
Message 4 of 7
(3,276 Views)

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

0 Kudos
Message 5 of 7
(3,271 Views)

Hi Lul,

          Can you post your code?
 

0 Kudos
Message 6 of 7
(3,231 Views)
It'll take roughly 3 weeks until I'm back in office. Will keep up then...
0 Kudos
Message 7 of 7
(3,222 Views)