Home › ELEKTOR FORUMS › My circuit does not work (yet)! › Usb data Acquisition card

ELEKTOR FORUMS

Please log in to post a reply or subscribe / unsubscribe to topics

Topic: Usb data Acquisition card

Author Post

mhs100

19 posts

Popping In
Popping In

Read post 10-09-2009 20:47

Hi all

In the elektor magazine of NOV 2007 , there is an article of USB DATA ACQUISITION CARD , I read the code but on the PC side .NET FRAMEWORK is used for communicating with the DAQ card.

Is there any way to use that same code of PIC18f4550 to communicate with LABVIEW on the PC side instead of .NET FRAMEWORK?

I want to use labview to communicate with that USB DAQ card, please send me labview file which is compatibe with that code.

Any help greatly appreciated

mek_control

3 posts

Popping In
Popping In

Read post 08-11-2009 21:23

yea there is away to do that but u must first know the function and paramters of dll file so if any one could explain these things it will be easy to interface with labview

Arjen H.

767 posts

Power User
Power User

Read post 21-02-2010 15:33

mek_controlyea there is away to do that but u must first know the function and paramters of dll file so if any one could explain these things it will be easy to interface with labview


Functions and parameters can be found in the C++ code.

These are from the C# code:

[DllImport("mpusbapi.dll")]
static extern int _MPUSBGetDeviceCount(string pVID_PID);

[DllImport("mpusbapi.dll")]
static extern int _MPUSBOpen(int iInstance, string pVID_PID, string pEP, int dwDir, int dwReserved);

[DllImport("mpusbapi.dll")]
static extern int _MPUSBRead(int iHandle, byte[] pData, int dwLen, ref int pLength, int dwMilliseconds);

[DllImport("mpusbapi.dll")]
static extern int _MPUSBWrite(int iHandle, byte[] pData, int dwLen, ref int pLength, int dwMilliseconds);

[DllImport("mpusbapi.dll")]
static extern int _MPUSBReadInt(int iHandle, byte[] pData, int dwLen, ref int pLength, int dwMilliseconds);

[DllImport("mpusbapi.dll")]
static extern Boolean _MPUSBClose(int iHandle);

mek_control

3 posts

Popping In
Popping In

Read post 21-02-2010 17:43

no this is not parameters which we talk about parameters is needed to open connection with card and to read channel data digital or analog,then use call function data in labview to connect with the card


but first dose any body assemble this card correctly seem it have problems

Arjen H.

767 posts

Power User
Power User

Read post 21-02-2010 19:30

Please see this thread.


"mek_control"but first dose any body assemble this card correctly
I have...

Please log in to post a reply or subscribe / unsubscribe to topics

Subscribe now

Subscribe to our free
E-weekly Newsletter!

Enter your Email address:

Sponsored


Design your unique front panel with our free CAD software - it is quick and easy! Front Panel Express will machine your design with modern CNC technology. You will receive the panel exactly as you need it in a couple of days.

FAQ

Before submitting questions, review our FAQ section!

New book

Python Programming and GUIs

This book is aimed at people who want to interface PCs with hardware projects using graphic user interfaces. The programming language used is Python, an object-oriented scripting language.