DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve data through http protocol

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?

 

 

0 Kudos
Message 1 of 2
(3,705 Views)

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:

LabVIEW DataPlugin SDK

 

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.

0 Kudos
Message 2 of 2
(3,698 Views)