Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital output generation using counter and AI data aquistion

Hello

 

I am trying to create two digital signals using two counters with PCI6220.Simultaneously I need to acquire some analog signals to display on monitor. I could able to do both individually, however when I combine both of them in single programme, could not able to do it. It is giving me an error

“The specified resource is reserved. The operation could not be completed as specified”.

I am using a dummy AI channel for synchronizing my digital signals. I presume this problem may be due to the synchronization with AI dummy channel.

Can’t I do both acquisition and generation simultaneously this way?

Is there any other way to do this ?


Any help will be great for me…

 

Thanks

Savini

 

 

0 Kudos
Message 1 of 3
(5,824 Views)

Hi Savini,

 

The error that you are receiving is due to the fact that you are using two analog inputs tasks in the same VI.  You can only do one analog input task at a time on the 6220 board.  If it had analog output you could create a dumby task with that, but that particular card does not.  If you make the analog input in the DAQ assistant the same timing that you would like to use for the counter tasks you can still use the analog sample clock from that task and there would be no need for the dumby task.

Ryan T
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(5,798 Views)

Ryan is correct that you cannot have more than one AI Task running at the same time on the 6220.  However, the dummy task shouldn't be necessary in this case--you can synchronize your counters as follows:

 

 

     23952iE2EF4B660B632597

 

 

If you do need a clock-type signal to synchronize off of, another option would be Freq Out, which is programmed just like a standard Counter Output but has limited functionality.

 

 

Best Regards,

John Passiak
0 Kudos
Message 3 of 3
(5,795 Views)