ziCheckPathInData

Utils.ziCheckPathInData(data, path)

ZICHECKPATHINDATA check whether a node is present in data and non-empty

PATHEXISTS = ZICHECKPATHINDATA(DATA, PATH)

Return true or false, depending whether the PATH from the device node tree is present in DATA, where DATA is a structure typically returned by poll() or, e.g., sweep.read().

NOTE : - Wildcards are not supported.

EXAMPLE : ziAutoConnect(); device = ziAutoDetect(); path = [‘/’ device ‘/demods/0/sample’]; ziDAQ(‘unsubscribe’, ‘*’); ziDAQ(‘subscribe’, path); data = ziDAQ(‘poll’, 1.0, 500); ziCheckPathInData(data, path) % –> true ziCheckPathInData(data, [‘/’ device ‘/demods/1/sample’]) % –> false