DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Script in Diadem Plugin

Hi All,
I would like to excute some VB Script in Diadem plugin.
I got good help from
 
But in this case, If I make a vbs file directly then this program does not work properly.
First I need to make a text file and then save the same as vbs file !!!!!!!
 
Does any one has idea, why is it so?
 
 
Regards,
Vishal.
0 Kudos
Message 1 of 2
(3,411 Views)
Hi Vishal,
 
Without looking at it any closer, I'd guess you're running into an encoding problem.  DIAdem 9.x saves VBScript files by default in Unicode, not ANSI.  Depending how you are calling the VBScript from within your DataPlugin, this could be a stumbling block.
 
Note that you can change a SCRIPT panel setting in order to save VBScripts with ANSI encoding.  Or you can read out every other byte from the VBScript file before running it with the Execute function.
 
Let me know if you need more info,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,400 Views)