Raymond Tsang Posted March 3, 2009 Report Share Posted March 3, 2009 Hi all, I'm using a PCI-6250 to pulse an LED at ~1kHz frequency. The pulse train looks like: 1 0 1 0 0 0 0 .... (all zeros until another pulse ~1ms later) Each bit is 100ns. Simple calculations tells me that I need to put 10k bits to the on board memory every 1ms which is more than the 2k bit limit on the board. (btw, I can't find any DIO board with on-board memory > 4k) If I do not use on board memory, LabVIEW complains about the data transfer is not fast enough. Since from the 4th bit onwards, the pattern is just plain zeros, is there a way to work around the memory limit problem? Thanks so much! Ray Quote Link to comment
jdunham Posted March 3, 2009 Report Share Posted March 3, 2009 QUOTE (Raymond Tsang @ Mar 2 2009, 02:55 PM) I'm using a PCI-6250 to pulse an LED at ~1kHz frequency. The pulse train looks like: 1 0 1 0 0 0 0 .... (all zeros until another pulse ~1ms later)Each bit is 100ns. Simple calculations tells me that I need to put 10k bits to the on board memory every 1ms which is more than the 2k bit limit on the board. (btw, I can't find any DIO board with on-board memory > 4k) If I do not use on board memory, LabVIEW complains about the data transfer is not fast enough. What about C:\Program Files\National Instruments\LabVIEW 8.6\examples\DAQmx\Counter\Generate Pulse.llb\Gen Dig Pulse Train-Finite-Retriggerable.vi It uses counters instead of DIO, but it might get the job done. Quote Link to comment
Raymond Tsang Posted March 3, 2009 Author Report Share Posted March 3, 2009 QUOTE (jdunham @ Mar 3 2009, 07:50 AM) What aboutC:\Program Files\National Instruments\LabVIEW 8.6\examples\DAQmx\Counter\Generate Pulse.llb\Gen Dig Pulse Train-Finite-Retriggerable.vi It uses counters instead of DIO, but it might get the job done. Thanks for your help, but it looks like it doesn't "double pulse". I'll play with for a while, or maybe just buy a new card, e.g. PCIe-6535, as a last resort. Ray Quote Link to comment
JCC Posted March 4, 2009 Report Share Posted March 4, 2009 QUOTE (Raymond Tsang @ Mar 2 2009, 10:55 PM) Hi all,I'm using a PCI-6250 to pulse an LED at ~1kHz frequency. The pulse train looks like: 1 0 1 0 0 0 0 .... (all zeros until another pulse ~1ms later) Each bit is 100ns. Simple calculations tells me that I need to put 10k bits to the on board memory every 1ms which is more than the 2k bit limit on the board. (btw, I can't find any DIO board with on-board memory > 4k) Hi, how many 1s and 0s do you want write per one second? Quote Link to comment
Neville D Posted March 4, 2009 Report Share Posted March 4, 2009 How about a quick call to NI to find out which hardware will work best in your special case? This is exactly what Application Engineers and your local NI rep are there for. Often they can recommend hardware that you never knew existed in their catalog. Maybe you need an FPGA card, I don't know.. Neville. Quote Link to comment
Raymond Tsang Posted March 6, 2009 Author Report Share Posted March 6, 2009 Thanks for your advice. I've ordered a new card... PCIe 6535 with more on board memory (64k). Quote Link to comment
jdunham Posted March 7, 2009 Report Share Posted March 7, 2009 QUOTE (Raymond Tsang @ Mar 5 2009, 12:54 PM) Thanks for your advice.I've ordered a new card... PCIe 6535 with more on board memory (64k). I sent you a PM. If you are interested I can help you get it working with a garden-variety DAQ card. Cheers, Jason Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.