12-12-2007 04:40 PM
12-13-2007 10:26 AM
Hi Claudia,
Good to hear from you. I would recommend using the Calculator programmatically to set the values from the control channel in those unwanted rows to NoValues. Then you can use the ChnNoVHandle() function to remove all the rows from all the channels in that Group where the control channel has a NoValue. You may actually find you'd rather set the rest of those rows to NoValues instead of deleting them, if what you really want to do is plot curves of event data
Group = 1
ControlCh = "[" & Group & "]/Revs"
L1 = CNo(ControlCh)
R1 = 5500 ' RPMs
Call FormulaCalc("Ch(L1):= Ch(L1) + NoValue*(Ch(L1)<R1)")
ChnStr = ""
FOR j = 1 TO GroupChnCount(Group)
L2 = CNoXGet(Group, j)
IF L2 <> L1 THEN ChnStr = ChnStrAdd(ChnStr, L2)
NEXT ' i
'Call ChnNoVHandle(ControlCh, ChnStr, "Delete", "X", 1, 0)
Ask if you have further questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
12-13-2007 10:35 AM
Hi Claudia,
I created a working example of both the NoValue and Deleting options for you, attached below.
Brad
12-13-2007 05:18 PM
12-17-2007 01:57 PM