09-06-2011 03:04 PM
Our client wants to use DIAdem for visualization, analysis, and so on which we never used. Data is placed in MySQL and our custom Web server with http protocol provides access to data.
I glanced into DIAdem and didn't notice that DIAdem supports http protocol. Am I right?
It looks we can use Dataplugin and write special plugin on LabVIEW (or C++)? Am I correct?
09-07-2011 02:27 AM
Hi,
DataPlugins are a good way to retrieve the data from your web server.
You can either use LabVIEW DataPlugins, please refer to the online documentation:
Or you can use VBS DataPlugins with the Miscrosoft XmlHTTPRequest object, e.g.:
Sub ReadStore(File) 'Tell the file how the string data is formed. File.Formatter.LineFeeds = vbNewLine 'Read out connection parameter Dim url : url = File.GetNextLine() 'Establish HTTP connection Dim oXMLHTTP Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP") oXMLHTTP.open "GET", url, False ', sUers, sPassword oXMLHTTP.send 'Provide the data to USI Dim ChannelGroup : Set ChannelGroup = Root.ChannelGroups.Add("MyChannelGroup1") Dim response : Set response = ChannelGroup.Channels.Add("responseBody", eString) response.Values(1) = oXMLHTTP.responseText End Sub
You can use different files to configure the URL providing the data.