11-20-2009 06:14 PM
How do I debug my dataplugin after I have written some VBS code? In particular, how can I implement stop blocks and watches to verify whether the variables I've assigned are carrying the correct values?
Thanks,
Bruno
11-21-2009 08:36 AM
Hi Bruno,
You can't use these standard debugging approaches in a DataPlugin. My best suggestion for debugging the state of variable "Foo" at a particular line in the DataPlugin is to add the following commands just under that line:
Root.Properties.Add "Foo", Foo
Exit Sub
As long as you've already created at least 1 Group prior to this line, you'll be able to run the DataPlugin without error and then look at the "Foo" file property in the Data Portal. You can also make excellent use of Group and Channel properties in other more complicated situations.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-23-2009 12:40 AM
Hello Bruno,
you can debug DIAdem-DataPlugins and DIAdem-SUD-Dialogs with the Microsoft Scripteditor. Look at this Link:
http://digital.ni.com/public.nsf/allkb/619E0490DD7FF06C86256EE5004052DE
This informations are in german.
I hope this helps.
Uwe Hein
11-23-2009 01:18 AM
Hello Bruno
The information is also available in English.
http://digital.ni.com/public.nsf/allkb/C29CBAF07DB2B93786256F09002FE35B
Winfried