DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert data in an existing timechannel

Solved!
Go to solution

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

 

 

0 Kudos
Message 1 of 3
(4,712 Views)
Solution
Accepted by topic author CramB

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

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 2 of 3
(4,696 Views)

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

 

 

 

0 Kudos
Message 3 of 3
(4,690 Views)