08-03-2004 10:37 PM
08-05-2004 08:41 AM
12-11-2007 07:57 AM
Hi chris,
I have the same requirement using PXI6070E board but I need to use Traditional NI DAQ driver 7.3 with VC++. I have described my requirement below:-
1. I have to acquire multiple channels simultaneously at different sampling intervals for each channel. For an example @CH1 it may be 1ms sampling rate for 1000s and @CH2 1us or even lesser than that for 1000 sec.
2. Also in another channel I need to start the acquisition after 1000sec and acquire for 100us @ 1us sampling interval.
It would be so helpful if you can give an similar example in VC or in VB.
thanks and regards
sankaran
12-12-2007 01:27 PM
Hi NIAmigo,
I will suggest for a next time post your thread in a new forum, this helps us keep track of our customers issues and in this case isolate DAQ programming in VC++ from LabVIEW coding; either way I’m going to help you.
So breaking down your requirements you have a: PXI6070E that you want to program with Traditional DAQ 7.3. My first suggestion is to use the DAQmx drivers instead of the Traditional DAQ; even though Traditional 7.3 is compatible with this card the newer drivers DAQmx will be a lot easier to code. If you still want to code in Traditional your best resource will be: “Traditional NI-DAQ (Legacy) ™ C Function Reference Help, Version 7.x” this reference help should be located inside the NI-DAQ folder under National Instruments.
For examples on Traditional DAQ I will point you to: How Do I Install the Traditional NI-DAQ Example Programs for Microsoft Visual Basic and Visual C++?, here you will find examples that will help you get started. If you change your mind about the drivers and have you have access to a machine with LabVIEW this code my suit you as a guide to built your VC code, Multi-Rate Continuous Analog Input for E Series Devices.
As far as us having an example that will meet your requirements we don’t have one on VC++ or , one approach is to follow the method explained in the first post, sample everything at the faster rate and eliminate samples on your slower rate channel (decimate). Regarding the part of starting the task after 1000 sec you can programmatically, your best place for information would be: Tips and Techniques in Data Acquisition Triggering – Traditional DAQ.
I will like to point that your timing considerations of 1us might not be achievable since the ADC rate of this card is 1.25 MS/s and it is per channel, so if you have only one channel you will sample at 1.25M (0.8 us) or if you have 5 channels each one is going to be sampled at 250K (4us).
I hope it helps, any question don't hesitate in asking.
12-16-2007 06:14 PM
Thanks Jaime.
I will do so next time. Your help was very useful.