06-22-2016 05:26 AM
Hi all,
I have a flow meter to which I have to do interface in LabVIEW. Flowmeter vendor has provided a dll and the function prototype document,
I have not used extensively the call library function node, In function prototype document I have function named -
"extern int GetConnexionStatus(CONNEXION_STATUS*);" how to write the Call library node for this function ?
Thanks
Solved! Go to Solution.
06-22-2016 05:31 AM
Use Call Library Function From Connectivity Tools
Then Browse for the Libray Name or Path, You can Specify the Library path Specified by Flowmeter Vendor
Actaully Single Library file has many Functions which you can Browse in the Function Name
@systemcrash wrote:Hi all,
I have a flow meter to which I have to do interface in LabVIEW. Flowmeter vendor has provided a dll and the function prototype document,
I have not used extensively the call library function node, In function prototype document I have function named -
"extern int GetConnexionStatus(CONNEXION_STATUS*);" how to write the Call library node for this function ?
Thanks
06-22-2016 05:55 AM
Hi,
Whatever you have written is the procedure to follow which I know, could you pls tell me what "type" to use for the parameter which is inside the bracket for the below function
extern int GetConnexionStatus(CONNEXION_STATUS*)
06-22-2016 06:34 AM
@systemcrash wrote:Hi,
Whatever you have written is the procedure to follow which I know, could you pls tell me what "type" to use for the parameter which is inside the bracket for the below function
extern int GetConnexionStatus(CONNEXION_STATUS*)
There should be a document for Refereing the Type of Input and Output data along with the library which you need to refer
06-22-2016 07:34 AM - edited 06-22-2016 07:36 AM
@systemcrash wrote:Hi,
Whatever you have written is the procedure to follow which I know, could you pls tell me what "type" to use for the parameter which is inside the bracket for the below function
extern int GetConnexionStatus(CONNEXION_STATUS*)
No, we can't! The datatype CONNEXION_STATUS is either an enum or a structure. Which of these we can't say without seeing the entire header file for the DLL and/or the documentation manual.
If it would be an enum you should be fine by configuring it as 32 bit integer passed as Pointer to Value. If it is a struct things might get a lot more complicated depending on what elements are inside the struct.
07-04-2016 02:10 AM
Hello all,
I used Import shared library wizard after getting ".h" file from the dll developer and was able to complete the required task of communicating to device.