Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

o_t_data with wrong length #11

Open
dfvr1994 opened this issue Jan 27, 2025 · 0 comments
Open

o_t_data with wrong length #11

dfvr1994 opened this issue Jan 27, 2025 · 0 comments

Comments

@dfvr1994
Copy link

When setting up the communication variables like this:

##### OUTPUT ####
### Parameters for communication from Originator -> Target
eeipclient.o_t_instance_id = 100  # Output instance ID
eeipclient.o_t_length = 12  # Length of the Output data (adjust based on your assembly)
eeipclient.o_t_requested_packet_rate = 100000    # Requested Packet Interval (RPI) in microseconds (100ms)
eeipclient.o_t_realtime_format = RealTimeFormat.HEADER32BIT  # Real-time format  HEADER32BIT, HEARTBEAT, ZEROLENGTH, MODELESS
eeipclient.o_t_owner_redundant = False  # Not redundant
eeipclient.o_t_variable_length = True  # Variable length
eeipclient.o_t_connection_type = ConnectionType.POINT_TO_POINT  # Connection type NULL, MULTICAST, POINT_TO_POINT

##### INPUT ####
### Parameters for communication from Target -> Originator
eeipclient.t_o_instance_id = 110  # Input instance ID
eeipclient.t_o_length = 12  # Length of the Input data (adjust based on your assembly)
eeipclient.t_o_requested_packet_rate = 100000    # Requested Packet Interval (RPI) in microseconds (100ms)
eeipclient.t_o_realtime_format = RealTimeFormat.MODELESS  # Real-time format
eeipclient.t_o_owner_redundant = False  # Not redundant
eeipclient.t_o_variable_length = False  # Fixed length
eeipclient.t_o_connection_type = ConnectionType.POINT_TO_POINT  # Connection type

I am able to see by input as follows:

t_o_data = eeipclient.t_o_iodata
print('t_o input', len(t_o_data), type(t_o_data[0]), t_o_data)

giving:

t_o input 12 <class 'int'> [0, 0, 0, 0, 4, 0, 5, 0, 5, 0, 2, 0]

But when doing the same for the output:

o_t_data = eeipclient.o_t_iodata
print('o_t output', len(o_t_data), type(o_t_data[0]), o_t_data)

I obtain:
o_t output 256 <class 'int'> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

Which is 256 0s.

What am I missing? The assembly file for the module I'm trying to use is:

AXLFBKEIP_V110.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant