04-19-2018 03:26 AM
Hi All,
I am trying to run my stimulus profile through IronPython script but I am not able to do so can any one tell me where I am lagging ? Here below is my code:
import NIVeriStand
import clr
clr.AddReference("NationalInstruments.VeriStand, Version=2017.0.0.0, Culture=neutral, PublicKeyToken=a6d690c380daa308")
clr.AddReference("NationalInstruments.VeriStand.ClientAPI, Version=2017.0.0.0, Culture=neutral, PublicKeyToken=a6d690c380daa308")
import NationalInstruments.VeriStand.ClientAPI
from NationalInstruments.VeriStand.ClientAPI import Factory
Method1: directly from API
factory = NationalInstruments.VeriStand.ClientAPI.Factory()
stimulus = factory.GetIStimulus()
stimulus.RunStimulusProfile(r"C:\Users\Public\Documents\National Instruments\NI VeriStand 2017\Projects\Digital\digital.nivsstimprof", r"C:\Users\Public\Documents\National Instruments\NI VeriStand 2017\Projects\Digital\logs", 60000,1,1)
Method two from NIVeriStand.py
stimulus = NIVeriStand.Stimulus()
stimulus.RunStimulusProfile(r"C:\Users\Public\Documents\National Instruments\NI VeriStand 2017\Projects\Digital\digital.nivsstimprof", r"C:\Users\Public\Documents\National Instruments\NI VeriStand 2017\Projects\Digital\logs", 60000,1,1)
when I execute above code I am getting below error I am not sure how to get rid of it. Can any 1 help me on this ????
error:
NIVeriStand.NIVeriStandException: Consult NI VeriStand help for error code 0xfffb4d37 error message
04-19-2018 08:03 AM
Hi All,
I am trying to run my stimulus profile through IronPython script but I am not able to do so can any one tell me where I am lagging ? I am using VeriStand 2017
Here below is my code:
import clr
clr.AddReference("NationalInstruments.VeriStand, Version=2017.0.0.0, Culture=neutral, PublicKeyToken=a6d690c380daa308")
clr.AddReference("NationalInstruments.VeriStand.ClientAPI, Version=2017.0.0.0, Culture=neutral, PublicKeyToken=a6d690c380daa308")
import NationalInstruments.VeriStand.ClientAPI
from NationalInstruments.VeriStand.ClientAPI import Factory
factory = NationalInstruments.VeriStand.ClientAPI.Factory()
stimulus = factory.GetIStimulus2("localhost")
stimulus.RunStimulusProfile(r"C:\Users\Public\Documents\National Instruments\NI VeriStand 2017\Projects\Digital\digital.nivsstimprof", r"C:\Users\Public\Documents\National Instruments\NI VeriStand 2017\Projects\Digital\logs", 60000,1,1,"")
when I execute above code I am getting below error I am not sure how to get rid of it. Can any 1 help me on this ????
error:
NIVeriStand.NIVeriStandException: Consult NI VeriStand help for error code 0xfffb4d37 error message
06-06-2023 06:58 AM
Hello, I have encountered the same problem as you recently. May I ask if your problem has been resolved and how it was resolved