Home › ELEKTOR FORUMS › Microcontrollers & Embedded › 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.

1051 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.

1051 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:

Follow Elektor

      

Act now!

Sponsored

FAQ

Before submitting questions, review our FAQ section!

Bestseller

Controller Area Network Projects

The aim of this book is to teach you the basic principles of CAN networks and in addition the development of microcontroller based projects using the CAN bus.

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.