取消
显示结果 
搜索替代 
您的意思是: 

Array creation and usage - part 1

已解决!
转到解答

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 项奖励
1 条消息(共 16 条)
5,098 次查看

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 项奖励
2 条消息(共 16 条)
5,091 次查看

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 项奖励
3 条消息(共 16 条)
5,079 次查看
Thanks for the post. From where did you get the constant that you drag into the array?
0 项奖励
4 条消息(共 16 条)
5,063 次查看

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 项奖励
5 条消息(共 16 条)
5,059 次查看

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 项奖励
6 条消息(共 16 条)
5,041 次查看

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. 极度高兴的表情

0 项奖励
7 条消息(共 16 条)
5,035 次查看

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

0 项奖励
8 条消息(共 16 条)
5,030 次查看
解答
接受人 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.

9 条消息(共 16 条)
5,017 次查看

Andrey,

 

How do you create giffs?

0 项奖励
10 条消息(共 16 条)
4,988 次查看