LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using header files with call library node

I am writing an application for Palm PDA, and I use call library node to insert some C code written in Codewarrior 9 for PalmOS.
For some reason, when I build the program for the Palm the builder does not recognise the functions declared in my header files.
Please help me with this problem and tell me how do I create a header file in Codewarrior so the builder can include it in the Palm application!!!
0 Kudos
Message 1 of 7
(3,878 Views)
Hi Roman -

You might want to take a look at the following KnowledgeBase:  How To Call External Code in LabVIEW PDA for Palm OS.  It describes how to call external code in my LabVIEW application for the Palm OS using the Call Library Function Node.  The program retrieves battery life information for the device. You can follow the same basic model of this example to perform other calls to external code.

To build the code for PDA, three files are needed: a LabVIEW VI, a Windows stub dll, and a .c or .lib file containing the code for the Palm OS.You must create a normal Windows stub DLL to use the Call Library Function Node. The stub DLL needs only the proper function declaration, as the code that the PDA VI uses is from the .c or .lib file you include in the "Build PDA Application" dialog box.  The Visual Studio 6.0 project for the stub DLL and the Metroworks Code Warrior project for the Palm OS code are included.

The program was originally developed for LabVIEW  7.1 PDA module.  If you  need help using it with LabVIEW 8.0 PDA module, please let me know.


Mark Walters
Application Engineer
National Instruments
0 Kudos
Message 2 of 7
(3,857 Views)

Mark, thak you for the answer.

My problem is not adding C code to the Vi. It is that the LabView builder does not recognize functions declared in header files included in the C files I add to the Vi. What I would like to know is how to make LabView recognize these functions.

Thanks Again,

Roman.

 

0 Kudos
Message 3 of 7
(3,845 Views)
What method are you using to call these external C functions? Have they been compiled into a DLL? How did you add the C files to the VI exaclty?

Jarrod S.
National Instruments
0 Kudos
Message 4 of 7
(3,837 Views)
I used the Call Library node function and have created a stub dll for the C file. The C file calls the functions using #include.
0 Kudos
Message 5 of 7
(3,828 Views)
Hello
 
Can anyone help me out?  I am trying to use a chart with a Sliding Region of intrest function. 
 
I would like to be able to zoom in on the RIO and have the ability to zoom back out.
 
I would also like to be able to set the initial mid point setting of the RIO slider.  The original file was using the delta T (psec) control to do this.
I have only been experiementing with this number to see what value works.  If someone could explain what is going on with that control it would help.
 
I noticed that when I move the RIO slider to the left all the way the value goes negative, I am not sure if the program stops reading the value
at zero or not.....
 
When you run  the select RIO Rev 4 vi set the DATA COL to PLOT to 1 to see the correct data
 
Thanks in advacne
Tim C.
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 6 of 7
(3,718 Views)
Duplicate post.
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 7 of 7
(3,705 Views)