Discussion:
Please code some example for PCI-4472
(too old to reply)
SAJID HUSSAIN
2008-07-29 06:40:08 UTC
Permalink
Please code some example for data acquisitioning using PCI-4472 card in visual studio C# for multichannels and saving data on the drive
ninlmartijn
2008-07-29 07:40:10 UTC
Permalink
Hello Sajid,
Thank you for your post on the discussion forum. Some examples are installed with the NIDAQmx drivers. A specific example for a PCI 4472 may not be included (you may find some examples for DSA devices or more generic DAQ cards), but these examples will give you a excellent starting point. You can test your device, set your device name and do some additional setting in the measurement and automation explorer.

The Measurement Studio 8.1.1 Visual C++ example paths for Windows Vista are x :\Users\Public\Documents\National Instruments\NI-DAQ\Examples\MStudioVC2003 and x :\Users\Public\Documents\National Instruments\NI-DAQ\Examples\MStudioVC2005.

The Measurement Studio 8.1.1 Visual C++ example paths for Windows XP and Windows 2000 are x :\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\MStudioVC2003 and x :\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\MStudioVC2005.
Please find also some examples on our support page ( <a href="http://www.ni.com/support" target="_blank">www.ni.com/support</a> ), I hope this one is usefull to you; <a href="http://zone.ni.com/devzone/cda/epd/p/id/4828" target="_blank">http://zone.ni.com/devzone/cda/epd/p/id/4828</a>
You can also use Labview signal express for simple data loging. The lite edition is included with the driver.
Best regards,
Martijn&nbsp;
&nbsp;
&nbsp;
PBear
2008-07-29 20:10:10 UTC
Permalink
Hi Sajid,
&nbsp;
It looks like there is a <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=344663" target="_blank">duplicate post</a>&nbsp;on the LabVIEW board. When dealing with hardware it's prefered to post to the Multifunction DAQ board or a more specific hardware board. For example since you are using a DSA product, you would get the best response from the Dynamic Signal Acquisition board. But that's just for future reference.
&nbsp;
I'll let the other post do the explanation of included examples but I would like to point out that to acquire from multiple channels in one task, simply put a colon and then the span of the channels. For example Dev1/ai0:3 will acquire everything on the first four channels with the same timing. Also, the DAQ Assistant is not available in C# but you can setup tasks in MAX before hand and then call them. You an also create Global Virtual Channels in MAX and refer to these when creating your task programtically in C#. These two options (configuring in MAX) will give you the ability to have muliple channels in a more graphical environment.
Loading...