07-28-2006 08:10 AM - edited 07-28-2006 08:10 AM
We are using RealSim with an AC104 target system, and I have successfully integrated RealSim 7.01 with MatrixX 7.1.6 (yes, it can be done with some modifications in the RealSim installation). This works well under Windows NT, but I cannot get it to run properly under WinXP. All the host functions work OK, but the application Download and Run command results in the following error message:
REALSIMGUI-I-RTMAIN, Executing rtmain as a background process
RTMAIN-I-CONNECTRY testing FTP link with ac104 ... successful.
RTMAIN-E-NOPORT No FTP ports are available to connect with ac104.
An RTMAIN session may be running an application on ac104.
On the AC104 target system, the FTP-program writes the error message "File creation error" on the screen. However, we are able to set up an FTP session to the AC104 computer from a command window in the XP computer, and that works OK.
We have traced the error cause to the following command in the RTMAIN.BAT script in the C:\matrixx\rs_70.1\bin folder:
print FTPFILE "quote site cpcprj $projname8 > %%temp%%${psep}temp.$temp_ext\n";
This FTP command creates a temporary file in the target system. The existence of this file is then checked with the command
print FTPFILE "get %temp%${psep}temp.$temp_ext $chkdir\n";
and after that check the temporary file is deleted on the target system. If the file doesn't exist, FTP hasn't created it. This means FTP on the controller is dedicated to an existing RealSim IASVR process, hence the error message. But this is not the case, instead it is the file creation that fails when done from an XP computer. But when the same RTMAIN.BAT script is run on an NT machine, everything works fine.
Does anyone have an idea what could be wrong???
Best regards
Anders Wallenborg
Message Edited by Anders W on 07-28-2006 08:11 AM
03-01-2007 04:37 AM
The problem now appears to be solved by doing a global replace of "%%" with "%" in the script file RTMAIN.BAT in the C:\matrixx\rs_70.1\bin folder. I am now able to Download and Run the RealSim application from my XP computer to the AC104 target.
Many thanks to Carl Ljungholm at LabView R&D, National Instruments, for suggesting this fix!