AnsweredAssumed Answered

vrf TDS754C question

Question asked by reiner.schlieker on Dec 5, 2003
Run the array thru a formula box with the following formula:

ClipUpper(ClipLower(x-12,0),1)

Reiner


-----Original Message-----
From: Thomas.Mitchell@Autoliv.com [mailto:Thomas.Mitchell@Autoliv.com]
Sent: Friday, December 05, 2003 3:09 PM
To: VRF
Subject: [vrf] TDS754C question


I'm using a Tektronix TDS754C with a current probe to monitor and decode a
digital data stream (current pulses).  The Tek gives me the data back in a
pretty rough jagged edge waveform due to sample rate and memory depth etc.
What I have done is pulled the offset, Y axis data, and scaling info from
the scope and am able to re-create the data in mAmps, and graph it.  Now I
need to set a threshold limit to determine 1's and 0's.

My array contains 10,000 data points so using a loop is out of the
question.  What I'm looking for is a fast way to look at all of the data
and set a limit that anything over 12ma is a 1, and anything less than 12
ma is a 0.  Any good fast way to do this?  The data in the array may have
some noise on it.  The data may look like this:

5
9
7
6
38
11
8
9

This would equal:
0
0
0
0
1
0
0
0

or in hex:  08

I am not familiar with MatLab, is their a neat built in funtion that would
do this?  I've attached a sample data file.(See attached file:
CurrentData.txt)

Thanks

Tom Mitchell
Autoliv AEA


---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes