LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create and read dll from labview?

hello ni,

                     Tell me how to create the dll and then how to read the dll from labview, right now i have labview 8.5 version i am creating driver and i am going to use this to laview 7.1

could you tell me how to create and read the dll for labview?

Regards,
Balaji DP
0 Kudos
Message 1 of 5
(3,170 Views)

Hi

 

The examples are out there 🙂

Usage of Call Library Function Node is here:

http://zone.ni.com/reference/en-XX/help/371361A-01/lvhowto/building_function_prototype/

Then you have to create C file:

http://zone.ni.com/reference/en-XX/help/371361A-01/lvhowto/completing_c_file/

and compile it to a dll:

http://zone.ni.com/reference/en-XX/help/371361A-01/lvhowto/building_library_project/

and then callthe dll

http://zone.ni.com/reference/en-XX/help/371361A-01/lvexcodeconcepts/ex_1_call_a_shared_library/

 

Hope it helps.

Best  regards

Mikolaj

0 Kudos
Message 2 of 5
(3,162 Views)

i am doing driver for my hardware... for the ditribution as VI is not possible thats why i creating the DLL... here i interfacing through COM port (serial - Port).. for that i have to initialize my hardware for communication settings and read/write configuration , then close the VISA.

 

here i drag the VISA  and i configured the Terminal after i went to Build-->shared liberary.. but in the case... here inputs are VISA resource name, parity, data bits.. and outputs are VISA resource name and error. i created the dll

 

after i opened new vi, and place the call lib function.vi , i went configure here i cant able to find out my terminal....

 

i tried small addition/subraction programm that is working and i find terminals there what i configured before making dll...

 

 

Regards,
Balaji DP
0 Kudos
Message 3 of 5
(3,158 Views)

Hi Balaji,

      If I understand your post, you intend to use LV 8.5 to build a DLL, then call that DLL from LV 7.1(?)

This shouldn't be a problem and, like souske said, there's a lot of help on building DLLs - though you shouldn't need to work with 'C'.at all.

 

It should be as simple as: 

1) Build and debug a VI that performs all the functions you want the DLL to do

2) Create a DLL from the VI (under LV 8.5 you'll have to create a Project and a Build Specification for the DLL.)

3) Test the DLL under LV 8.5

4) Test the DLL under LV 7.1

 

Post back if this doesn't sound right - or if you have additional questions!

Cheers.Smiley Happy

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 4 of 5
(3,140 Views)
Are the LabVIEW versions on different machines? If so, make sure the 8.5 Run-Time is installed on the computer that's running 7.1.
0 Kudos
Message 5 of 5
(3,120 Views)