Pertelian LCD Displays "6" In Top Left Corner

This forum is now locked and archived. Please use the Version 6 Issues forum

Pertelian LCD Displays "6" In Top Left Corner

Postby jimbo11883 » Thu Feb 19, 2009 1:07 am

Hello. I just got my Pertelian LCD display. I've written a test app using VB.Net using the PertelianLibNET.dll.

The only way I can get the display to work is to:
1. Run my test app.
2. Connect the LCD display via USB.
3. Call the Initialize() function.

When my app closes, it calls the Close() function.

After closing, (2-3 seconds) it displays a "6" in the top left corner. I have to repeat the same steps to get it working again.

Thanks,

Jim
jimbo11883
 
Posts: 8
Joined: Thu Feb 19, 2009 1:04 am

Postby Alex » Fri Feb 20, 2009 7:54 pm

Hello Jimbo,
I'll refer this to Vicken to get his input.
ForeSight Systems LLC
ALEXANDER S. JARZEBINSKI
Chief Executive Officer
(714) 657-2522
Email: alex@pertelian.com
Alex
 
Posts: 1016
Joined: Tue Dec 06, 2005 5:36 pm

Postby jimbo11883 » Fri Feb 20, 2009 11:36 pm

Thanks Alex.
jimbo11883
 
Posts: 8
Joined: Thu Feb 19, 2009 1:04 am

Postby vicken » Mon Feb 23, 2009 8:09 am

Hi Jimbo

Are you using PertelianLib2 from http://developer.pertelian.com?
I recommend using that instead, since PertelianLibNET.dll has been deprecated.

VB.NET should be supported. The API has changed somewhat instead of Initialize() you call Pertelian_Open(), instead of Close() you call Pertelian_Close(). API Docs are included in the download package.

Thanks.
vicken
Site Admin
 
Posts: 117
Joined: Mon Dec 05, 2005 8:13 pm

Postby jimbo11883 » Tue Feb 24, 2009 1:24 am

Thanks, vicken. I'll let you know how well I do using PertelianLib2.
jimbo11883
 
Posts: 8
Joined: Thu Feb 19, 2009 1:04 am

Postby jimbo11883 » Tue Feb 24, 2009 2:43 am

I'm now using PertelianLib2, but I can't seem to get it to "find" the Pertelian LCD device. My device ID is always 0.

I am developing and running my app on Windows 7 Beta 1, btw.
jimbo11883
 
Posts: 8
Joined: Thu Feb 19, 2009 1:04 am

Postby vicken » Tue Feb 24, 2009 6:12 am

Hmm, Windows 7 may have changed some APIs that is something that I will have to look into. I'll see if I can procure a Windows 7 Beta 1 installation and test PertelianLib2 there. I'll let you know once I find out more.
vicken
Site Admin
 
Posts: 117
Joined: Mon Dec 05, 2005 8:13 pm

Postby jimbo11883 » Tue Feb 24, 2009 1:04 pm

OK, thanks vicken. I will post any information you need as well. I believe the problem lies somewhere in the Pertelian_Open function.

It can be either the call to SetupDiGetClassDevs returning -1, or SetupDiEnumDeviceInterfaces returning false the first time called in the do while loop.
jimbo11883
 
Posts: 8
Joined: Thu Feb 19, 2009 1:04 am

Postby vicken » Wed Feb 25, 2009 2:56 am

One followup question, what is the architecture you are running under? x86? x64?
Thanks
vicken
Site Admin
 
Posts: 117
Joined: Mon Dec 05, 2005 8:13 pm

Postby jimbo11883 » Wed Feb 25, 2009 4:52 am

Hi vicken. I am running x64.
jimbo11883
 
Posts: 8
Joined: Thu Feb 19, 2009 1:04 am

Postby vicken » Sat Mar 07, 2009 3:12 am

Hi Jimbo,
I have been researching the Windows 7 problem. I have made a small change to the PertelianLib2 .NET library. Can you see if it works/doesnt work and let me know?

I have temporarily placed it here:
http://www.pertelian.com/PertelianLib2.zip
vicken
Site Admin
 
Posts: 117
Joined: Mon Dec 05, 2005 8:13 pm

Postby jimbo11883 » Sat Mar 07, 2009 3:23 am

PertelianLib2 is confirmed working on Windows 7.

I still get the "6" display problem, I am not sure why it happens. It even happens with the Pertelian software. It may have something to do with changes in Windows 7. Although even with these "6" displaying, I can still run my app and it will start right up and display output on the LCD without a problem.
jimbo11883
 
Posts: 8
Joined: Thu Feb 19, 2009 1:04 am

Postby vicken » Sat Mar 07, 2009 6:20 am

So just to be clear with the change PertelianLib2 now works where before it was not.

If that's the case I'll update the library.

The problem was caused by a struct size difference between 32-bit and 64-bit versions of windows. For now I believe the "6" problem is still something most likely Windows 7 related.
vicken
Site Admin
 
Posts: 117
Joined: Mon Dec 05, 2005 8:13 pm

Postby jimbo11883 » Sat Mar 07, 2009 3:36 pm

Yes, the struct size fix resulted in PertelianLib2 working correctly on Win7 x64. Makes sense.
jimbo11883
 
Posts: 8
Joined: Thu Feb 19, 2009 1:04 am


Return to Bugs/Issues Version 5 Archive

Who is online

Users browsing this forum: No registered users and 1 guest

cron