DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

EventSearch on strings and fill data until next occurrence

Hi,

 

is there any kind of EventSearch for text data?

 

I have a channel group which contains sequencer commands. 

I need to search for "SET:ColorScreen:ALL" and sort values of a current channel to them. 

The sequencer writes the timestamp only for the time a sequence command is given. 

The current path's frequency is 1Hz.

So the amount of values isnt't matching and I would only need the values until the "SET:ColorScreen:ALL" command occurs again.

 

Is there a simple solution to do this?

 

Regards,

 

Thorsten

0 Kudos
Message 1 of 3
(1,162 Views)
Dim i
For i = 1 To Data.Root.ChannelGroups("Sequencer").Channels("Sequence command").Properties("length").Value Step 1
  Call LogFileWrite("Found 'SET:ColorScreen:ALL' at row: " & str(ChnFind("instr(1,ch(""Sequencer/Sequence command""),""SET:ColorScreen:ALL"",1)<>0", i)))
  i = ChnFind("instr(1,ch(""Sequencer/Sequence command""),""SET:ColorScreen:ALL"",1)<>0", i) + 1
Next
0 Kudos
Message 2 of 3
(1,095 Views)

Thanks for that.

Helps me to find the string. 

Didn't think of a solution like this. 

0 Kudos
Message 3 of 3
(1,079 Views)