ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help! python with labview

Hello,

I am trying to solve this multiplication. but it gives me an error.

How could I fix this?

 

Thanks

wzh0053auburnedu_0-1686001793736.png

wzh0053auburnedu_1-1686001831298.png

 

wzh0053auburnedu_2-1686001840335.png

 

 

0 Kudos
Message 1 of 4
(1,284 Views)

This looks more like a Python problem, not a LabVIEW problem. Does your code work in Python? You didn't attach code so we can't debug anything.

 

numpy.array([a scalar]) returns a zero-dimensional array, so iterating over len(time_array) doesn't make sense.

Message 2 of 4
(1,266 Views)

The problem is probably in the global time_diff_array. Put it inside the function.

0 Kudos
Message 3 of 4
(1,213 Views)

Thank you!

0 Kudos
Message 4 of 4
(1,200 Views)