Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

dll of the instrument driver can not be loaded

Hello,

 

Do you mean that i had to create a win32 console application and add the .c and .h files and then run the project???

 

thanks

 

0 Kudos
Message 11 of 24
(1,288 Views)

Hi Ala Ayesh,

 

The instrument driver is in C, you will need a C compiler to compile the mxox802x.c (not the mxox802xu).

 

Then have that DLL placed in the same folder.

 

Hope this helps!

Chris T.
0 Kudos
Message 12 of 24
(1,272 Views)

Dear Mr.Christopher,

 

thanks am sorry to bother you a lot.

 

but can you give me a name of a c compiler to use, because i tried many ways to convert a .c file to a dll with no luck at all

i appreciate your help

 

thanks a lot.

Best regards,

Ala Ayesh

 

0 Kudos
Message 13 of 24
(1,268 Views)

Hi Ala Ayesh,

 

I used LabWindows/CVI to compile the dll, make sure that you are only compiling the mxox802x.c and not the mxox802u.c (This references CVI specific functions).

 

Hopes this helps!

Chris T.
Message 14 of 24
(1,262 Views)

Hello again,

i still have the problem but now with an error message of 

"can not find entry point "mxox802x_init" in mxox802x_32.dll"

 

i read that it is related to dllexport because it is a c dll and am trying to reference it in vb????????

did you get some thing like that?????

 

thanks.

0 Kudos
Message 15 of 24
(1,220 Views)

Dear Mr.Christopher,

 

sorry to bother you again

it seems we are going toward a solution but the problem now is that it says there are no entry point in the dll and i think it is related to the created dll using labwindows/cvi

because when i created the dll it says dll with no exports won't have imports and so i can't import the dll functions on my application.\

 

so do you know a solution for that ???

 

please help

looking forward to hearing from you soon.

thanks.

0 Kudos
Message 16 of 24
(1,205 Views)

Hello,

 

i fixed the previous problem with an article i found here on the website, i created the dll along with its library added them to bin/debug folder.

and now i have another error message saying the following:

 

Error interpreting the instrument's response

 

so what does that mean??? and what is the problem now ???

 

please help.

 

thanks.

0 Kudos
Message 17 of 24
(1,202 Views)

Hi Ala Ayesh,

 

Can you take a screenshot of the error? 

 

Thanks!

 

Chris T.
0 Kudos
Message 18 of 24
(1,157 Views)

Hello Mr.Christopher,

 

i can send the screen shot tomorrow because am at home now but the error occurs due to the following line of code:

 

Dim myScope as new mxox802x ("GPIB::30",true,true)

 

some times it gives me "interpreting instrument response" error

or "Time out" error

 

sorry to bother you.

 

thanks

0 Kudos
Message 19 of 24
(1,155 Views)

Dear Mr.Chirstopher,

 

here is the screen shot for the error that i have got.

 

thanks for your help.

 

0 Kudos
Message 20 of 24
(1,136 Views)