06-08-2023 03:13 PM
Hello,
I want to read CSV file and plot it using Python.
How can I read CSV file and use it as Python node input?
like this csv file
How can I read it and use X, Y values as input to Python node?
Thanks
Solved! Go to Solution.
06-08-2023 03:28 PM - edited 06-08-2023 03:29 PM
wzh0053@auburn.edu wrote:
Hello,
I want to read CSV file and plot it using Python.
How can I read CSV file and use it as Python node input?
like this csv file
How can I read it and use X, Y values as input to Python node?
Thanks
That's 3 pythons in 1 request. Why not just use python? pandas.read_csv()
https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html
then use the plot() method
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html
Wow, look at that, no Labview involved.
06-08-2023 03:31 PM
Hello,
Yeah I know how to do it with Python.
I am just trying to learn how to use LabView and integrate with python..
06-08-2023 03:32 PM
wzh0053@auburn.edu wrote:
Hello,
Yeah I know how to do it with Python.
I am just trying to learn how to use LabView and integrate with python..
ok I see, you need to use a python node, have you tried that?
06-08-2023 03:35 PM
Yes I am trying to use the python node.
As far as I know, I can read the csv file using this Read Delimited. However, I don't know how I can use its output to use as input to Python node. Sorry, I am a very newbie to Labview..
06-08-2023 03:48 PM
wzh0053@auburn.edu wrote:
Yes I am trying to use the python node.
As far as I know, I can read the csv file using this Read Delimited. However, I don't know how I can use its output to use as input to Python node. Sorry, I am a very newbie to Labview..
Try something like this, you will need to add some things to this, like your paths, to make it work but its a starting point