[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | VAX on VMEbus: KAV30 |
Notice: | Could have been as fast as 68K but its a VAX! |
Moderator: | CSSVMS::KAV30_SUPP |
|
Created: | Thu Apr 18 1991 |
Last Modified: | Fri Aug 02 1996 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 159 |
Total number of notes: | 645 |
52.0. "KAV$CHECK_BATTERY returns bad parameter count" by ZYDECO::BODA (Realtime Products Support) Fri Apr 03 1992 05:18
Hi Graham,
I decided to keep these separate and open another topic.
Confirmed that KAV$CHECK_BATTERY returns:
%KERNEL-F-BAD_COUNT, bad parameter count
The customer claims the FORTRAN example in the book gives the same error.
Again, I'm using KAV V1.1, VAXELN V4.3.
Any thoughts?
Thanks,
Alan
------------------------------------------------
Here's my C code fragment:
main()
{
.
.
.
int battery_status;
/*
** Check current battery status
*/
kav$check_battery( &battery_status );
printf( "\nBattery Status: " );
display_status( battery_status );
.
.
.
}
void display_status(status)
long status;
{
VARYING_STRING(255) stat_str;
eln$get_status_text (status, 0, &stat_str);
printf ("%.*s\n", stat_str.count, stat_str.data );
}
T.R | Title | User | Personal Name | Date | Lines |
---|
52.1 | | HERR::CROSBIE | | Fri Apr 03 1992 14:25 | 7 |
| Hi Alan,
Thanks for reporting this and for providing the example program. I
have tracked down this problem, it will be fixed in the next
release.
Graham
|