02-17-2020 11:45 AM
Hi there !
How can I use a python module like numpy within Labview ?
The anaconda distribution allows to build a python3.6 environment with all the required modules.
The following code will fail as soon as the line "import numpy ..." is inserted
Spyder does execute this line without error though.
What is wrong ?
import math
import numpy as np
def Add3(a, b, c):
return (a+b)+c;
The error is :
Function Name: Add3
Python returned the following error: <class 'ModuleNotFoundError'>
No module named 'numpy'
02-18-2020 07:08 AM
I actually used python to get around purchasing labview. Either way you may want to check out this site. It contain modules to let python read NI drivers. I run FFTs with strain gauge data and print the results to the console window in my case PS. This can also be done using C. That documentation comes with the NI drivers.
04-13-2020 02:14 PM
Hi,
did you ever figure this out? I'm having the same issue. none of the modules are installed and, therefore, my python code won't run.
Thanks
04-23-2020 12:50 PM
try running python from 'cmd' shell.
see if you can 'import numpy' from that simple interpreter prompt
If yes, default labview call python .vi (sorry, don't remember name) should be able to do so also.
if not, you need to setup your PYTHONPATH env variable correctly so that you can.
08-25-2021 05:43 AM
Hello everyone
First of all I'm sorry for using this already opened topic but I was avoiding to create a new one and my issue is related with the use of nidaqmx package in python, so I think it's not very far from the subjects being discussed in here.
I'm a newbie in python (and in labview, btw) but I have a project which involves the acquisition of 6 AI signals through a NI-USB-6009 hardware (infrared spectrometer). The labview programming is working but, since I need to run another piece of software downstream the acquisition path, I'm trying to program the data acquisition in python (in google colab and/or spyder) using the packages provided by NI. In colab, I followed the advised path ('