Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the 6515 as a bus/external device controller? (in specific question on tasks)

I am using the PCI 6515 to control an external device. The device has a simple bus scheme where I write out an 8 bit address, the MPAC (device I'm controlling) responds it's "Read for Data/Data Ready", then it sends me data (or I send data to it). My question revolves around the use of tasks in DAQmx. Can I initialize a task for each port I'm using and not worry about reinitializing the task? Or do I have to initialize the task each time I want to write information to the port? (ie: for each right or read from a given port).

I am writing a dll driver in C++ to control the card, then will use the dll in various programs. Thanks for any help anyone might have.

Curtis
0 Kudos
Message 1 of 2
(3,085 Views)
Hi CurtisS,

You only need to initialize your task once at the start of your program, not every time you write to the port. Be sure to stop and clear the task when your program is done executing.

Regards,
Laura
0 Kudos
Message 2 of 2
(3,076 Views)