ni.com checkout is currently experiencing issues.

Support teams are actively working on the resolution.

G#

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic terminals must be of same class as owner of VI

I have experienced the following error:

- I create a new class with the G# 's class creator utility (My Comuter -> New -> G#Class).

- create a new method using the G# IDE. With the following settings:

Method template: Standard

Type: Normal Method

Dynamic Dispatch: TRUE

Scope: Public

The created method is broken. The error description is the following:

LabVIEW Object 'class data in': Dynamic terminals must be of same class as owner of VI

LabVIEW Object 'class data out': Dynamic terminals must be of same class as owner of VI

I use LabVIEW 2011 32 bit, Windows 7 Professional 64 bit.

What may be the problem? Can anyone help me?

0 Kudos
Message 1 of 7
(6,360 Views)

Hi,

Seems very strange. Never heard about this before and I sounds like you are trying to do the most basic thing of all, just creating a method.

Just a couple of questions:

1) Which G# version are you using?

2) Have you tried to reinstall G# IDE?

3) Are you working on a local disk?

4) Can you repeat it? This is the same for all class names and method names?

Could you also please upload the class so I can have a look at it? You can also mail it to support@addq.se.

Thanks,

Mattias

0 Kudos
Message 2 of 7
(4,818 Views)

I have tried it on two different PCs and both gave the error.

1.G# Framework version on this PC : 1.4.2 G# version 1.3.6

2. No, I didn#t try to reinstall it, maybe will.

3. yes, local disk.

4. Yes, repeatable. I guess you can also repeat it if you have LV 2011.

I just sent you the code.

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

Hi,

I got the code. You actually found a bug there. You are using LabVIEW native classes and there was a bug when using this template. This bug was actually introduced in version 1.2.5, when fixing another bug. There aren't many users of G# that uses the native class template, I guess that's why we haven't seen it or got a report of it before.

However, it was easy to fix and I attach a bugfixed VI. Please replace the attached VI at the following path (and then restart LabVIEW):

C:\Program Files (x86)\National Instruments\LabVIEW 2011\resource\Framework\Providers\AddQ\G#IDE\support\ScriptingLib

It will be included in the next G# Framework release. Really sorry for this! Thanks for reporting this bug to us.

/Mattias

0 Kudos
Message 4 of 7
(4,818 Views)

Hi Mattias,

Thank you for the real fast answer and solution!

I just tried the fix and it works fine, Thanks again!

0 Kudos
Message 5 of 7
(4,818 Views)

Hi Matthias,

I just have used the G# 1.4.3, and the fix doesn't seem to be in it.

I have the same error message again.

0 Kudos
Message 6 of 7
(4,818 Views)

Hi,

No, it is in version 1.4.4. We've included a few more fixes as well that we been verified. I released this new version and please download from:

http://www.addq.se/gsharp

The page still indicates that current version is 1.4.3, but it is 1.4.4 if you download (click readme link). Our web managers is a bit slow updating the page.

Thanks,

Mattias

0 Kudos
Message 7 of 7
(4,818 Views)