05-04-2015 08:44 PM
Hi, all,
I am trying to generate a digital output signal as TTL pulses to control another device. I used matlab daq.session to creat all the possible clock signals matlab suggested for the digital channels to do clock samplng (sClk/counterChannel or addAnalogInut). Still I cannot get the digitalchannel to work with the clock. Matlab always told me that the channels are not able to perform clocled sampling. Is it possiable that the digital channels on my BNC2110 board or PCI6110 card do not support clocked sampleing? Is there anyway to get around it?
I am able to use ni-max to toggle the digital channels to turn on the devide that I want to control. So it seems to me that the hardware are okay.
the system is :
matlab r2013b
BNC2110 board
PCI 6110 card
whidndows 7
12G RAM
Many thanks,
mc
05-04-2015 08:54 PM
05-04-2015 11:25 PM
HI, Dennis,
Thanks. But still I dont understand why every time when my matlab code steps through "addDigitalOutput", the message warns me that I am adding channels that are not clocked sampling enabled even though I did use addAnalogInput () or sClk to give it the clock. I assume that's what you say about sofeware time clock. Sorry that I am repeating my question here again. Thanks in advance if you can give me some suggestions to work on.
Appreciate,
mc
05-05-2015 01:32 AM
05-05-2015 05:59 AM - edited 05-05-2015 06:00 AM
Dennis: When I look into the specs I read than one can configure the PFIs to output clock signals (scanclk or freq_out or timer signals)
mct1911: What type of TTL signals do you want to generate??
05-05-2015 12:08 PM
Thanks, Dennis.
Hi, Henrik, I am trying to generate pulses of 1 sec 5V TTL with 2 mins between each pulse from two digital channels.
mc
05-05-2015 01:23 PM
I would use one of the counters on that board to create a pulse train.
05-05-2015 02:54 PM
Thanks, crossrulz,
I will look into how to do that.
mc
05-05-2015 05:52 PM
Hi, corssrulz,
I did try using counter channels. Still matlab doesn't allow it to queue data output unless a analog or digital channel is used. Anyt other suggestions would be appreciated.
Thanks,
mc