Home › ELEKTOR FORUMS › Microcontrollers & Embedded › Usb Data Acquisition software(Nov 2007)

ELEKTOR FORUMS

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

1   2   3   4     next

Topic: Usb Data Acquisition software(Nov 2007)

Author Post

djgillery

3 posts

Popping In
Popping In

Read post 02-11-2007 10:21

I've just downloaded and unzipped the software only to find that the following error message comes up when I try to open TAD_V1_win.exe.

"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

Does anybody know what the problem is please. The mpusbapi.dll is in the same folder as TAD_V1_win.exe and I have Microsoft .NET framework 1.1 installed.

mjbrearley

4 posts

Popping In
Popping In

Read post 03-11-2007 15:44

Hi there
I had the same problem and got the same error message. I am using Windows XP and copied the .dll file into the C:\WINDOWS\system32 folder. I no longer get the error message now, I do get a message which asks me to

Connect USB DATA ACQUISITION CARD and restart program

Unfortunatly I cannot do this since I have not built the card yet !!

I hope this is of some help
Mike

djgillery

3 posts

Popping In
Popping In

Read post 05-11-2007 09:05

Thanks for the tip, I copied the DLL to the system folder but still get the same message when I try to run the program. Has anyone got any more ideas?.

mjbrearley

4 posts

Popping In
Popping In

Read post 24-11-2007 11:36

Hi there again
I posted a reply a while ago about putting the dll file into the system32 folder which seemed to work for me but I tryed to run the software on an other PC but get the same error message suggesting the software should be re-installed so I think there must be a file somewere on the computer that the software runs on but not on the other.
Is there anyone else out there who has got this software to run correctly?

Thanks
Mike

Mactitan

32 posts

Occasional Visitor
Occasional Visitor

Read post 22-12-2007 05:09

Hello, I can't get the TAD_V1.HEX to download to the PIC18F4550.
I get the following message: ERROR in HEX File - Fuse. Line:287 :0100000024DB
Someone please help.

Mactitan

32 posts

Occasional Visitor
Occasional Visitor

Read post 27-12-2007 02:32

I found a simple method to download the TAD_USB.HEX file to the PIC18F4550.
Now I need help to develope a Delphi 7 application that will communicate with the Usb Data Acquisition board of Nov 2007.
Can anyone help?
Regards
Ian.

salam

6 posts

Popping In
Popping In

Read post 26-01-2008 09:39

The USB+ and USB- pins on K2 should be swapped.

I did not tested yet. But the corrections issued in Elector February 2008.

freddie.vandermerwe

1 post

Popping In
Popping In

Read post 05-02-2008 10:10

Hi there. All the software that I downloaded worked. I did make all the changes necessary in the c code and the code compiled. The problem that I encountered was that when I connect my PCB to the computer, Windows doesn't respond to new hardware that is connected. It is as is nothing is connected and on the PCB both the data LED's are blinking, instead of just one with the other one off.
The only error when compiling the code is name exceeds file format maximum of 62 characters, but the build is successful.

Any help would be appreciated.

[fvdmerwe@gmail.com]

Post edited by freddie.vandermerwe on 05-02-2008 10:29

salam

6 posts

Popping In
Popping In

Read post 06-02-2008 17:16

Hi,

I build the Data Acquisitation Card with Pic18LF4550. I have had difficulites to program the processor with ICD2. I can read the code that I downloded to Pic processoren now(TAD_v1.hex). But I can not run the program TAD_V1_win. I am usin Windows XP Home edition. mpusbapi.dll is in system32 folder.
The computer do not response to the new HardWare when I connect the Card to PC? the only LED3 is ON. LED1 and LED2 are both OFF? I tried also to change 20MHz crystal.

I Corrected the problem withe print Card as it is issued in Elector February 2008 with out any success. I also triyed to remove R3 and R4 because Microchip do use 0R(0 ohm) for USB+ and USB-.

Any help would be appreciated.

Regards

Salam

Richard Clarke

2 posts

Popping In
Popping In

Read post 14-02-2008 15:34

I have the same problem as mjbrearley. I made all the software changes suggested by the author and recompiled the TAD_VI_WIN.exe file from the source code under Vista using Visual C++ 2005 Express (with Vista upgrade), SDK 2003, and .NET framework 3.5, without error. I built the card and connected it to the laptop. The laptop saw it and I installed the driver without problem. However, running TAD (using the C++ environment run without debugging) nothing happens except that I get the message: Connect USB DATA ACQUISITION CARD and restart program. It is connected and re-connection makes no difference. All the LCD's flash as stated in the article. Has anyone at all got the thing to work? Random.

Rupi_Madrid

6 posts

Popping In
Popping In

Read post 30-04-2008 21:23

Data:
Firmware: TAD_V1.hex
PCB: ELEKTOR 070148-1 V2.0
Program PC: The executable is called TAD_V1_win.exe and in the same folder where this archive is, also must be the following: mpusbapi.dll.
Driver: mchpusb.inf

Test W2000, XP:
1-.NET Framework
2-Windows update
3-Connect USB Data Acquisition Board to the PC and install the driver.
4-Run TAD_V1_win.exe

Test Vista:
1-..
2-..
3-..
4-For executing in Windows Vista, we will click on right mouse button on TAD_V1_win.exe and from context menu, we will choose Execute as Administrator..

Recompiled TAD_V1_win:
1-Install Visual C++ 2005 Express (http://msdn2.microsoft.com/en-us/express/aa975050.aspx)
2-Install Visual C++ 2005 Express SP1 (http://msdn2.microsoft.com/en-us/express/aa975050.aspx)
3-Install PSDK: Microsoft Platform SDK for Microsoft Visual C++ 2005 Express (http://msdn2.microsoft.com/en-us/express/aa975050.aspx)
4-Update operative system with Windows Update
5- Form Visual C++ to use PSDK. The proceeding is as follows (It comes from Microsoft):
Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK (resumed) By Brian Johnson, Microsoft Corporation:
Step 5.1: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box. Add the paths to the appropriate subsection:
Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
Step 5.2: Update the corewin_express.vsprops file.
One more step is needed to make the Win32 template work in Visual C++ Express. You need to edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and
Change the string that reads:
AdditionalDependencies="kernel32.lib" to
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
Step 5.3: Generate and build a Win32 application to test your paths.
In Visual C++ Express, the Win32 Windows Application type is disabled in the Win32 Application Wizard. To enable that type, you need to edit the file AppSettings.htm file located in the folder “%ProgramFiles%\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033\".
In a text editor comment out lines 441 - 444 by putting a // in front of them as shown here:
// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
Save and close the file and open Visual C++ Express.
END - Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK (resumed)
6-RUN VISUAL C++ 2005 EXPRESS EDITION
7-LOAD PROJECT
8-MENU BUILD-->REBUILD SOLUTION
9-MENU DEBUG-->START DEBUGGING

rosy

7 posts

Popping In
Popping In

Read post 16-06-2008 13:16

Thanks Rupi_Madrid for the latest (30 April) addition to the thread.

My USB data acquisition card with the test board is working well on my laptop under Vista.

I am still struggling a little to make a new form that shows the voltages being input as volts in a textbox. Its 18 years since I studied C and the language has changed, as has the way its implemented (Visual C vs Turbo C).
I am sure I will overcome this over the next week or so.

1. Is it possible to compile the PC program so that it can be run from a PC without the need to Right click and Run as Administrator? Is it something in Vista?


2. I want to use a number of these boards on the one computer at one time to measure a series of analogue temperature and pressure inputs and I would like some help to understand how to seperate between the USB Data Acquisition cards and to always be able to read the correct analogue input from the correct card each time I run the program.

I have had a look at www.usbmadesimple.co.uk and through the code for both the PIC and the PC.

It seems to be something in the Device Configuration called the "Device serial number string index" see MPLAB file usbdsc.c.
I think that if I put in a different serial number for each card and compile it for each card/chip then I should be able to find each one.

This section of the code was not needed in the current usage and I have found no useable information on how to read/ call/ identify each card within the PC program.

How do I call an analogue input on card 0 as compared to an analogue input on card 1?

As well as being able to identify each card and i/o to it, is it better to implement a program as
A. All the inputs and outputs on card 0 and then all the inputs and outputs on card 1, or
B. Is it possible to mix the order of looking at the different cards inputs and outputs?

A couple of other comments:

This has been a really interesting and challenging project, I've learned heaps.

www.usbmadesimple.co.uk is a brilliant site that is appropriately named.

Rupi_Madrid

6 posts

Popping In
Popping In

Read post 18-06-2008 12:06

Hello Rosy:

Cuestion 1: I don't know. I will try it shortly.

Cuestion 2: I'm study some apllications for card. Perhaps could be your idea.

alan

5 posts

Popping In
Popping In

Read post 21-06-2008 08:41

for this circuit...i cant find the component for VK200. what type of component can i use to replace it?

rosy

7 posts

Popping In
Popping In

Read post 22-06-2008 16:42

I used a standard transformer (balun) core from Jaycar LF-1222 but most small ferrite beads or cores would probably do.
The circuit most likely works ok without the ferrite core but I could be corrected on that.
You wont do any damage by trying it without one.

alan

5 posts

Popping In
Popping In

Read post 22-06-2008 17:02

thanks a lot,rosy..
u have been a great help.I will try it out.

alan

5 posts

Popping In
Popping In

Read post 23-06-2008 14:48

i have the same problem as freddie.vandermerwe. When i connected my usb card into the pc usb port, the windows detected the device but does not recognise it. I cannot install the driver and my both data LED are blinking. Any help?

alan

5 posts

Popping In
Popping In

Read post 26-06-2008 15:05

I have finished constructing the circuit, getting it to be recognised and running the software included in the package. The problem is that there are some "floating" voltage values in some analogue channels even though there are no voltage supplied to them. Could this problem arise due to the omission of the ferrite bead? Or it is because of other reasons?

rosy

7 posts

Popping In
Popping In

Read post 26-06-2008 17:12

In the directory 070148-11_revised/DATA ACQUISITION CARD BENCH TRAINER is a pdf file with a simple but effective test circuit. If you still get some movement on the Analogue Input progress bars then it may well be the balun.
I didnt think the progress bars seemed so sensitive. I suspect the Analogue Digital Converter is hunting for a voltage while there is nothing connected.

I am currently trying to get an output in volts instead of just a progress bar. This 10 bit resolution over only 5 volts should be quite accurate. I dont know that much about Visual Solutions and its years since I studied C so I am still working on getting the voltage as a numerical (floating point) variable to display in a text box. It seems like the textboxes only take preset strings but such a limitation doesnt seem right so there must be a way. I will keep at it.

alan

5 posts

Popping In
Popping In

Read post 27-06-2008 04:06

Thanks, Rosy, you have always been a great help. I am trying to fix the problem. Does your circuit display zero value for all analogue input channel when no voltages are supplied to them? Well, as for the interface, I am trying to do it also. Let us work hard together. I really appreciate your help. Thanks again !!

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

1   2   3   4     next

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.