04-29-2008 08:17 PM
Hi Ricardo
Thank you for your reply, and I am sorry for forgetting to send the accessories. I think I have installed the Real Time System, because I can find it in the Tools of Labview panel. My ultimate aim is send the switch signal to hardwire to achieve communication with outside hardwire. But I find that when it runs on Windows PC, it can not connect to hardwire.
Because this target is my graduate project, and the time has gone. So I am very vexatious about it. I do not know if I express my target distinctly. Look forward t your reply.
Thanks and Regards
Vivian
04-30-2008 10:27 AM
Hi Vivian,
Do you have a Real-Time computer? By Real-Time computer I mean a computer or controller that doesn't have Windows OS installed but Pharlap ETS or VxWorks. This can be an RT PXI or cFP or cRIO controller. It can also be a PC but only if you have uninstalled Windows and have Pharlap running on it.
Where do you want to run the model DLL? Do you want to run it in your PC or in the Real-Time computer?
What hardware do you have?
Is that hardware plugged in to your PC or to your Real-Time computer?
Remember that in the SIT Connection Manager the target execution host defines where you want to run the model. Since you already have built a model DLL, the two options you have here is to run the DLL in a remote RT computer or locally in your non RT (Windows) PC. For both scenarios you need to select Real-Time Target as your execution host. What will define whether you run it in a remote RT computer or in your local Windows PC is the IP Address. If you want to run the model DLL into a remote RT computer then you want to type the IP Address of that computer in the IP Address box. If you want to run the model DLL locally in your Windows PC, then you write localhost in the IP Address box.
NOTE: Leave the port 6011 as default.
Before we go any further please try running one of the shipping example. Go to: C:\Program Files\National Instruments\LabVIEW 8.5\examples\Simulation Interface\Sine Wave folder. Try running the Sine Wave model. Try mapping the Sine Wave model's inports and outports to hardware. For that, open the SIT Connection Manager, if it is not opened already, and click the Hardware I/O tab. For instructions on how to map the inports and outports to the hardware go to your SIT help and under Creating a Driver VI you can select the right steps according to the hardware you have.
Ricardo
05-05-2008 02:23 AM
Hi Ricardo
Thank you for your reply, and I am sorry for forgetting to send the accessories. I think I have installed the Real Time System, because I can find it in the Tools of Labview panel. My ultimate aim is send the switch signal to hardwire to achieve communication with outside hardwire. But I find that when it runs on Windows PC, it can not connect to hardwire.
Because this target is my graduate project, and the time has gone. So I am very vexatious about it. I do not know if I express my target distinctly. Look forward t your reply.
Thanks and Regards
Vivian
05-05-2008 03:18 AM
Hi Ricardo
Thank you for your help. What you mean is that running the DLL file on RT system must be on another computer if I understand it correctly. I have only a PC, and hardwire is PXI series. The purpose of my target is that connecting the simulink model to Labview and send the signal by I/O to the outside hardwire.
I have installed Real-Time software medal which is compatible with Windows 2000/XP, and I can find it in the tools of Labview front panel. What I confused is that if I want to send the signal to hardwire and it can be received by outside hardwire, the DLL file must be run on RT system, is that right?
Regards
Vivian
05-05-2008 10:08 AM
05-07-2008 08:32 PM
Hi Ricardo
I have check that I must install a PC as RT system. But I do not which one is the crew.
Regards
Vivian