Code Comments
Programming Forum and web based access to our favorite programming groups.Hye guys, I'm a newbie in LabView and i've been trying lots of exercices and read ing help(in french, but french is not my mother tougue) but i'm st ill having some problem (there might be a lot of 'em) - what's the difference between build array, bundle, build cust le array, index & bundle cluster array? - in order to detect error etc, do i have to connect all the br anch of the simple error handler? please do give some indication.i did have a problem using the one button dialog, when the dialog appeared and i clicke d on ok, it wont shut the w indow of the dialog. what's wrong with it? - is there any exemple or tutorial on input/output instrument, invoke note? a simple would be alright...at least, i could understand the fu nction of it.. maybe that's all for now. but i'm still quite blur with certain of those VIs . thanks in advanced!!! Dhirah Message Edited by dhirah on 04-02-2008 09:52 AM
Post Follow-up to this messageHi Dhirah, build array and bundle are really basic functions, they are used to "build" arrays and clusters, respectively.BuildClusterArray and Index& ;Bundle are more compley, but easier to understand when making a small examp le: the first one takes eac h input array into a cluster and packs all clusters into an array, the 2nd o ne takes the input arrays element-wise (indexing!) into clusters and all clu sters into an array.For SimpleErrorHandler you only have to connect the erro r-in and (only when needed) the type of message.Give an example of your problem regarding the OneButtonD ialog - which window doesn't close?Look for VISA examples in LabView to get a pat instrument in/out.InvokeNodes are completely different from instru ment communication - and y ou should learn at first the upper parts :smileywink:Look <a href="http://ww w.ni.com/academic/lv_training/how_learn_lv.htm" target="_blank">here</a>!
Post Follow-up to this messageHye GerdW, Thank you for answering my questions. From your answer, i can say that buil array and bundle work the same way - g ather the elements. How do we know which one to use everytime? Actuall y, right before my eyes, i have 2 exemples of bundle and build array. Bundle is used to get information form 'GenerateWavefor.vi', a delta X and a Xo then those informations are th en put into a grapht. Meanwhile, build array is used to get infromation from function sinus and also the 'GenerateWaveform.vi' and again put into a grap h. That's why i said, for me it's not celar both functon are used to gather information and put into g raph. Thanks again! Dhirah
Post Follow-up to this messageHi Dhirah,in an array all elements have the same properties except their val ue, so they are the same datatype.In a cluster you can put elements of diffe rent datatype (like in a waveform [dbl, dbl, array of dbl] or an error clust er [bool, int32, string]).T hat's their main difference for general use...Now for specific use of feedin g graphs/charts:Graph indicators are polymorph - they can take several types of data. Which types they take is written in the context help (ctrl-H). Tho se different types also ser ve some purpose like adding several points to one plot or plotting several p lots at once - hence using BundleCluster and/or BuildArray functions.You may plot a simple array of values to get one plot. The same (roughly) is achiev ed by wiring a waveform, he re the timing (start value and distance between points) is included in the d ata.Message Edited by GerdW on 04-03-2008 10:25 AM
Post Follow-up to this messagehye GerdX, Thanks for replying. Now i understand the difference (theorically) but i thi nk it'll be clearer when i really get my hands on it. Yeah about the simple error handle, i've got the exemple right here. When th e dialog box pops up,meaning there's an error but then i couldnt close that dialog box. What seems to be the problem? Dhirah racine carree.vi: http://forums.ni.com/attachments/ni/170/313337/1/racine carree.vi
Post Follow-up to this messageHi Dhirah, I don't know: when the OneButtonDialog pops up I either click "ok " or "X" and the popup closes...
Post Follow-up to this messageHai dhirah, See the modified file. Hope this is what you required. Hope this helps.... Mathan
Post Follow-up to this messageHai dhirah, See the modified file. Hope this is what you required. Hope this helps.... Mathan racine carree.vi: http://forums.ni.com/attachments/ni/170/313349/1/racine carree.vi
Post Follow-up to this messageHey Dhirah, Maybe you press the run continuously button instead of the run b utton, this way the program will read a negative value all the time and thus show the dialog.Cheers,Nuccie
Post Follow-up to this messageHai dhirah, What nuccie says is absolutely right. Check with that. If problem still pers ists post again. Mathan
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.