Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Reading Live Data Programmatically

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Read live data from a data connection to manipulate the data before you add it to the front panel or pass the data to a VI or function on the block diagram.

(Real-Time, Windows) National Instruments recommends that you use a Shared Variable node to read live data on a block diagram.

Complete the following steps to read live data programmatically.

  1. Add the DataSocket Read function to the block diagram.

  2. Specify a psp URL in the connection in input of the DataSocket Read function or wire a shared variable control to the connection in input.
  3. Wire a control or constant to the type input of the DataSocket Read function. The data type of the control or constant must match the data type of the data you expect to read. The default data type is the variant data type. If you are unsure of the data type of the data you expect to read or if another application is generating the data, use the variant data type. You can convert variant data to data that LabVIEW can manipulate.
  4. Run the VI or continually run the VI for live data updates.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit