Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

error 1073807302 with a USB device

Did you delete the pnf file or just the inf file? The pnf is a compiled version of the inf that will be used after the device is first loaded.
0 Kudos
Message 11 of 22
(3,021 Views)
OK. The inf and pnf files have been deleted. Now I do not see the USB device in MAX.
However, problem with the Call Library Function node persists. As any function is called, the program either crashes or gives an exception that error is generated in the external code.

Regards

Download All
0 Kudos
Message 12 of 22
(3,015 Views)
I saw your VI example that invokes  GetDllVersion().
And I think the function declaration (Call Library in LabVIEW) is wrong.
 
The original C function declaration was:
__declspec( dllimport ) BOOL __stdcall GetDLLVersion( char* );
 
But in the Call Library setting:
(1) Calling Convention is set to C (= _cdecl) but it should be stdcall.
(2) Parameter #1 type is set to String Handle but it may be correct to set C String Pointer.
 
As for (2), I am not sure if setting "C String Pointer" is really correct, but the original C function declartion apparently takes a C string pointer. Mind that the buffer area that the C string pointer points to must be already allocated by the LabVIEW app for enough size, because the DLL function looks like fill the resulting contents (dll version string in this case). 
 
As for the return type long, it is correct as C language's BOOL is typedefed to int, which is the same size as long in Win32.
 

 

このメッセージは 03-01-2007 09:36 AMに Makoto が編集しています。

このメッセージは 03-01-2007 09:40 AMに Makoto が編集しています。

0 Kudos
Message 13 of 22
(3,008 Views)
Thanks a lot. My prblem has been solved.
0 Kudos
Message 14 of 22
(2,974 Views)

Hi, I want to use the HCT-99 with labview but I couldn't figure out how you handled the problem, can you send me an example of your program, so I can see the whole thing and figure out the how.

 

Thank you in advance!

 

Miklos

0 Kudos
Message 15 of 22
(2,453 Views)

Hi, I want to use the HCT-99 with labview but I couldn't figure out how you handled the problem, can you send me an example of your program, so I can see the whole thing and figure out the how.

 

Thank you in advance!

 

Miklos

0 Kudos
Message 16 of 22
(2,453 Views)

Hello, could you post the exact error message you are seeing? This could be caused by various reasons.

National Instruments
0 Kudos
Message 17 of 22
(2,428 Views)

I'm trying to do the same thing, I was wondering what you did to finally get it working?

 

Thanks

0 Kudos
Message 18 of 22
(2,320 Views)

i am making this vi for working with X11 optik and htc99hid.dll. the vi work , can you tell me if there are improvements to do

thanks

0 Kudos
Message 19 of 22
(2,072 Views)

Hi Everyone, I'm trying to get a Optik X11 Meter interfaced with LabVIEW through accessing DLLs but I am having trouble. Does anyone have a written .VI that I can reference or use? The .VI posted one post above seems great but does not have the needed SubVIs.

Thanks in advance,

Phil

0 Kudos
Message 20 of 22
(2,018 Views)