From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

'Ungültiger CMDIDType des DIAdem-Bezeichners (Typ="MeineVar_")' - what does it mean?

I added a new User-Var in an existing project in the *.vas-file.
Although this var is highlighting by DIAdem-Editor, I get the error-message shown above, by using the var read or write) in my script.
 
I tried to seperate only my new var in a new user-var-file - it works fine.
I worte a vb-script only activating the user-var with 'uservarcompile' - no problems
I activate the vas manuelly - no error-message.
 
I renamed the var in the script and the vas - the same error-message.
 
I don't know, what's the problem...
 
the script is looking for a *.vab file.
if it exists and it's newer than the vas-file, than use that, else use the vas-file.
I copied these lines in a new script - no error.
 
I deleted my new var in the vas and the script, but now it comes the same error with another var, which worked well earlier.
 
I checked that the vars in the vas have the correct syntax.
I am using diadem 8.1, win xp prof with adm
 
 
greets Andreas

Volkswagen AG
Wolfsburg - Germany
0 Kudos
Message 1 of 9
(4,096 Views)

Hi Andreas,

It’s difficult to find out what exactly happens with your script and VAS file. Concerning VAS variables there is a limitation of the amount of declarable variables, which is around 1000. Do you use more than 1000 variables?

If not please double-click your variable in the script editor and compare the content of the tool-tip with the declaration in the VAS file. Are both information’s identical?

To analyse this problem more in detail, please provide us with the VAS file and a small script so that we can reproduce the behaviour.

Greetings
Walter


0 Kudos
Message 2 of 9
(4,066 Views)

Hello Walter,

thx for your reply. Yes, indeed - it's difficult to locate my problem, cause there's nothing, what I haven't done many times before...

My vas-file contains less than 100 variables.

the tooltip shows the same info.

I would already have provide the files, but I can't border the problem.

I tried to seperate the problem from the whole project, but I get no errors from the 'smal' version... I can' t reproduce the problem myself, besides only in the project.

I hoped, that I get input, where I could look to come closer where exactly the prob is.

Probably there is something with the vab-file, because the filesize in the smal and the whole version is different.

I'll try to get more detail or to reproduce and than post again...

 

 

 

greets Andreas

Volkswagen AG
Wolfsburg - Germany
0 Kudos
Message 3 of 9
(4,067 Views)

Hello Andreas!

As I know is the reason for the message that DIAdem got mixed up with the script variable id and the internal variable id.

I can reproduce the behaviour with these files:

VBS
Option Explicit

Call UserVarCompile("C:\MyVar.vas")
MsgBox MyVar_
Call UserVarFree("C:\MyVar.vas")
MsgBox MyVar_
VAS
MyVar_ : F

On the second run of the script you get the error message. As I know was this behaviour fixed in DIAdem 9 (I get the fault in DIAdem 8 with all SPs named 8.1.1834 as well)

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 4 of 9
(4,054 Views)

Hi Matthias,

thx for your reply. Yes, this is 'my' error-message! I can reproduce that with your example.

I understand the error of the 2nd msgbox. I have to accept the bug of 2nd run of your listing.

 

I don't find a command UserVarFree or like this. I think I remeber that I tried it manually AFTER my modification didn't work.

I watched following behaviour:

1st DIAdem-Start, without *.vab -> it seems to work (no error)

rerun script -> error message (near like above)

rerun script -> error message

close diadem, rerun diadem, run script -> error message

close diadem, delete vab, rerun diadem, run script -> no error

 

rerun smal version of script -> always no error

 

copying the vbs & vas on another pc (not the smal version) -> no error

 

using diadem 9.1 with this project -> no error

 

I add a zip-file containing vas, vab, vbs and sud...

 

greets Andreas

Volkswagen AG
Wolfsburg - Germany
0 Kudos
Message 5 of 9
(4,047 Views)
Hello Andreas!
 
I expect that a UserVarCompile with the UserVarMode = "new" will call a UserVarFree internaly in DIAdem, but I don't know the code.
 
I tried to run your code but the file Kalibrierung.vas or Kalibrierung.vab is missing. The other problem was to find the 'MeineVar_' declaration. Is it in Kalibirierung.vas or was it just an example?
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 6 of 9
(4,036 Views)

Hi Matthias,

thx again.

The Kalibrierung.vas doesn't seem to be the problem, but I add it in my reply now.

Sorry, yes of course 'MeineVar_' was an example.

'bSchnellMess_' is the var, that I added and other more:
- bSchnellSave_
- iKartenArt_
- gIdNr_
- gKanalNr_
- gFrequenz_

I think the script will run on your system, because it runs here on another PC and on the same PC with DIAdem 9.1.

 

Message Edited by hass on 10-18-2006 10:17 AM

greets Andreas

Volkswagen AG
Wolfsburg - Germany
0 Kudos
Message 7 of 9
(4,028 Views)

Hello Andreas!

You are right. Your script runs on my DD8.1.1292 without any problem.

Sorry that I can't help to find the reason/solution.

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 8 of 9
(4,019 Views)

nevertheless THX you all, special to you Matthias for your efforts!

it doesn't matter, cause I'll Update that project to DIAdem 9.1, cause there I need a DataPlugIn.

 

greets Andreas

Volkswagen AG
Wolfsburg - Germany
0 Kudos
Message 9 of 9
(4,011 Views)