VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to start Stimulus profile with IronPython

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

0 Kudos
Message 1 of 3
(2,835 Views)

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

0 Kudos
Message 2 of 3
(2,813 Views)

Hello, I have encountered the same problem as you recently. May I ask if your problem has been resolved and how it was resolved

0 Kudos
Message 3 of 3
(1,013 Views)