02-14-2013 03:28 AM
Hi,
I'm trying to insert data in an existing timechannel. To illustrate my use case I have prepared some data:
Absolute timechannel D1 D2 D3
14.02.2013 03:22:51.3930 -4 92 703
14.02.2013 03:22:52.3930 -4 92 697
14.02.2013 04:06:19.7280 -1 75 674
14.02.2013 04:06:20.7280 -1 75 696
As you can see there is a chronological gap between the second and the third dataset. Now I want to insert a line with NoValues in this gap.
The data was recorded with a samplerate of 1Hz. After processing the data they should look like this:
Absolute timechannel D1 D2 D3
14.02.2013 03:22:51.3930 -4 92 703
14.02.2013 03:22:52.3930 -4 92 697
14.02.2013 03:22:53.3930 NV NV NV
14.02.2013 04:06:19.7280 -1 75 674
14.02.2013 04:06:20.7280 -1 75 696
Inserting the NoValues in the data channel works fine with 'DataBlInsertVal'. But I'm having trouble to achieve the same in the timechannel. Especially with the dependency on the samplerate.
Does anybody tried to do the same or has some hints how to achieve this? The main goal is to avoid that the reporting connects the data points over this chronological gap.
Regards, Marc
Solved! Go to Solution.
02-15-2013 02:33 AM
Hi Marc,
I did try what you wanted to do and it was working with DIAdem 2012 without any problems.
I used the attached file and this code:
Call DataBlInsertVal(Data.Root.ChannelGroups(1).Channels("Time"), 13, 1, NV)
Can you try this line with my file?
Cheers, RMathews
02-15-2013 07:10 AM
Hi,
it worked. 🙂
Perhaps I was mislead by a java solution I built. Also I haven't used the channel object, used the channelstring instead...
Now I give the whole channels-objects into the function. Thanks for the help!
Regards Marc