Skip navigation

Community

Currently Being Moderated

Programmatically Create Constant Lines on DIAdem Report from LabVIEW Array

VERSION 1 
Created on: Dec 14, 2009 3:52 PM by Kelly_R - Last Modified:  Dec 14, 2009 3:58 PM by Kelly_R

 

This example shows you how to import an array from LabVIEW into a DIAdem channel, create constant lines on the graph in REPORT for an existing layout for each value in the array, and then output the REPORT layout to LabVIEW to be printed.

 

Here is a snippet of the VB Script:

 

Call GraphObjOpen(GraphName)

For counter = 1 To ChnLength("MyData")

 

name = "MyConstant" + CStr(counter)
Call GraphObjNew("2D-Curve", name)
   Call GraphObjOpen(name)
      D2CCurveType     = "Constant"
      D2CConstX = ChnVal (counter, "MyData")
   Call GraphObjClose(name)

 

Next

 

Call GraphObjClose(GraphName)
Call PicUpdate()
Call PicSave("ConstantTest.TDR")

 

Attachments:
Comments (0)