VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

VeriStand

Dear All,

I have a problem with the connection of hardware between my cRIO-9068 and a model on Veristand.

I need to connect between the cRIO-9068 and a controller where a data will be sent from the cRIO RS232 to the controller RS232 and then the controller will send back a data to the cRIO ....

The based model that im working on is a simulink model which has been compiled into veristand model , im not sure if i have to make any configuration with respect to RS232 in the simulink model?

and also what configuration do i need to make at veristand if that possible?

Its a HILS application and the main problem is what  configuration must be done to communicate between the cRIO 9068 RS232 with the controller RS232 and how the connection will take a place in the veristand .

Regards,

0 Kudos
Message 1 of 3
(2,626 Views)

Hi Mohammad,

 

Below is our general guidance on importing these models

 

Using Models from The MathWorks, Inc. Simulink® Software
http://zone.ni.com/reference/en-XX/help/372846L-01/veristand/model_from_mdl/

 

Understanding How NI VeriStand Imports Models from The MathWorks, Inc. Simulink® Software
http://zone.ni.com/reference/en-XX/help/372846L-01/veristand/models_mdl_in_vs/

0 Kudos
Message 2 of 3
(2,588 Views)

MohammadOkour,

 

The 9068 is a powerful target - I have built some interesting HIL simulators with it myself. 

 

It sounds like you have a Simulink model to bring into VeriStand.   It also sounds like that's compiling.  You're doing well so far.  Make sure those inports and outports are in engineering units (force, meters, etc.) and not in implementation details (e.g., bits to go on a bus).

 

In VeriStand, each module is responsible for its own data translation.  So, a model exposes its channels as engineering units (e.g., speed) and then a hardware interface module will convert that to what is necessary to be written to hardware.  In this case, it sounds like you need a serial custom device.

 

The custom device should have inport channels in engineering units (e.g., speed) and then it will convert them into the correct messages (like RS232 commands).  It will then write them onto the bus.

 

Here's a few custom device resources:

If you are not comfortable making a custom device, I would suggest finding someone who can help you out.

 

Does that help?

0 Kudos
Message 3 of 3
(2,554 Views)