I am trying to programmatically deploy a stimulus profile using a .csv file as the sequence file. I am using the code below.
from niveristand.clientapi import _factory, _sequencecallinfo
profile_path = r"C:\Users\mjacobso\Desktop\SCM\ADG-Examples\HIL\.code\Sequence_From_CSV\VeriStand\demo_profile.csv"
parameters = []
sequence = _sequencecallinfo._SequenceCallInfoFactory.create(profile_path,"Controller", parameters, False, 10000)
sequences = [sequence]
vs_factory = _factory._Factory()
stimulus_session = vs_factory.get_new_stimulus_profile_session("localhost", "TestSession", sequences, "")
stimulus_session.deploy(True)
Running the code above I get the following exception on stimulus_session.deploy(True) but see the stimulus profile execute as expected in VeriStand.
Exception has occurred: ValueError
not enough values to unpack (expected 3, got 2)
File "C:\Users\mjacobso\Desktop\SCM\ADG-Examples\HIL\.code\Sequence_From_CSV\Python\Run_Stimulus_Profile.py", line 13, in <module>
stimulus_session.deploy(True)
I can resolve this error by editing line 55 of _stimuluspfofilesession.py from
ret_val, session_id, err = self._dot_net_instance.Deploy(auto_start, None, None)
To
session_id, err = self._dot_net_instance.Deploy(auto_start, None, None)