04-23-2008 11:21 AM - edited 04-23-2008 11:22 AM
04-26-2008 05:18 PM - edited 04-26-2008 05:19 PM
04-28-2008 03:55 AM
Hi Skadi,
I just looked over your code and as far as I can tell, it looks fine. The error that you are getting indicates that something is going wrong
when communicating with your device via the driver that you have created. To investigate this in more detail I would recommend you to
create a NI-PAL report. To do this, open MAX and got to HELP >> System Information. Click on "Report" at the bottom of the window and proceed
to generate a full report. Maybe there is something that tells us what exactly the problem could be. Let me know when you have news.
Best regards
David
04-28-2008 05:10 AM
Thank you David for your fast reply!!!
I have a attached the PAL report. Well, I hope it is the right file - I have a German version of NI MAX and things look a little bit different there...
It wasn´t possible to a attach the *.htm file directly so I have zipped the file.
My LabWindows/VISA-programs are relatively new, but I often had problems with the VISA *.inf files. Sometimes the files weren´t recognized by Windows or there were strange error messages and nothing worked. I will reinstall VISA today, perhaps there was an error during the installation - at least it´s better then doing nothing...
04-28-2008 07:33 AM
05-17-2008 09:14 AM
Problem solved - there was an error in my microcontroller firmware. I changed the endpoint descriptors in the usbdsc.c file of the microchip framework and now everything works fine.
Here are the correct descriptors:
/* Endpoint Descriptors *
sizeof(USB_EP_DSC),DSC_EP,_EP01_OUT,_BULK,64,0x00,
sizeof(USB_EP_DSC),DSC_EP,_EP01_IN,_BULK,64,0x00
01-07-2010 02:48 PM
Hi Skadi,
I'm planning to create a Window/CVI GUI to talk to the PIC18F4550. Currently I have PICDEM FS USB Starter Kit.
I did create the INF via NI VISA and that is the furthest step I went.
I knew you had great success of resolving the USB issue. I'm wondering if I can obtain a sample of your CVI program as well as the PIC18F4550 firmware that you'd already modified and working.
Your help will be greatly appreciated.
-Chee
p.s. Let me know how I can compensate you. I can be contacted at cheechong04@yahoo.com
01-09-2010 03:06 PM
Skadi,
Please disregard with my previous e-mail to you.
I managed to make it works in BULK USB RAW using Window CVI. Surprisingly I don't have the end point descriptors problem you came across. But I took the PIC demo code and made it into a standalone project so that other programmers can compile it easily.
Your code (in the first posting) is helpful and provided a good starting point.
I took your code, made slight modification, and created a project.
With my CVI program, I can toggle LED 3 and LED 4 as well as reading the POT value of the PICDEM FS USB Demo board using PIC18F4550.
With my CVI program, you don't have to modify your demo board to toggle the RD7 line.
To benefit other programmers, I posted 2 projects in this forum:
1) The sample program of CVI BULK USB RAW
2) The standalone PIC demo program that you can make modification and compile it.
Have a good day,
-Chee Chong