01-02-2006 04:43 PM
01-04-2006
01:19 AM
- last edited on
06-24-2025
06:26 PM
by
Content Cleaner
Aaron, it is possible -- but I'm not sure what may be causing the error, assuming you have correctly installed the LabVIEW Real-Time Module for RTX according to the installation instructions. If you haven't already, definitely install RTX 6.1. RTX 6.1 provides support for Windows XP SP2. There are several other Knowledge Base entries dealing with RTX which you may want to take a look at (simply type in RTX in the ni.com search field) but none that seemed directly related to your issue
The real-time architecture using RTX is basically the same as ETS -- the display or front panel VI will run in Windows, while the time-critical VI will run on RTX. You can target RTX in LabVIEW much like you target a Real-Time ETS target.
Hope this helps.
01-04-2006 09:04 PM
01-12-2006 09:14 PM
01-13-2006
10:45 AM
- last edited on
06-24-2025
06:26 PM
by
Content Cleaner
No, I haven't yet figured it out and I've run into additional issues. I've also started a ticket with the phone support, but they have also not been able to find a solution yet. I found a DLL Checker that I used to test the different DLLs I built. The real DLL I built uses NI's Hardware DDK, but unfortunately it says that many of the calls/imports rtapi_w32.dll are bad. So I've also been trying to figure out if I can't use a DLL that involves NI's Hardware DDK in Labview Real-time RTX module.
Back to the original problem. Here is the test code:
int __cdecl main(int argc, char **argv)
{
//SuspendThread( GetCurrentThread());
return 1;
}
__declspec(dllexport) long int __stdcall InitTask(float sampleRate)
{
return 5;
}
__declspec(dllexport) long int __stdcall ReadWrite(unsigned short channels,
short start, short stop, short halt, short status[])
{
return 10;
}
__declspec(dllexport) void __stdcall EndTask(double outZero)
{
return;
}
I've also attached the compiled DLL, which checks out in the DLL Checker program linked above, and the test VI. Maybe someone here can find the problem or offer an alternitive. I'm also very interested in finding out if the DDK-based DLL should be compatible with Labview RTX. Thanks for everyone's time and help.
Aaron
01-13-2006 03:45 PM
01-17-2006 09:41 PM - edited 01-17-2006 09:41 PM
Message Edited by Doug M on 01-17-2006 09:43 PM
01-18-2006 02:19 PM
01-19-2006 09:14 AM
01-19-2006 01:03 PM