Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

CIN real time

Hi @ all!

I am developing a real-time application on a PXI (Labview 8.2, Win 2000) that requires the use of  external code. I researched the topic on the NI website and eventually found that it is possible to implement C-code with CINs and dlls.
To start I wanted to program an example that just adds two numbers and gives you the result. I wrote the program in C using the CIN.
I compiled the c-code to a lsb-file using LabWindowsCVI 8.0 as it was described on the NI-website. The did run well on the host machine, but didn't run on the target (real-time) machine. (while deploying it says "The VI is not in memory") Programs without a CIN run on the real time machine
After some reading on the NI-website I discovered a program called "DLL Checker 8.2" which determines if a dll contains any win-api commands that aren't executable on the real-time system. The check said the dll was ok and prepared for real time.

Right now I am stuck and I don't know where to search for errors or I don't know if it is possible make this code work on a real time machine.

Do you have an idea why even such a simple CIN doesn't run on the real-time target?
Do you have a simple C-CIN example (Labview 8.2) that runs on your real-time machine that you could send me just to determine that it is theoretically working ?

I am really looking to your answers.

Best regards,
Mike

PXI 1011, NI8175
0 Kudos
Message 1 of 2
(3,155 Views)
You can use a CIN on a Real-Time target, but the RTOS on the real-time processor does not support the entire Windows API.  The most commonly used functions are included, but if your C code is making function calls that are not included in the Win32 subset that the RTOS has, then the code will fail.
 
Assuming that the functions that you are using are included in the Win32 subset, you should be able to run this code on the target.  I have attached a simple program below that manipulates a string.  Please try running the VI on your Real-Time target.  If you are able to run the VI successfully, then look back at your program.  If not, then we will need to look further into the issue. 
 
Regards,
 
Elizabeth S.
Applications Engineer
National Instruments 
 
 
 
0 Kudos
Message 2 of 2
(3,139 Views)