Ruzz
2008-06-10 10:10:08 UTC
Hi to everyone, How i can write to my pci-dio-96 board a data of 64 bits using the DAQmxWriteDigitalU32 function?Im doing the following steps:DAQmxCreateTask("taskDO",handler);DAQmxCreateDOChannel(taskDO,"Dev1/port0_32","port0_32",1);DAQmxCreateDOChannel(taskDO,"Dev1/port4_32","port0_32",1);DAQmxStartTask(handler);.........After this, when im trying to write the data, if for example i have the data in a write_value[ ] variable:uint32 write_value[2];write_value[0] = data from bit 0 to 32;write_value[1] = data from bit 33 to 64;//im doing this because if not, when i call the DAQmxWriteDigitalU32 funtion, it sais that 64 bit port its too big, so i need to divide the data.DAQmxWriteDigital32(taskDO,1,0,10.0,0,&write_value[0],&num,NULL);DAQmxWriteDigital32(taskDO,1,0,10.0,0,&write_value[1],&num,NULL);The first 32 bits are going good, but the relays got crazy with the second 32 bits (from 33 to 64).I dont know whats happening, anyone can help me with this little missconcept?Thanks a lot in advance,Ruzz