Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

Generating a digital pulse train for muscle stimulator

$
0
0

Hello,

 

I am brand new to LabView, and am trying to decide if it or MatLab (which I am somewhat familiar with) would be best for my application.

 

I need to generate a digital pulse train, to run through a USB 6229 BNC NI AD board, to drive a Digitimer DS7AH muscle stimulator. 

 

The parameters of the stimulation train need to be: 300 ms on, 1200 ms off.  While "on" the output train needs to be at 20 Hz (so it will deliver a train of 7 pulses per time it is "on").  I need to run this for 3 minutes (so 120 trains). 

 

I found the "gen dig pulse train.vi".  Seemingly, I'd just have to enter the frequency at 20 Hz, duty cycle at 0.2, and number of pulses to 120.  But I think this would give the train once a second, not once every 1.5 seconds.  How would I account for this?

 

I could do the train every 1 second if required, for a total of 180 trains, if necessary.  But would rather do the 1.5 seconds.

 

The stimulator will control the pulse width and intensity.  Those are set on the stimulator.  The stimulator is triggered by a pulse of +3 (up to 15) volts.  I'm guessing the AD board sends out a 5 volt output?

 

I'd also like to be able to deliver to the stimulator single and double pulses at given, discrete time points (so for example, a single at 1 minute, 4 minutes, 7 minutes, 12 minutes; and a double at 2 minutes, 5 minutes, 9 minutes).  I'm not sure if LabView can do this, since they are irregular intervals?

 

Thanks for any help.

 

 


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>