Jump to content

Error -2147217865 in Labview program on Windows XP


Recommended Posts

Hello. Im a newbie in Labview and am having a problem with a error message

I dont understand. Im running Labview on a pc-logger with windows XP.

The program is written by a guy on my university, and logs voltage from

a solar cell panel. He doesnt have the time to check in to it, so Im supposed to

find out what's wrong.

The error message is as follows :

---------------------------------------------------------------------------------

Error -2147217865 occured at Cmd Execute.vi->DB Tools Insert

Data.vi->Solcelle.vi

Possible reasons :

Exception occured in Microsoft OLE DB Provider for ODBC Drivers,

[MySQL][ODBC 3.51 Driver][mysqld-3.23.38-log]Can't open file :

'solcelledata.MYD'. (errno: 145). in Rec Create - Command.vi-

>Cmd Execute.vi->DB Tools Insert Data.vi->Solcelle.vi

-----------------------------------------------------------------------------------

I really hope someone can tell me what's wrong and specifically what to do

with it, or possibly guide me to someone who could suggest a solution to this

problem.

Reguards

chrisdee

Link to comment
The error message is as follows :

---------------------------------------------------------------------------------

Error -2147217865 occured at Cmd Execute.vi->DB Tools Insert

Data.vi->Solcelle.vi

Possible reasons :

Exception occured in Microsoft OLE DB Provider for ODBC Drivers,

[MySQL][ODBC 3.51 Driver][mysqld-3.23.38-log]Can't open file :

'solcelledata.MYD'. (errno: 145). in Rec Create - Command.vi-

>Cmd Execute.vi->DB Tools Insert Data.vi->Solcelle.vi

This is not a LabVIEW problem. The LabVIEW program obviously uses a MySQL database through an ODBC driver. The error you get is from the MySQL database service. It is unable to open the database table file 'solcelledata.MYD'. So maybe this file is corrupt or deleted.

If the database is on a server somewhere, you might need to contact your systems admin.

Link to comment
Thanks for the reply. Things are a bit clearer.

The file solcelledata.MYD is located on the pc-logger

Is there a way I can fix or edit this file if it's corrupted ?

Try this: http://dev.mysql.com/doc/mysql/en/repair.html as a starting point.

I'm not sure though if this particular page will be helpfull if the file is really totally unreadable by MySQL.

Link to comment
Thanks for the reply. Things are a bit clearer.

The file solcelledata.MYD is located on the pc-logger

Is there a way I can fix or edit this file if it's corrupted ?

You might want to check if it is actually currupted by trying to edit the table with MyCC (go to mysql site). If it won't load you can always create a new database in MyCC with the parameters you need. I would also suggest to check the permissions of the user being used to login to the database in the LabVIEW application.

I doubt if you are having an ODBC issue because you are not getting an error in your connect routine, but you may want to check those settings as well. control panel\administrative tools\Data Sources. It is probably under System DSN.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.