LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array creation and usage - part 1

Solved!
Go to solution

y have no trouble with arrays in C, etc but creating LabVIEW arrays bedevils me. Unfortunately, the CORE I course array labs start out with an array already in place so it is not much help either. For instance in the attachment I have a simple for loop generating a series of numbers that I want to put in an array. I place an array on the block diagram and its type is void and I can't find a good way to change it. The course manual says to drag an object into the array on the front panel. So how does one drag an integer into an array?

 

 

thanks,

 

jvh 

0 Kudos
Message 1 of 16
(4,431 Views)

You may have forgotten to attach the VI that you mention in your post.

 

You can drag an object into the array pretty much the way it says - but you need to do it on the front panel if you're creating a control or indicator.  Put the array on your front panel.  Put a numeric control or indicator on the front panel.  Then drag the numeric control into the array.  You can do exactly the same thing on the block diagram to create an array constant.

Message Edited by nathand on 01-29-2010 08:14 AM
0 Kudos
Message 2 of 16
(4,424 Views)

jvh75021 wrote:

... I place an array on the block diagram and its type is void and I can't find a good way to change it. ...


dragdrop.png

Just put contans with desired type then Drag and Drop.

 

Andrey.

 

0 Kudos
Message 3 of 16
(4,412 Views)
Thanks for the post. From where did you get the constant that you drag into the array?
0 Kudos
Message 4 of 16
(4,396 Views)
From the Numeric palette. Have you gone through the LabVIEW tutorials? To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
0 Kudos
Message 5 of 16
(4,392 Views)

Thanks for the help.

 

Yes, I have looked at some tutorials, perhaps not all. I also attended Core I & II classes but the other 8 people there had several months experience. I had never seen labView before so the pace of the class left me in the dust. Thank you for pointing out the pallet but there are a great many things on the pallets so please don't expect us slowpokes to remember or know where they all are.

 

jvh 

0 Kudos
Message 6 of 16
(4,374 Views)

jvh75021 wrote:

Thanks for the help.

 

Yes, I have looked at some tutorials, perhaps not all. I also attended Core I & II classes but the other 8 people there had several months experience. I had never seen labView before so the pace of the class left me in the dust. Thank you for pointing out the pallet but there are a great many things on the pallets so please don't expect us slowpokes to remember or know where they all are.

 

jvh 


OK. As long as you don't expect us long-time users to know where they all are either, because we don't. Smiley Very Happy

0 Kudos
Message 7 of 16
(4,368 Views)

If you know the name of the object you want, you don't have to search the palettes at all.  😉

0 Kudos
Message 8 of 16
(4,363 Views)
Solution
Accepted by topic author jvh75021

jvh75021 wrote:
Thanks for the post. From where did you get the constant that you drag into the array?

 

I'll try to help in such form:

Array.gif

 

 


Darren wrote:

If you know the name of the object you want, you don't have to search the palettes at all.  😉


Unbelievable that NI uses YouTube for video hosting, because blocked by our corporate firewall.

 

Andrey.

Message 9 of 16
(4,350 Views)

Andrey,

 

How do you create giffs?

0 Kudos
Message 10 of 16
(4,321 Views)