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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 selecting groups and channels form a give.TDM file

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
chintan Posted - 04/08/2014 : 07:38:45 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 04/10/2014 : 2:24:16 PM
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
chintan Posted - 04/08/2014 : 08:12:49 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000