LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW+Python problem

Hi all!
I have a problem with the LabVIEW + python combo.

I need to send a 2D array to python code, where is saved as Excell file.

When I tried only to send array and get back the datat with an extra text it was working, but the problem is with the saving to excell file.

error code is: 1672

Python Node in Untitled 1<APPEND>

Module Path: C:\Users\xxxxxxt\Desktop\Python test\Teszt string.py
Function Name: save_1d_array_to_excel

 

I tried a few things to solve the problem, but now I absolutely stucked.

THX for help

 

 

Download All
0 Kudos
Message 1 of 2
(628 Views)

Double-check your Python script (Teszt string.py) to ensure that it is correct and properly handles the 2D array data for saving it to an Excel file. Make sure the necessary libraries (such as openpyxl or xlwt for Excel file handling) are imported correctly. Ensure that your Python environment is properly set up and compatible with LabVIEW. Check the Python version and any required dependencies or modules. LabVIEW typically works well with Python 2.7 or 3.x versions. Review the implementation of the save_1d_array_to_excel function in your Python script. Make sure the function expects a 2D array as input and handles it correctly for saving to an Excel file. Check for any potential mistakes or issues in the function code. Add appropriate error handling and debugging statements to your Python code to catch any potential errors or exceptions. You can print intermediate values, use try-except blocks, or use logging modules to track the flow of execution and identify any specific issues.

0 Kudos
Message 2 of 2
(597 Views)