08-28-2009 03:40 PM
Hi,
Sometimes when I run a diadem script, I obtain an error message (see atachment) and DIAdem closes.
Recently, this problem began to appear very often.
Thank you
Egor
08-28-2009 04:44 PM
Hello Egor,
Could you please provide the following information to help us narrow down the problem:
- Your Operating System
- Amound of RAM in your computer
- Version of DIAdem you are using
- What is the Script doing when DIAdem crashed?
Thanks,
Otmar
08-28-2009 04:46 PM
Windows XP
1 GB RAM
DIAdem 11.0
The script was doing a lot of things...one of which was importing a Citadel trace.
08-28-2009 04:51 PM
Egor,
Can you share the Script?
Does the Script crash very time or just randomly?
Thanks,
08-28-2009 04:53 PM
Unfortunatly I can not share the script (
It crashes every second time it is run.
08-31-2009 11:40 AM
Hi Egor,
Without further information, we're just guessing here, but the "every second time it is run" comment sound like a significant clue to me. It sounds like your VBScript is opening something up and not closing it, then the second time you try to access it it fails and resets the state so that the third time it succeeds. Do you open AND close the connection to the Citadel db each time? What command are you using to load data from Citadel? There are 3 different commands that will load data from Citadel.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
08-31-2009 11:56 AM
Hi Brad,
I am using StorageImport function. And you are right, I do not close the connection. How can I close it?
Also, I am using the same function in another script and I do not get any errors, eventhough I am constantly importating traces.
Thank you
Egor
08-31-2009 03:14 PM
Hi Egor,
I can run a StorageImport() load from Citadel multiple times without any error, so I don't think that's something you need to worry about closing. How about if you search in your VBScript for "Open" to see if there are any other commands that have an open and a close action.
Can you interactively drag the traces you want to load from the NAVIGATOR to the Data Portal when the VBScript fails?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
08-31-2009 05:44 PM
Brad,
When VBScript fails, DIAdem shuts down and I can not drag anything from the Data Portal to the NAVIGATOR.
Egor
09-01-2009 11:03 AM
Hi Egor,
OK, so let's try this. Run your VBScript the first time (the time that works), then instead of running the VBScript the second time (the time that fails) try importing your Citadel traces via drag&drop from the NAVIGATOR to the Data Portal. Let me know if the interactive load works. It is quite possible that the Citadel load is not the problem in your VBScript. We can also test this by putting an "AutoQuit" command below the "StorageImport()" command in your VBScript and running the VBScript 2 or 3 times.
Brad Turpin
DIAdem Product Support Engineer
National Instruments