DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Hello Andreas!

Do I understand right that 'VDUT' and 'IDUT' are both nonlinear functions of 'Vtest'? Second question: Are the number of samples in two measurments the same?

It would be easier for me to find a solution if you could provide me the data of two measurements. If possible you can attach them to a reply or send them to my email adress in the signature.

Matthias



Message Edited by Twigeater on 04-18-2008 09:02 PM
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 11 of 12
(1,335 Views)

Hello Andreas!

Have a look at the following code. I hope the comments explain the solution. The only thing I am not shure is the last value of 'Test Voltage'. It is 0 and I had to delete it. Is this OK?

Option Explicit
 
Dim dMin
Dim dMax
Dim nSamples
 
' Clear Data
Call DataDelAll()
 
' Load Data
Call DataFileLoad("E:\AW\17846-022-RP120_C_9600_TD65x2_E02_VDD-samestring_VSS-TLP500_50--B60021W12EPI_17846022_-080419-183559-50ohm_04-19-08_06-35-20_PM.tsr")
Call DataFileLoad("E:\AW\17846-022-RP120_C_9600_TD65x2_RP_VDD-samestring_VSS-TLP500_50--B60021W12EPI_17846022_-080419-184755-50ohm_04-19-08_06-47-37_PM.tsr")
 
' Delete last value of 'Test voltage' because it is 0
Call DataBlDel("[1]/Test Voltage",ChnLength("[1]/Test Voltage"),1,1)
Call DataBlDel("[2]/Test Voltage",ChnLength("[2]/Test Voltage"),1,1)
 
' Create result group
Call GroupCreate("Results")
 
' Generate common 'Test Voltage'
' Startvalue: Maximum of the 'Test Voltage' minima
' Endvalue:   Minimum of the 'Test Voltage' maxima
' Samples:    Count to get 1V Steps (can be changed!)
dMin     = MaxV(CMin("[1]/Test Voltage"),CMin("[2]/Test Voltage"))
dMax     = MinV(CMax("[1]/Test Voltage"),CMax("[2]/Test Voltage"))
nSamples = CInt(dMax-dMin)
Call ChnLinGen("Results/Test Voltage", dMin, dMax, nSamples)
 
' Map both 'TLP Voltage' and 'TLP Current' to the common 'Test Voltage'
Call ChnMapLinCalc("[1]/Test Voltage","[1]/TLP Voltage","Results/Test Voltage","Results/TLP Voltage 1", 1, "const. Value" , NoValue, "analogue")
Call ChnMapLinCalc("[1]/Test Voltage","[1]/TLP Current","Results/Test Voltage","Results/TLP Current 1", 1, "const. Value" , NoValue, "analogue")
 
Call ChnMapLinCalc("[2]/Test Voltage","[2]/TLP Voltage","Results/Test Voltage","Results/TLP Voltage 2", 1, "const. Value" , NoValue, "analogue")
Call ChnMapLinCalc("[2]/Test Voltage","[2]/TLP Current","Results/Test Voltage","Results/TLP Current 2", 1, "const. Value" , NoValue, "analogue")
 
' here you can start you calculations
Call ChnDiv("Results/TLP Current 2","Results/TLP Current 1","Results/TLP Current Divided")

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 12 of 12
(1,309 Views)