03-21-2006 07:24 AM
03-21-2006 12:41 PM
You can call a C DLL from Labview using the Call Library Function Node found in the Advanced function palette. There are many things to be aware of. Like an int in C is a I16 in Labview and such. You cannot pass Labview strings into a C DLL without first converting the string into an array of bytes(U8). Clusters and C-structures don't quite match up, some things to learn here also. Go to the NI website and search for "DLL". You will see links to many white papers and such that can get you started.
I am assuming that RT has the same Call Library Function Node function call available as regular Labview.
If you are having problems, list your DLL parameters and I will try to match them up to Labview types.
03-21-2006 12:41 PM
You can call a C DLL from Labview using the Call Library Function Node found in the Advanced function palette. There are many things to be aware of. Like an int in C is a I16 in Labview and such. You cannot pass Labview strings into a C DLL without first converting the string into an array of bytes(U8). Clusters and C-structures don't quite match up, some things to learn here also. Go to the NI website and search for "DLL". You will see links to many white papers and such that can get you started.
I am assuming that RT has the same Call Library Function Node function call available as regular Labview.
If you are having problems, list your DLL parameters and I will try to match them up to Labview types.
03-22-2006 01:36 AM
03-22-2006 02:07 AM
How low-level? If you're thinking of calling Win32 API, you _might_ be able to since RT's OS, ETS, by Phar Lap does support a _sub_set_ of Win32 API.
-Khalid
PS: Why do you want to do this? I.e., what's the reason for not using VISA... just curious...
03-22-2006 02:19 AM
03-22-2006 09:52 AM
I am afraid I do not know if that'll work or not. The sure-shot way would be to test it out.
-Khalid
03-22-2006 10:01 AM
03-22-2006 10:03 AM - edited 03-22-2006 10:03 AM
Right, but the issue is whether this low-level DLL itself will work on RT.
-Khalid
Message Edited by Khalid on 03-22-2006 10:03 AM