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

ValueError Exception when deploying .CSV as RT Sequence. #50

Open
jacobson3 opened this issue Oct 4, 2022 · 0 comments
Open

ValueError Exception when deploying .CSV as RT Sequence. #50

jacobson3 opened this issue Oct 4, 2022 · 0 comments

Comments

@jacobson3
Copy link

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)
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