12-04-2009 11:26 AM
I can't seem to find the script command to refresh external data before I move it into the Data Portal. Can anyone point me in the right direction?
Also, is there a way to run this script without opening DIAdem, selecting the script and running it? I would like to generate a web page that is updated every X hours with a report generated with a DIAdem script.
Thanks
Todd
12-07-2009 10:16 AM
Hi toddho,
What do you mean by "refresh the external data before I move it into the Data Portal"? Do you mean change or add data to the external data file with VBScript? Or do you mean refresh the display of data files and folders in the NAVIGATOR? Or do you mean something else? I'm afraid I can't seem to make sense of this request yet.
If you want to run a DIAdem VBScript from an external program, such as a java script activated in a web page, then you should open an ActiveX connection to DIAdem and send it commands. This can be done in such a way that DIAdem is invisible, but you must have a DIAdem instance running in order to execute a VBScript with DIAdem commands or variables in it. DIAdem has 2 ActiveX servers that are well documented in the Help system:
DIAdem.ToDataSheet
DIAdem.ToCommand
Brad Turpin
DIAdem Product Support Engineer
National Instruments
12-07-2009 11:33 AM
I think that I am going to generate my reports with a VI instead of DIAdem scripts. In the end I think that it will be easier for me. But what I was talking about was when I right click on an external data source and select refresh. This seems to reread that datasource so that I can place the latest data into the data portal. I think that I am going to use the DIAdem express VIs to do this though. Thanks for your help.
Todd