10-20-2008 12:19 AM
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?
10-20-2008 01:46 AM
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
10-20-2008 02:10 AM
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...
10-20-2008 04:11 AM
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.![]()
10-20-2008 10:14 AM