10-08-2006 06:29 AM - edited 10-08-2006 06:29 AM
Message Edited by yusuf on 10-08-2006 06:31 AM
10-09-2006 03:30 AM
10-09-2006 08:12 AM
Thanks Hannah for clarifying. Its now working well.
Now i have moved to NI USB-6009 device. Using the examples in VB, it is pretty successful to generate digital, but reading analog inputs(with VB AcqIntClk) it displays around 3.5 V whereas it should be 5V. What do you suggest to increase the accuracy?
Also, examples provided use the library, nidaqmx.tlb . Can you advise a simple piece of code without any .tlb or .dll (in VB and/or C++) to generate/read inputs outputs through 6009 device?
Many thanks and regards
Yusuf
10-11-2006 03:34 AM
Hi Yusuf,
Have you tried checking your analogue input in NI Measurement and Automation Explorer (MAX)? This will show you whether the difference in voltage is down to the hardware setup or the software. The 6008 and 6009 devices have fairly low input impedance (around 144kOhm). Check whether you're using RSE or differential mode, and that the software setup is matched to this properly.
The library is included to make DAQmx programming easier in VB:
http://digital.ni.com/public.nsf/websearch/B22FE2B0F9C8935286256E920073DA07?OpenDocument
The only other way to call the DAQmx drivers from Visual Basic would be to wrap the dlls individually for each function you need, which isn't easier than using the examples you've already looked at.
Hope this helps.
Mark
National Instruments