From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

Tensorflow Python Node breaks after weights load

Go to solution

Hello everyone,

I'm trying to run python node in LabView, but script return error 1672. 

With script everything ok, but LabView have some problems.



0 Kudos
Message 1 of 11

Hello, NoKot333. Do you use any Numpy functions?

0 Kudos
Message 2 of 11

What is your LabVIEW version? 

0 Kudos
Message 3 of 11
0 Kudos
Message 4 of 11
Accepted by topic author NoKot333

@Vazgen_H wrote:

Hello, NoKot333. Do you use any Numpy functions?

I can confirm, I have seen error 1672 when returning a numpy array which is generated by the python script


in the following, I write a 2d buffer to the python node, extract the first column of this 2d buffer, convert this column vector to a numpy array and return as 1d array of doubles "y".



import numpy as np
def return_cm(data):

    y = data[:, 0]
    X = data[:, 1:]

    y = np.array(y)
    return y




the length of the y-vector can be manipulated by choosing a different number of rows, in the following screenshot 1000:




Error 1672 does halt the .vi, when the numbers of rows in this vector is bigger ~ 10.000 , but will work corretly if less e.g. 1000



0 Kudos
Message 5 of 11

There are some Numpy functions, which are not supported by LabVIEW.

0 Kudos
Message 6 of 11

Hello again. Can you send me kwhFinal.h5 for testing code on my PC? 

0 Kudos
Message 7 of 11


0 Kudos
Message 8 of 11

21.0.1 (64-bit)

0 Kudos
Message 9 of 11