07-21-2023 09:43 AM - edited 07-21-2023 09:44 AM
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
07-25-2023 01:55 PM
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
07-26-2023 05:05 AM
Thanks for that.
Helps me to find the string.
Didn't think of a solution like this.