LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem opening dll

Hi,

I want to use MCP2200 usb-uart . I have a dll from microchip.com .

The problem is that I cannot access from labview to this dll.

What can be a problem?

 

dll can be found here http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en546923

0 Kudos
Message 1 of 8
(4,110 Views)

Generally, documentation for third-party drivers like the one you are describing is provided for by the manufacturer.  If you would like to use the DLL from Microchip, take a look at the documentation they provide for the DLL. Additionally, here is the manual from NI that documents using external code in LabVIEW.

 

http://digital.ni.com/manuals.nsf/websearch/8D930295FFBF9F7686256D2C00624728?OpenDocument&seen=1

National Instruments
0 Kudos
Message 2 of 8
(4,096 Views)

Hi,

 

I'm also using the MCP2200 for my application. Basically I have a MCU connected to a sensor and MCP2200. I need to display the sensor data on my PC and save the data into a file once I'm done with the aqcuestion. Latter I might want to control the MCU from my PC, But for now I just need to read the sensor data in my PC. I'm looking for quick solution. So I'd rather not get into the DLL provided by microchip. I'd rather use VISA instead. But I'm new to VISA and reading from a USB port. As far as I know now all I need is:

the MCP200 windows driver

VISA
, and LabVIEW

is this correct?

any help or advice is appreciated.

 

Thanks

0 Kudos
Message 3 of 8
(3,850 Views)

That is correct. As long as you know the commands you need to send which should be in the manual. We have example read and write VISA programs that you can start from.

Carl W.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 8
(3,827 Views)

Hi ,

You can use standard serial port communication with VISA.

But you will have problems using Microchip DLL, when I used it, it always crashed. But dll is only needed if you want to toggle gpio.

Anyway I found that Silicon Labs chip is more user friendly.

0 Kudos
Message 5 of 8
(3,816 Views)

you mean the commands for the MCP2200 converter chip?

Also isn't the converter chip is just a data relay? I mean the commands goes to the MCU not the converter chip?

Also, my setup is really a RAW instrument as defined by NI since I'll be sending commands in binary data. Correct? as I understood USBTMC sends commands as text that will be parsed by the instrument.

Also, I think I have to write a firmware that processes the USB commands and data communication correct?

 

Sorry for the many questions but I'm new at this and trying to find my way quickly into a fast solution.

 

Thank you very much.

0 Kudos
Message 6 of 8
(3,802 Views)

unfortunatly I don't have time to switch to slicon lab chip. It needs a new electrical design and pcb etc. I have to go with Microchip.

0 Kudos
Message 7 of 8
(3,795 Views)

I think there is some confusion here.

Using this chip you convert USB to simple serial interface with a COM port in windows.

Just send commands to com port that windows will generate for your hardware and they will be transfered as serial protocol (like rs232) to your mcu.

You have example "Basic serial write and read.vi"

0 Kudos
Message 8 of 8
(3,785 Views)