DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get ONE-x-chn out of TWO-x-chn???

Hello;)

i hope someone could help me:

I have two x-y curves. I want to divide Y-chn-vaules at a specific X-chn-value.
So I have to bring the 2nd X-chn to the values of the 1st X-chn and calculate the 1st Y-chn values(corresponding to x-value). But how can I do this? Can anybody help me? Is there a function to bring 2 curves on the same X-Value??

THX in advance!!!

BestRegards

Andreas
0 Kudos
Message 1 of 12
(6,058 Views)
Hello Andreas!
 
Have a look at the ChnMapLinCalc command. This should be exact what you need!
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 12
(6,056 Views)
Hello Matthias,
 
yes this is a good command!!! Thank you!! 
...but I think I can only calculate monoton ascending functions and sometimes I some "snapback" in my function is there chance to solve this too?
 
 
Thank you in advance!!!
 
BR
 
Andreas
0 Kudos
Message 3 of 12
(6,043 Views)
Hello Patrick!
 
Yes, the X channels have to be monoton ascending, but not strictly monoton ascending.
 
Can you please explain what 'snapback' are?!
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 4 of 12
(6,039 Views)

Hello,

the curves I have are measured on a Transistor with Voltage on the X-chn and Current on the Y-chn. The Curve could look like this one http://www.simucad.com/simulationstandard/1992/apr/a1/a1_fig2.gif

Thanks,

Andreas

0 Kudos
Message 5 of 12
(6,036 Views)
Hello Andreas!
 
In this case every channel hast to be mapped to a common base. In the following code this base a is an index channel with 1000 values (to be adapted!).
Option Explicit
 
' Create some snapback demo data (simplified)
Call DataDelAll()
Call ValueToChn( Array(0, 2,   4, 6,   8, 10, 12,14,15,14,12, 10, 8, 7.2, 7), "X-IN" )
Call ValueToChn( Array(1, 1.5, 2, 2.5, 3, 3.8, 4, 5, 6, 7, 8, 10,14,20,  25), "Y-IN" )
 
' Generate linear monotene mapping channels
Call ChnLinGen("BASE-TEMP",1,1000,1000)
Call ChnLinGen("X-TEMP",1,1000,ChnLength("X-IN"))
Call ChnLinGen("Y-TEMP",1,1000,ChnLength("Y-IN"))
 
' Map both channels on oneself
Call ChnMapLinCalc("X-TEMP","X-IN","BASE-TEMP","X-OUT", 1, "const. Value" , NoValue, "analogue")
Call ChnMapLinCalc("Y-TEMP","Y-IN","BASE-TEMP","Y-OUT", 1, "const. Value" , NoValue, "analogue")
 
 
Matthias


Message Edited by Twigeater on 04-10-2008 10:41 AM
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 6 of 12
(6,031 Views)
Hello Andreas!
 
Sorry, thats solution is not enough for calculations! I will think again...Smiley Happy
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 7 of 12
(6,027 Views)
Hi
This would be very nice if you can find something for me!!!
 
Thanks a lot in advance!!!
 
BR
Andreas
0 Kudos
Message 8 of 12
(6,019 Views)
Hello Andreas!
 
Sorry it took longSmiley Sad
 
Can you please give me somme additional info about your data. Is there another channel wich can be used to get a coreelation between two messages or is there a way to generate a parameter channel?
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 9 of 12
(5,966 Views)

Hy,

no problem;)

I have following:

Vtest = monoton increasing Test Voltage generated of the Powersupply (zB 4,8,12,...)

VDUT= resulting "Device Under Test"-Voltage at Vtest (zB at 4V-Vtest, VDUT is 3V2), the Voltage is not monotone increasing (zB Snapback, ...)

IDUT= resulting "Device Under Test"-Current at Vtest (zB at 4V-Vtest, IDUT is 35mA), the Current is not monotone increasing (could be smaller then the previous value)

 

What I want to do:

Divide the IDUT-channels of two measurements. To make this possible I have to bring the VDUT(of both meas.) on the same values=> so i have to interpolate the value I need with some operation...

 

I hope this is a bit helpful for you!

Thank you so much!!

BR

Andreas

 

 

0 Kudos
Message 10 of 12
(5,963 Views)