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: 

Ni VeriStand Python

Solved!
Go to solution

Currently in the process of understanding and going through the steps to understand the NI VeriStand python interface documentation. niverstand was successfully downloaded to the computer and we used the python -m pip install niveristand to verify and it was saying but it is still not being recognized. We are also receiving an error among the site package module that we have obtained from the ni github site for the niverstand python add on. I have attached  the screenshot of the error message we have received in the command prompt. Please let us know what can be done to correct this error. 

 

Shakeidra G. 

0 Kudos
Message 1 of 18
(4,644 Views)

Thanks for posting in the forums!

Just to confirm you are using the driver from this site:  https://github.com/NIVeriStandAdd-Ons/cPython-Interface-for-NI-VeriStand 

 

I know you mentioned using the -m pip method to install. Is it possible to use one of the other methods and are you still seeing the same results:  
http://niveristand-python.readthedocs.io/en/latest/

 

Have you tried running any of the examples like the one at the bottom of this forum: https://forums.ni.com/t5/NI-VeriStand/Ni-VeriStand-Automation-from-Python-C-C/td-p/3329504 

0 Kudos
Message 2 of 18
(4,606 Views)

Hello Maura,

Thanks for your response. There is an error when I open up the 1st and 3rd links. But we did try out all three methods. It says that it is installed but there is an error somewhere within the add on package for the niveristand python 

 

0 Kudos
Message 3 of 18
(4,591 Views)

Hi sgray90

 

Sorry about the links, I found if you highlight them and then right click there is an option to "go to" and this seems to open them. One thing that I am curious about trying is this example: https://forums.ni.com/t5/NI-VeriStand-Add-Ons-Documents/Example-Python-Scripts-for-ASAM-XIL-API/ta-p...

 

In it there are a couple of extra steps to implement the code and I think those might help with the error that we are seeing. 

0 Kudos
Message 4 of 18
(4,584 Views)

Hey Maura,

 

My best guess is that sgray90 is using the new Python Interface API that was released for VeriStand 2018. Is that correct sgray90?

 

You can find the documentation here

 

 

Thanks,

 

Andy

Product Support Engineer

0 Kudos
Message 5 of 18
(4,575 Views)

Hi Andy, 

I have the documentation but my issue was that I was receiving an error message within the command prompt about an error within the package download where I could not open any scripts. 

0 Kudos
Message 6 of 18
(4,570 Views)

I will give it a try and let you know the outcome. Thanks Maura!!!

0 Kudos
Message 7 of 18
(4,569 Views)

Hi sgray90,

 

Thanks for reporting this bug! We've uploaded a fix for the problem, and you can get it by running:

 

python -m pip install --upgrade niveristand

I think this will fix your problems. You can also report bugs with this package in the github issues page.

 

Message 8 of 18
(4,552 Views)

 Thanks so much Mercelo! I will try it out this morning and keep you posted!

0 Kudos
Message 9 of 18
(4,547 Views)

Hey Marcelo, I am still having a little issue maybe you can take a look at the screenshot of my command prompt and tell me where I may have went wrong? 

 

Thanks

0 Kudos
Message 10 of 18
(4,531 Views)