Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Error message " nidaq32.dll no found "

Hi
 
Have been using a VB test program for traditional DAQ for PCI 6602. When I run the program, I am getting a error message as nodaq32.dll not found. But when i searched for that Dll in system folder it is present in there. Will this problem be due to version conflicts of the dll?
 
Thanks
 
 
0 Kudos
Message 1 of 14
(5,985 Views)

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

 

0 Kudos
Message 2 of 14
(5,966 Views)

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

 

0 Kudos
Message 3 of 14
(5,964 Views)

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

0 Kudos
Message 4 of 14
(5,962 Views)
Hi
 
I have attched the VB program, I am using Visual Basic 6.0. This program has been written for Traditional DAQ, but i need to reproduce the same functions of the program with DAQmx driver. It will be great if I get assistance in that as well.
 
Thanks

Message Edited by Support on 07-16-2007 10:52 AM

0 Kudos
Message 5 of 14
(5,961 Views)

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

0 Kudos
Message 6 of 14
(5,957 Views)
Hi
 
I have been using Tradional DaQ version 7.4.1 before, now upgraded to 7.4.4 and the program is working fine. Yes I have installed both DAQmx and traditional DAQ. I would like to have the same functions of the program which uses traditional DAQ to be rewritten using DAQmx. Could you please help me in that issue? I have not used DAQ software before and not much familiar with these software.
 
Thanks
0 Kudos
Message 7 of 14
(5,954 Views)
Hi,
 
There are lots of tutorials and examples that can help you in upgrading from Traditional NI-DAQ to NI-DAQmx. Take a look at the following links for some more information:
 
 
There will also be some examples installed for you with the NI-DAQmx Driver on your machine, these will be at "C:\Program Files\National Instruments\NI-DAQ\Examples\Visual Basic 6.0" if you have used the default installation location for the driver.
 
I hope this helps,
Regards
Hannah
NIUK & Ireland
0 Kudos
Message 8 of 14
(5,931 Views)
Hi
 
I have tried the examples and it was working for using counters. But i would like to use one of the counter say Counter 0 as gate and would like to use RTSI to give this to other counters as gate signal. As I have attached the traditional DAQ program before, It uses counter 0 as gate signal to other counters from 2-7. I would like to implement the same functionality using DAQmx. Transistion from traditional to DAQmx document gives details about using Labview. Could you please help me in using one of the counters as gate signal using RTSI to other counters through VB syntax.
 
Thanks
0 Kudos
Message 9 of 14
(5,909 Views)

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

0 Kudos
Message 10 of 14
(5,895 Views)