LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2011 with Visual Basic 2010 Express

Hi I'm trying to use a DLL built in labview 2011 with VB 2010 Express and .NET 3.5. I took 2DArray example fron NI.com and I made adecuations but I have following error in VB: System.BadImageFormatException.

 

I had notice that if I take original VB .exe downloaded from NI.com, DLL works fine, I can modified with LV 2011 compile and it will works. But as soon as I recompile VB code with 2010 Express version error pops up. Can someone explain me what is going on?

0 Kudos
Message 1 of 9
(4,124 Views)

Hello DAVIDES,

 

Could you please sahre with us more information about the error?

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
0 Kudos
Message 2 of 9
(4,066 Views)

What doess "adecuations" mean?

0 Kudos
Message 3 of 9
(4,063 Views)

System.BadImageFormatException is the error that I have everytime that VB try to call DLL.

Attached you will find print screen, it is in spanish, translation for dialog says:

 

"It has been atemted to load a program with a wron format (Exception HRESULT: 0x800700B

 

Sugestion for your problem:

Make sure that your file is a valid assembled administrated (Sorry if translation is not good)

Make sure file path is correct.

..."

0 Kudos
Message 4 of 9
(4,011 Views)

Hi RavensFan, I mean adequations for use in my applications. But even if I dont modify software it will not work after I recompile VB project with "2010 express version". I had recompiled labview DLL and it is working with original .EXE attached from NI. 

0 Kudos
Message 5 of 9
(4,009 Views)

I don't know what "adequations" are either.  So I'll assume you meant to type "equations".

 

Have you tried an older version of VB such as VB6?  Perhaps something changed in VB's runtimes that functions that used to work no longer do.

 

What is it about VB2010 Express that makes it "Express"?  Is it a situation where it is a cheaper version of VB that may take out some functionality?

0 Kudos
Message 6 of 9
(3,999 Views)

Adequation translate to adequacy in english but I think the OP want to say he added code or modified the exemple.

 

Ben64

0 Kudos
Message 7 of 9
(3,992 Views)
This doesn't appear to be a LabVIEW question. The express version is free with limitations compared to the paid version of vb. You need to understand what the limitations are and you should check the vb forums to get that information.
0 Kudos
Message 8 of 9
(3,989 Views)

Hello everyone I know is been a while but I found how to solve problem. I found double2darrray example at NI.com but was done in a previous version of Visual Basic, then VB 2010 ask my to update project. I found below KB "Why do I Receive an Error when Using Visual Studio 2010 to Build a TestStand User Interface?" from NI that gave me a clue, I had following case:

 

"You convert an existing project that uses the TestStand UI controls from a previous version of Visual Studio to Visual Studio 2010 and you make an edit to the Windows Form containing the TestStand UI controls"

 

 

 

I know I dont have TestStand UI controls, but it seems with labview there is a similar problem when updating an old version VS project to VS2010 or VS2013. What I did it was  to create a new project from scratch and copy paste old project and it works, I did not replace any single line of code and it works.

I hope this information migth be useful for someone else, thanks everebody for all suggestions.

 

 

Regards

David E.

 

0 Kudos
Message 9 of 9
(3,889 Views)