LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

a newbie needs help...

Hye guys,
 
I'm a newbie in LabView and i've been trying lots of exercices and reading help(in french, but french is not my mother tougue) but i'm still having some problem (there might be a lot of 'em)
   - what's the difference between build array, bundle, build custle array, index & bundle cluster array?
   - in order to detect error etc, do i have to connect all the branch 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 clicked on ok, it wont shut the window 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 function 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
0 Kudos
Message 1 of 16
(4,006 Views)
Hi 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 example: the first one takes each input array into a cluster and packs all clusters into an array, the 2nd one takes the input arrays element-wise (indexing!) into clusters and all clusters into an array.

For SimpleErrorHandler you only have to connect the error-in and (only when needed) the type of message.
Give an example of your problem regarding the OneButtonDialog - which window doesn't close?

Look for VISA examples in LabView to get a peek at instrument in/out.

InvokeNodes are completely different from instrument communication - and you should learn at first the upper parts Smiley Wink

Look here!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 16
(3,976 Views)
Hye GerdW,
 
Thank you for answering my questions.
 
From your answer, i can say that buil array and bundle work the same way - gather the elements. How do we know which one to use everytime?  Actually, 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 then 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 graph. That's why i said, for me it's not celar both functon are used to gather information and put into graph.
 
Thanks again!
 
Dhirah
 
0 Kudos
Message 3 of 16
(3,946 Views)
Hi Dhirah,

in an array all elements have the same properties except their value, so they are the same datatype.
In a cluster you can put elements of different datatype (like in a waveform [dbl, dbl, array of dbl] or an error cluster [bool, int32, string]).
That's their main difference for general use...

Now for specific use of feeding 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). Those different types also serve some purpose like adding several points to one plot or plotting several plots 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 achieved by wiring a waveform, here the timing (start value and distance between points) is included in the data.


Message Edited by GerdW on 04-03-2008 10:25 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 16
(3,937 Views)
hye GerdX,
 
Thanks for replying. Now i understand the difference (theorically) but i think 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 the dialog box pops up,meaning there's an error but then i couldnt close that dialog box. What seems to be the problem?
 
Dhirah
0 Kudos
Message 5 of 16
(3,916 Views)
Hi Dhirah,

I don't know: when the OneButtonDialog pops up I either click "ok" or "X" and the popup closes...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 16
(3,912 Views)

Hai dhirah,

See the modified file. Hope this is what you required.

Hope this helps....

 

Mathan

Message 7 of 16
(3,905 Views)

Hai dhirah,

See the modified file. Hope this is what you required.

Hope this helps....

 

Mathan

Message 8 of 16
(3,904 Views)
Hey Dhirah,

Maybe you press the run continuously button instead of the run button, this way the program will read a negative value all the time and thus show the dialog.

Cheers,

Nuccie
Behind every great man stands a surprised woman.
0 Kudos
Message 9 of 16
(3,902 Views)

Hai dhirah,

What nuccie says is absolutely right. Check with that. If problem still persists post again.

Mathan

Message 10 of 16
(3,894 Views)