DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug dataplugin

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

0 Kudos
Message 1 of 4
(4,863 Views)

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

0 Kudos
Message 2 of 4
(4,856 Views)

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

Message 3 of 4
(4,837 Views)

Hello Bruno

 

The information is also available in English.

 

http://digital.ni.com/public.nsf/allkb/C29CBAF07DB2B93786256F09002FE35B

 

Winfried

Message 4 of 4
(4,834 Views)