キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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
4,752件の閲覧回数

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
4,745件の閲覧回数

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
4,733件の閲覧回数
Thanks for the post. From where did you get the constant that you drag into the array?
0 件の賞賛
メッセージ4/16
4,717件の閲覧回数

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
4,713件の閲覧回数

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
4,695件の閲覧回数

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
4,689件の閲覧回数

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

0 件の賞賛
メッセージ8/16
4,684件の閲覧回数
解決策
トピック作成者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
4,671件の閲覧回数

Andrey,

 

How do you create giffs?

0 件の賞賛
メッセージ10/16
4,642件の閲覧回数