‎01-29-2010 06:51 AM
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
Solved! Go to Solution.
‎01-29-2010 07:13 AM - edited ‎01-29-2010 07:14 AM
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.
‎01-29-2010 07:33 AM
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. ...
Just put contans with desired type then Drag and Drop.
Andrey.
‎01-29-2010 09:19 AM
‎01-29-2010 09:22 AM
‎01-29-2010 10:28 AM
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
‎01-29-2010 10:32 AM
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.
‎01-29-2010 10:40 AM
If you know the name of the object you want, you don't have to search the palettes at all. 😉
‎01-29-2010 10:50 AM
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:
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.
‎01-30-2010 03:22 AM
Andrey,
How do you create giffs?