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
 Origin Forum
 linking data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jonbashmaster

2 Posts

Posted - 07/02/2015 :  08:06:23 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

i am new to origin (originpro 2015G)and i have a problem. i have 2 values(122) linked to time (hh:mm:ss). So i get 4 collums.
1: Temp
2: Timecode for Temp
3: Intesity
4: Timecode for Intensity

Temp is taken every second. Intensity 4 times during a second. is it possible to Plot Temp against Intensity. i want origin to link the Temp to the 4 related Intensity values.

i am still trying but i dont realy have a clue. any suggestions? thx in advance.

best regards jontem:

Edited by - jonbashmaster on 07/02/2015 08:07:13 AM

SeanMao

China
288 Posts

Posted - 07/03/2015 :  05:59:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The way I am thinking of is to split the column intensity into 4 columns and plot those four extracted columns versus Temp (X) so that you will have four intensity points corresponding to a single Template point at each second.

To do it, you can directly copy and paste the following code in Script Window and highlight all, press Enter to run:


// Suppose intensity column has Long Name "Intensity"
colsplit -r 0 irng:=col("Intensity") nrows:=4 rd:=[<input>]<input>; // Split Intensity columns into 4 columns
plotxy iy:=(?,5:8) plot:=201; // Plot splitted columns against Temp as Scatter plot


If this is not what you want, please proceed to explain in more details.

Thanks!

Regards!

Sean

OriginLab Tech. Service
Go to Top of Page

lkb0221

China
497 Posts

Posted - 07/06/2015 :  2:52:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Sean's solution is to split the Y into 4 sub-Ys.
There is another alternatives that to generate a new X column based on the original one.
col("Temp") = pattern(col("Temp"), 4, 1); // Overwrite the original column
Or, add a new column and use Set Column Value with function body: pattern(col("Temp"), 4, 1). Then you can build a analysis template for new incoming data files.

Zheng
OriginLab

Edited by - lkb0221 on 07/06/2015 3:08:52 PM
Go to Top of Page

jonbashmaster

2 Posts

Posted - 07/09/2015 :  06:43:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

thx for the help the pattern command works for me!

best regards

jon
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