Hi all,
I'm trying to do a program, which should count triggerpulses.
I'm using a ComputerBoards ADC and i get out an array of Measurement Values.
How can i look at each of the values whether they are over or under the
trigger threshold? The problem is that it must be very fast. We are sampling
at a rate of at least 48kHz.
But i think i should first give U a short discription of my problem.
We get some analog triggerpulses (not TTL) out of our Magnetic Resonance
Tomograph. I want to use these triggerpulses to regulate some patient
stimulating equipment. The pulses must be sampled at at least 48 kHz in
order to not missing any signals(they are very short in time!). There are
either 128 or 256 triggerpulses in a time range of 10 to 20 sec. After that
there is a pause of about 1 sec and then it begins again.
I want to count up the triggerpulses to a value of 128 or 256 and than start
a program on my PC (or give out a signal on a dig. I/O) and stop it again
after the next 128 or 256 pulses.
Has anybody done anything like this before?
Another Problem is the output as a Graph or a file. When I sample with such
a high frequency i miss all values after about 3 to 8 sec.
I have a Pentium 120 MHz PC with 32 MB Ram an Win3.11. I tried to write the
File to a Ramdrive but that doesn't improve the problem really (only a bit).
The third problem is that I want to write the time scala to the file, too. I
wrote a program that calculates the time of each sampling but that takes (at
high frequencies) 10 to 20 times longer for each mesurement. Is there a
possibility to get the time directly (from the DAC f. e. ), and would that
be faster?
I'm looking forward to hearing of you.
Yours
Bjarne Roscher
stud. Ing. (FH)
Haukeland Univ. Sykehus
med tek avd
N-5021 Bergen
Bjarne.e.roscher@medtek.haukeland.no
I'm trying to do a program, which should count triggerpulses.
I'm using a ComputerBoards ADC and i get out an array of Measurement Values.
How can i look at each of the values whether they are over or under the
trigger threshold? The problem is that it must be very fast. We are sampling
at a rate of at least 48kHz.
But i think i should first give U a short discription of my problem.
We get some analog triggerpulses (not TTL) out of our Magnetic Resonance
Tomograph. I want to use these triggerpulses to regulate some patient
stimulating equipment. The pulses must be sampled at at least 48 kHz in
order to not missing any signals(they are very short in time!). There are
either 128 or 256 triggerpulses in a time range of 10 to 20 sec. After that
there is a pause of about 1 sec and then it begins again.
I want to count up the triggerpulses to a value of 128 or 256 and than start
a program on my PC (or give out a signal on a dig. I/O) and stop it again
after the next 128 or 256 pulses.
Has anybody done anything like this before?
Another Problem is the output as a Graph or a file. When I sample with such
a high frequency i miss all values after about 3 to 8 sec.
I have a Pentium 120 MHz PC with 32 MB Ram an Win3.11. I tried to write the
File to a Ramdrive but that doesn't improve the problem really (only a bit).
The third problem is that I want to write the time scala to the file, too. I
wrote a program that calculates the time of each sampling but that takes (at
high frequencies) 10 to 20 times longer for each mesurement. Is there a
possibility to get the time directly (from the DAC f. e. ), and would that
be faster?
I'm looking forward to hearing of you.
Yours
Bjarne Roscher
stud. Ing. (FH)
Haukeland Univ. Sykehus
med tek avd
N-5021 Bergen
Bjarne.e.roscher@medtek.haukeland.no
>Hi all,
>
>I'm trying to do a program, which should count triggerpulses.
>I'm using a ComputerBoards ADC and i get out an array of Measurement Values.
>How can i look at each of the values whether they are over or under the
>trigger threshold? The problem is that it must be very fast. We are sampling
>at a rate of at least 48kHz.
>But i think i should first give U a short discription of my problem.
>We get some analog triggerpulses (not TTL) out of our Magnetic Resonance
>Tomograph. I want to use these triggerpulses to regulate some patient
>stimulating equipment. The pulses must be sampled at at least 48 kHz in
>order to not missing any signals(they are very short in time!). There are
>either 128 or 256 triggerpulses in a time range of 10 to 20 sec. After that
>there is a pause of about 1 sec and then it begins again.
>I want to count up the triggerpulses to a value of 128 or 256 and than start
>a program on my PC (or give out a signal on a dig. I/O) and stop it again
>after the next 128 or 256 pulses.
My approach would be to write a DLL in C that takes the waveform and the
threshold value and returns the count. We have had to use this technique in
our applications do to the fact that the looping structures in VEE are very
slow compared to compiled functions.
>Has anybody done anything like this before?
>Another Problem is the output as a Graph or a file. When I sample with such
>a high frequency i miss all values after about 3 to 8 sec.
>I have a Pentium 120 MHz PC with 32 MB Ram an Win3.11. I tried to write the
>File to a Ramdrive but that doesn't improve the problem really (only a bit).
Sorry, I don't have any ideas for this one other than doing the file I/O in
the DLL to increase the speed.
>The third problem is that I want to write the time scala to the file, too. I
>wrote a program that calculates the time of each sampling but that takes (at
>high frequencies) 10 to 20 times longer for each mesurement. Is there a
>possibility to get the time directly (from the DAC f. e. ), and would that
>be faster?
I would put this algorithm in the DLL also.
>
>I'm looking forward to hearing of you.
>
>Yours
>
>Bjarne Roscher
>
>stud. Ing. (FH)
>
>Haukeland Univ. Sykehus
>med tek avd
>N-5021 Bergen
>
>Bjarne.e.roscher@medtek.haukeland.no
>
>
Steve Timian
Learn from yesterday,
do well the tasks of today,
and tomorrow will look after itself.
stimian@ara.com
(802) 763 - 8349 Ext 16 phone
(802) 763 - 8283 fax
Applied Research Associates
New England Division
RR1 Box 120A
South Royalton, VT 05068
From: etxob@tn.etx.ericsson.se (Ola Bjorkman)
Date: Mon, 11 Nov 1996 11:02:15 +0100
To: stanb@hpnmrsb2.sr.hp.com
Subject: ADDENDUM: Which version of Vee works on HPUX 10.20?
Hello Stan.
>From your letter i draw the conclusion that vee-3.21 works on all
hp-ux-versions exept of 10.1.
It this a correct interpretation, since it meens that 10.2 is
ok with vee-3.21.
B.R. ///OlaB
====================================================================
Ericsson Telecom AB SUN-email : etxob@tn.etx.ericsson.se
Local Design Center HPUX-email : etxob@wanda.ericsson.se
ISDN ACCESS (PC-MSmail) : etxob@etxlan1.etx.ericsson.se
Attn: Ola Bjrkman MEMO : ERI.ETXT.ETXOB
TN/ETX/XA/KE ECN : 850 91673
S-12625 STOCKHOLM Phone : +46 8 719 1673 (summer 57020564)
SWEDEN Fax : +46 8 719 9652 (summer 57020846)
====================================================================
> From stanb@hpnmrsb2.sr.hp.com Tue Nov 5 18:27:01 1996
> To: kwong@gandalf.sp.trw.com
> Cc: hpvxd_xc%hpislsup.lvld.hp.com@hplb.hpl.hp.com
> Subject: Re: Which version of Vee works on HPUX 10.20?Vrf - Which version of VEE works on HPUX 10.20?
> X-Mailer: Ishmail 1.3-960829-hp <http://www.ishmail.com>
> Mime-Version: 1.0
> X-Lines: 22
>
> Kit Hayashibara <kwong@gandalf.sp.trw.com> wrote:
> > Does Veetest 3.21 work on HPUX 10.10 or 10.20? I'm confused since
> > it stated in the June issue of the MXD Exchange that Vee 3.2 does not
> > work under 10.10 and won't until the next major update. I have an
> > email from my HP sales rep that says 3.21 works on all versions of
> > HPUX 9.x - 10.x. Which one is correct?
>
> Speaking as a user and not any sort of official answer, I believe that
> you will find that VEE 3.21 will indeed work on all versions
> of HPUX 9.x - 10.x.
>
> HOWEVER, if you want to do instrument control then there is a glitch.
>
> This requires SICL, which indeed does skip support for HPUX 10.1. Works
> fine for other versions of HPUX.
>
> Stan
> ----------------------------------------------------------------------
> Stan Bischof Hewlett Packard Company 707-577-3994 stanb@sr.hp.com
> ----------------------------------------------------------------------
>