DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting Channels in Navigator

Hello,

 

In my line of work we may run multiple tests simultaneously, so in one particular test I have 5 channels that are not relevant to my test and 1 that is.

 

My hope was to use the advanced search in Navigator to search for channels NOT named "My Channel" in "My Folder". I was able to do that but I am unable to delete them from the Search Result window.

 

Is there way of accomplishing this? I was looking to avoid script in order to be more friendly to other users I work with, but would settle for that route as well.

 

-Michael

0 Kudos
Message 1 of 9
(6,656 Views)
Hi,
 
It is not possible to delete channels from the navigator that way. I do have some documentation here that will help create a script to remove those channels though. This document will help you search for the data and this document will help you access channels, delete channels, or add new channels. Let me know if this is what you are looking for.
Jason H
Automated Test Software R&D
0 Kudos
Message 2 of 9
(6,626 Views)

I have attached my VBS file. This loads all of the unnessecary channels into the data portal, but it also only deletes it in the data portal. I would like to remove it from the original tdms file.

 

the ".tdq" file searches for all files not named "mychannel" in "myfolder".

 

I am not sure if I loading the channel I need and overwrite each .tdms with only that channel would be easier.

 

-Michael

0 Kudos
Message 3 of 9
(6,610 Views)

Hi Michael,

 

I'm confused.  You say you successfully searched for all channels NOT named "My Channel".  That would mean that all the channels you DO want are in the Search Results, and no channels named "My Channel" are in the Search Results.  Then you say you want to delete the channels named "My Channel" from the Search Results.  But they can't be there if you did your starting query correctly.

 

It sounds like DIAdem will be able to give you the functionality you want, once we understand which step is stumping you right now.

 

Which part of this am I understanding incorrectly?

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 9
(6,608 Views)

I apologize for the confusion.

 

For a Group of 100+ .tdms files I have a structure listed below

 

.tdms File Name

- Data

Not My Channel 1

Not My Channel 2

Not My Channel 3

Not My Channel 4

MyChannel

 

I want to delete everything NOT named "My Channel" to end up with what is listed below

 

 

.tdms File Name

- Data

MyChannel

 

0 Kudos
Message 5 of 9
(6,603 Views)

Hi MK,

 

If you want to filter out all the channels NOT named "My Channel", then you can search for all the channels named "My Channel".  That will produce a Search Results with all channels named "My Channel".

 

Am I still missing something?

Brad Turpin

DIAdem product Support Engineer

National Instruments

0 Kudos
Message 6 of 9
(6,595 Views)

That is what I have ended up doing and making one large tdms file with all the data categorized by groups.

 

The idea was to remove all the extra data from the original files so that if someone were to search the original files 2 years down the road they wouldn't have to question why there was an LVDT, Pressure channel, etc. where the test plan/report did not mention them.

 

I knew that there were different ways I could do it, but I can see the situation happenning again where someone would like to just remove channels and resave the .tdms with the remaining data. This could be done 1 by 1 in the data portal, but would be cumbersome.

0 Kudos
Message 7 of 9
(6,569 Views)

Hi,

if you know the names of all data (f. e. via tree command) and if you know that your channel is always channel number 5 you can easily programatically open all your measure data, delete first 4 channels and save data.

 

Is that what are you looking for?

 

Simyfren

0 Kudos
Message 8 of 9
(6,457 Views)

Yes, that is what I need to do.

 

Thankfully, for the rest of my data I was able to remove the uneccesary channels prior to recording my data. I will see if I can make it work for my early data.

0 Kudos
Message 9 of 9
(6,316 Views)