Errors adding events using the NetStation function

All – I am using the NetStation functions to control and send events to NetStation for recording concurrent EEG. The specific problem has to do with sending trial-specific information (e.g., trial number, RT, accuracy, etc.). The statement I’m using is

NetStation(‘Event’, ‘1003’, t1, t2, ‘sessn’, int2str(sessn), ‘blok’, int2str(block), ‘tril’, int2str(trial), …
‘ttyp’, ‘2’, ‘olne’, int2str(trial_parms(1)), …
‘race’, int2str(trial_parms(2)), ‘sex’, int2str(trial_parms(3)), …
‘inst’,int2str(trial_parms(4)), …
‘acc’, int2str(trial_acc), ‘rt’, int2str(trial_rt));

This generates a statement in the ECI events log (in NetStation)

Failure to add event 1003.

My other calls to send events work fine, e.g.,

NetStation(‘Event’, ‘1002’); % mark the end of the trial

Has anyone else had this problem? Is there something wrong with the way I’m calling the NetStation function (I’ve used this before without having this problem)? Is there a recommended solution?

I’m running NetStation Acquisition version 5.4.2.
I’m running PTB3 version 3.0.19 under Matlab R2023b on a Mac Mini (2018), with the OS being Ventura 13.6.9.

Please let me know if you have any suggestions or need any additional information, and my thanks in advance for any that can be provided.