LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate 2 Pulse Trains with separate freqencies and duty cycles with a PCI-MIO-16XE-10

Solved!
Go to solution

Hi,

     I am using a PIC-MIO-16XE-10 DAQmx board with LabView 8.6 to run a gate controller for a peice of equipment. I need to create 2 separate pulse trains, both triggered simultaneously, each with their own frequency and duty cycle. Thus far, I can create 1 pulse train and it is working exactly as I need it, however, whenever I try to activate the second train (called a gate in this VI), I get an error saying: "The specified resourse is resevered," even though the first gate is set to use counter 1 and the second should be set to use counter 0. As I understand, this board contains 2 separated counter/timer modules, so this should be possible. Much of the rest seen in the attached VI is preparation for signal processing and other controls that I will be using as I finish this VI.

Thanks,

<>< Eric

0 Kudos
Message 1 of 2
(2,689 Views)
Solution
Accepted by Eric-APU

Hi Eric - you've forgotten to attach your VI.  I've done what you're trying to do with a similar board, although that was using Traditional NI-DAQ (before DAQmx).  It should be possible with DAQmx as well.  A quick search on the forums turns up these two links, which suggests that your problem is that you're trying to create two separate DAQmx tasks, one for each counter.  What you need to do is create only one DAQmx task that includes both counters, then set their frequency and duty cycle independently.

http://forums.ni.com/ni/board/message?board.id=170&message.id=241602

Causes of NI-DAQmx Error -50103

Message 2 of 2
(2,666 Views)