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.
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.
10-16-2006 04:19 AM
10-17-2006 04:32 AM
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.
Greetings10-17-2006 06:46 AM
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...
10-17-2006 07:22 AM
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:
VBSOption Explicit
Call UserVarCompile("C:\MyVar.vas")
MsgBox MyVar_
Call UserVarFree("C:\MyVar.vas")
MsgBox MyVar_
VASMyVar_ : 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? |
10-17-2006 10:09 AM
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...
10-17-2006 03:03 PM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
10-18-2006 03:17 AM - edited 10-18-2006 03:17 AM
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
10-18-2006 04:03 AM
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? |
10-18-2006 06:56 AM
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.