From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,756 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,734 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
(934 Views)