05-10-2007 06:05 AM
05-11-2007 03:50 AM
Hi,
Did you actually install the NI Traditional DAQ driver onto this computer from the installation CD's/image, or have you just copied this dll into the system folder?
It sounds like the dll isn't actually registered correctly on the machine. If you have installed this driver, I would uninstall and re-install it.
You can download the latest version of the driver from the following location:
http://digital.ni.com/softlib.nsf/websearch/E42B7A3564AB2F1A862572A7006D1564
Let me know how this works out for you?
Regards
Hannah
NIUK & Ireland
05-11-2007 04:01 AM
Hi,
I have not just copied the driver. I have installed Traditional DAQ and also DAQmx in my PC to figure out the differences between the two and need to write a application which is using DAQmx driver. At present this application is written for traditional DAQ with reference to nidaq32.dll. When I am executing the code I am getting this error " nidaq32.dll not found", but when i run the executable file generated by the program it is running without any bugs.
Thanks
05-11-2007 04:07 AM
Hi,
Can you post the code for this application - so that I can take a look at it, and see if I can reproduce the problem here?
Which version of Visual Basic are you using?
Regards
Hannah
NIUK & Ireland
05-11-2007 04:15 AM - edited 05-11-2007 04:15 AM
Message Edited by Support on 07-16-2007 10:52 AM
05-11-2007 04:42 AM
Hi,
I loaded your project 'TraditionalDriver_6602card.vbp' and ran program and it works fine here, so I don't think its something with your code or the way you've set up the project.
What version of NI-DAQ do you have installed? Do you also have NI-DAQmx installed? If so what version? What other NI software is installed on this machine?
Regards
Hannah
NIUK & Ireland
05-11-2007 05:05 AM
05-14-2007 03:43 AM
05-16-2007 05:23 AM
05-17-2007 05:40 AM
Hi Hannah,
As my previous message says, I have not found any example to make one of the counter as Gate, with respect to simple event counting it is working fine. But i would like to have Gated event counting. When i browsed through the libraries of NIDaqmx there is lot of functions listed out but not able to get the definition of the functions and been strucked at this stage. In traditional DAQ program the following code been used to set the Gate. Could you please help me in getting the same function using DAQmx.
iStatus = GPCTR_Control(i6602DeviceNum, ND_COUNTER_0, ND_RESET) ' Reset counter
iStatus = GPCTR_Set_Application(i6602DeviceNum, ND_COUNTER_0, ND_SINGLE_PULSE_GNR) ' Set counter type
iStatus = Select_Signal(i6602DeviceNum, ND_RTSI_0, ND_GPCTR0_OUTPUT, ND_DONT_CARE) ' Output to RTSI 0 line
iStatus = GPCTR_Change_Parameter(i6602DeviceNum, ND_COUNTER_0, ND_SOURCE, ND_INTERNAL_100_KHZ) ' Set clock
iStatus = GPCTR_Change_Parameter(i6602DeviceNum, ND_COUNTER_0, ND_COUNT_1, GateLength / 10) ' Low cycles (10%)
iStatus = GPCTR_Change_Parameter(i6602DeviceNum, ND_COUNTER_0, ND_COUNT_2, GateLength) ' High cycles
iStatus = GPCTR_Control(i6602DeviceNum, ND_COUNTER_0, ND_PROGRAM)
Thanks