Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

communicate with a USB port, DLL in Visual Basic, program in LabVIEW

Hello !

I have to write a program in LabVIEW (I'm a novice in this language) to communicate with an interferometer via an USB port. The drivers and DLL for the USB port are written in Visual Basic.
-I don't know if it's possible to use them just so, or if I need to adapt them to LabVIEW.
-And how to do to call a particular function of my DLL ?

Thank you for your answer...

🙂
Gaelle
0 Kudos
Message 1 of 7
(6,053 Views)
You use the Call Library Node function in LabVIEW to access a DLL. Specifics on how to select the DLL and the functions can be found in the shipping document called "Using External Code in LabVIEW". Go to Help>Search the LabVIEW Bookshelf.
Message 2 of 7
(6,047 Views)
Thank you very much. Actually, I had just found the function but now I even got the confirmation it's the good one.

Unfortunatelly, I can't access the pdf document "Using External Code in LabVIEW". Have you got a copy ?
0 Kudos
Message 3 of 7
(6,041 Views)

Download it here.

0 Kudos
Message 4 of 7
(6,037 Views)

Thank you again...

I've got a new problem. When I enter the name of my function (Call library function\Configure\Function Name), LabVIEW send me an error message and close. Maybe it doesn't reconize the function of my dll...

May I use "create .c file" (right click on the Call Library Function Node) to copy the code of my dll in a new file?

0 Kudos
Message 5 of 7
(6,020 Views)
That's not what "Create .c file" will do. It will create a new .c file for you to use as a template in creating a new .dll.
0 Kudos
Message 6 of 7
(5,995 Views)

Nakaose,

You should refer to these links:

Tutorial: Sharing code with VB:

==>  http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&5F9B8F1FF859549186256E5C0005457D

Tutorial: Can LabVIEW C?:

==> http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&FD4B480C24A159BD86256E60005B0120

Best regards,

JPR

NIF

 

0 Kudos
Message 7 of 7
(5,974 Views)