certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-dev] ForwardSim HLA Blockset: data coding


From: REGUEIRO Jon
Subject: [certi-dev] ForwardSim HLA Blockset: data coding
Date: Wed, 18 Jul 2012 15:08:19 +0200
User-agent: Roundcube ISAE Webmail/0.7.1

Hi,

I don't know if someone has worked on this before but I will try...

I have just begun to work with HLA Blockset for Simulink, a commercial product developed by ForwardSim. There are two federates. The federate in Simulink is updating 5 attributes that the federate in Linux is subscribed to.

This Simulink model uses a block called "encode" to convert double variables to values usable by RTI. The following data types can be chosen:

-------------
HLAoctet
HLAbyte
HLAoctetPairBE
HLAinteger16BE
HLAinteger32BE
HLAinteger64BE
HLAfloat32BE
HLAfloat64BE
HLAoctetPairLE
HLAinteger16LE
HLAinteger32LE
HLAinteger64LE
HLAfloat32LE
HLAfloat64LE
--------------

The federate written in C++ uses the class called "MessageBuffer" to manage data. I am using the function called "read_double()" [without s] to read the buffer, but it gives an error and stops the execution.

Both machines are little endian, so I have been coding data to "HLAfloat64LE". I have tried with different combinations but I still have not found my mistake.


Than you in advance!
Jon Regueiro




reply via email to

[Prev in Thread] Current Thread [Next in Thread]