Hi everyone,
im trying to develop a DLL for my NI pci board. This driver, the base, have been done using a Wizard from another Program called ISaGRAF, because i need to follow few steps to do a Easy IO driver that allows ISaGRAF comunicate with the NI board. When u create the project (VC++) using this wizard, is empy(what else:P). And i need to fill hte functions:
OPEN_Driver -> opens boards that are managed by this driver
CLOSE_Driver -> Closes boards that are managed by this driver
READ_Driver -> reads all the channels on boards that are managed by this driver
WRITE_Driver -> writes all the channels on boards that are managed by this driver
READONE_Driver -> reads one channel on boards that are managed by this driver
WRITEONE_Driver -> writes one channel on boards that are managed by this driver
OPERATE_Driver -> operates one channel on boards that are managed by this driver
Very easy as concept.I will use NIDAQmx drivers in my custom DLL. But heres my question:
As i can see, the OPEN_Driver function is the one for open the boards. Are the function CreateFile from kernel32.dll and the function DAQmxCreateTask similar in functionality? or should i use first the CreateFile to create a Handle for my Ni devices and handle them, or DAQmxCreateTask is enough?.
Sorry if the question sounds stupid. But im quite new in this.
Thanks in advance,
Ruzz.