The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 selecting groups and channels form a give.TDM file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

chintan

India
16 Posts

Posted - 04/08/2014 :  07:38:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi I am importing .TDM file. and i was using the following code to import the specific groups from my TDM file. i have 17 groups in this structure and out of which i need to select few of them in different combinations based on my selection. while doing so i came acorss the the following code,

newbook;
fname$ = "c:\400C_temp_creep_data_6000uN_10Min_1S_TC_1 LC.tdm";
impFileSel xfname:=imppNITDM -d trFiles:=tt;
tt.=;

i have 17 groups and each has few variable channels i believe.
so then i wrote the following for them to select (1) or deselect (0).

tt.Groups.ChannelGroup0.Channel0=1;
tt.Groups.ChannelGroup1.Channel0=0;
etc... for each channels...

and at the end i imported with the modified file structure writing the follwoing.

impNITDM -d trFiles:=tt;

but what happens is that the actual tree also exist while i see the dialog box and the modified structure does not have any effect on the file data import.

am i doing something wrong here, if yes, please guide me what should i need to do??

it is urgent, please help.

with best regards.

cmbhatt

chintan

India
16 Posts

Posted - 04/08/2014 :  08:12:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
one more thing i forgot to attach for your reference is as under: as i was executing this code one by one i go the structure of my TDM file like the one shown below.

3> newbook;
4> fname$ = "c:\400C_temp_creep_data_6000uN_10Min_1S_TC_1 LC.tdm";
5> impFileSel xfname:=impNITDM trFiles:=tt;
6> tt.=;
FileSetting
+---FileInfo
| \---strTag = File Size: 190 KB
\---Groups
+---ChannelGroup0
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup1
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup2
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup3
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup4
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup5
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup6
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup7
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup8
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| +---Channel6 = 1.
| +---Channel7 = 1.
| +---Channel8 = 1.
| +---Channel9 = 1.
| \---Channel10 = 1.
+---ChannelGroup9
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| +---Channel6 = 1.
| +---Channel7 = 1.
| +---Channel8 = 1.
| +---Channel9 = 1.
| \---Channel10 = 1.
+---ChannelGroup10
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| +---Channel6 = 1.
| +---Channel7 = 1.
| +---Channel8 = 1.
| +---Channel9 = 1.
| \---Channel10 = 1.
+---ChannelGroup11
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| +---Channel6 = 1.
| +---Channel7 = 1.
| +---Channel8 = 1.
| +---Channel9 = 1.
| \---Channel10 = 1.
+---ChannelGroup12
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup13
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup14
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup15
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| \---Channel6 = 1.
+---ChannelGroup16
| +---Channel0 = 1.
| +---Channel1 = 1.
| +---Channel2 = 1.
| +---Channel3 = 1.
| +---Channel4 = 1.
| +---Channel5 = 1.
| +---Channel6 = 1.
| +---Channel7 = 1.
| +---Channel8 = 1.
| +---Channel9 = 1.
| +---Channel10 = 1.
| +---Channel11 = 1.
| \---Channel12 = 1.
\---ChannelGroup17
+---Channel0 = 1.
+---Channel1 = 1.
\---Channel2 = 1.
these values i set as per my requirements to read specific channels only. please help me in to resolve the issue.

with best regards.

cmbhatt
Go to Top of Page

greg

USA
1378 Posts

Posted - 04/10/2014 :  2:24:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Presumably after executing:

newbook;
fname$ = "c:\400C_temp_creep_data_6000uN_10Min_1S_TC_1 LC.tdm";
impFileSel xfname:=impNITDM -d trFiles:=tt; // CORRECTED

you have executed a number of commands like this:
// omit Channel6 in ChannelGroup0
tt.FileSetting.Groups.ChannelGroup0.Channel6 = 0;

// omit all of ChannelGroup17
tt.FileSetting.Groups.ChannelGroup7.Channel0 = 0;
tt.FileSetting.Groups.ChannelGroup7.Channel1 = 0;
tt.FileSetting.Groups.ChannelGroup7.Channel2 = 0;

// omit odd channels of ChannelGroup10
loop(ii,1,11)
{
if(mod(ii-1,2)!=0) tt.FileSetting.Groups.ChannelGroup10.Channel$(ii-1) = 0;
}

which modified the tree.

Then:
impNITDM trFiles:=tt;
should only bring in the channels you did not turn off.

Please use the LabTalk Forum for LabTalk questions like this...
http://www.originlab.com/forum/forum.asp?FORUM_ID=10
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000