Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

HELP-How does made the simulink model run in the RT model

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     

Download All
0 Kudos
Message 11 of 16
(1,927 Views)

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

 

0 Kudos
Message 12 of 16
(1,921 Views)

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     

0 Kudos
Message 13 of 16
(1,905 Views)

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  

0 Kudos
Message 14 of 16
(1,902 Views)
Hi Vivian,
 
I am confused about whether you want to run the model in your Windows PC or in a Real-Time PXI.  Please go to Measurement and Automation Explorer (MAX), expand the remote systems tree and locate your PXI.  Expand your PXI tree and then expand the tree for Software.  Please get me a screenshot for the Software in your PXI. 
 
Let's review a bit the different scenarios where your model can executed.
1) You only have a Windows PC that has a PCI DAQ board.-  In this case your model DLL runs in your PC even though in the connection manager you select Real-Time target as your execution host. 
Real-Time cannot be a Windows PC because real-time needs a deterministic operating system like Pharlap ETS or VxWorks.  Said that, when you select Real-Time target in the connection manager LabVIEW SIT thinks that you are going to run your model DLL in a remote Real-Time PXI or cRIO, for example.  That is also the reason why it asks you for an IP Address.  If you type localhost for the IP Address then you are running the model in your local Windows PC and therefore the model is not running in Real-Time (even though the connection manager has Real-Time as execution host).  Since this is a bit confusing we added another target under the execution target list in later versions of SIT.
 
2) You have a Windows PC that you use for development but you also have a Real-Time PXI or cRIO that you want to use to run the simulation.  In this case, the Real-Time PXI or the cRIO will have the hardware (DAQ).
In this case you select Real-Time as your execution host in the Connection Manager but the IP Address is not localhost anymore but the IP address of your PXI or cRIO.
 
Which scenario is the one you have? Is it 1 or is it 2?
 
I have one more question for you.  Where are you located? I can try contacting your area representative and ask him/her to help you.
I'll wait for your answers. 
 
Ricardo
0 Kudos
Message 15 of 16
(1,897 Views)

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

0 Kudos
Message 16 of 16
(1,865 Views)