02-26-2014 04:43 PM
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
02-27-2014 04:21 PM
02-28-2014 09:51 AM
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
02-28-2014 10:48 AM
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
02-28-2014 11:38 AM
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
02-28-2014 03:49 PM
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
03-03-2014 12:34 PM
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.
03-17-2014 08:01 AM - edited 03-17-2014 08:02 AM
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
04-08-2014 03:51 PM
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.