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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CSV file between Python and Labview

Hi all, may I know is there any method to solve this issue ? 
My project is object sorting. 

Object coordinates obtained from Labview and stored in CSV file. 
Python reads the values from CSV file and proceeds with robot sorting. 

My issue is about I would like to check whether is there any object on the workspace 1st before proceeding to object sorting. 

If there's no object, then it will keep overwriting the CSV file until object is detected. 

If there's one object coordinates obtained, it will proceed sorting. 

I did face another issue is if 2 objects are detected with 2 sets of coordinates, the python node will shut down directly. 

May i know how to set the condition like after the 1st object is sorted, then will proceed to 2nd object ? 

Download All
0 Kudos
Message 1 of 4
(2,211 Views)

Is the code returning any error when the Python node is shutting down?

0 Kudos
Message 2 of 4
(2,100 Views)

Yes. 
When the python code is not running, there's error from LabVIEW.

0 Kudos
Message 3 of 4
(2,081 Views)

Can you share with us the details of the error?

Also, a screenshot can be helpful too!

0 Kudos
Message 4 of 4
(2,072 Views)