LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with this VI

Solved!
Go to solution

Hi student,

 

you should resolve the Front Panel errors!

 

The error is pretty clear: you created arrays but you did not define their datatype ("no elements and is undefined"). Define them!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 27
(1,706 Views)

I put numeric indicators in each of those arrays, but im getting weird errors now.

0 Kudos
Message 12 of 27
(1,703 Views)

okay so i did that but now i have like invisible numbers but somehow max and min numbers are being picked up?

 

1.png2.png

 

 

0 Kudos
Message 13 of 27
(1,698 Views)

I see what happened. There is controls in the array I put in as the input to the bundle. I change them to indicators but I get errors.

0 Kudos
Message 14 of 27
(1,691 Views)
Solution
Accepted by topic author student11

Hi,

 

where do you actually write data into those arrays? Right now you calculate MinMax from your generated data, but you throw the data away.

 

You need to write your random data into the array in the cluster. (THINK DATAFLOW!)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 27
(1,687 Views)

I got it. I cleaned it up and put the data flowing to the array as indicator and making that data go in to the bundle again which goes to the output cluster.

 

Thank you so much.

 

This class is a pain for me because I am spending most of my time in a 2 credit hour class, when I should be concentrating on my engineering classes (I'm a junior, done with general classes). I am a civil engineering major and lab view is not required, but I don't mind learning it as long as it is taught well. I am very angry at the fact that this class is unorganized and it is a pain for me.

 

We also have a project with the lego ev3 and we have to program it through labview. They did not teach us jack and expect us to go through hours of tutorials online to learn how to do it.

 

Is there a good solution to doing this rather than spending hours on this. I need to find a better solution to this. Any help is appreciated. If anyone knows a similar class doing this same stuff that posts their lectures online, I will appreciate that.

0 Kudos
Message 16 of 27
(1,677 Views)

How did you attach the array in output cluster?

 

i am studying this...but when i did that, cluster changed indicator to control...

 

if you don't mind, can i get the file?

0 Kudos
Message 17 of 27
(1,626 Views)

"kim123" Are you a petroleum engineering major, if so there's a good chance I know who you are.

 

I think this picture will solve the problem.  Make sure you know how to turn things into indicators, etc. I suggest creating the output cluster in the block diagram, by right clicking on the bundle and making a cluster constant. 66.png

 

55.png

0 Kudos
Message 18 of 27
(1,598 Views)

lmao is this for Engineering 11? I feel ya buddy, the class sucks

0 Kudos
Message 19 of 27
(1,597 Views)

Aggravating stereotype I feel is circulating the industry these days is that because LabVIEW is technically "VISUAL" that it's obviously much easier to program in.  I worked with a couple techs who were under this impression and spent many an hour going through the book and doing exercises and not a drop of it sticking.  The mantra of..."I can put a 2 here and a 5 here and put this addition symbol here and get a 7 when I push the run button....yep programming is easy" is beginning to annoy me.  Sorry you have to deal with that in a class.  Civils really shouldn't be bothering themselves with LabVIEW unless you took a basic programming class at somepoint in your life....and understood it.  DailyDose of ranting right there.

0 Kudos
Message 20 of 27
(1,594 Views)