reem Posted April 18, 2008 Report Share Posted April 18, 2008 Hi everyone, i'm working on a project with labview 8; i have to use cluster in it.. the problem is that it appears as an empty box ,how can i program the cluster?? (program cluster in such a way it accepts 2 or 3 variables) thank you, Quote Link to comment
LAVA 1.0 Content Posted April 18, 2008 Report Share Posted April 18, 2008 QUOTE (reem @ Apr 17 2008, 01:12 PM) Hi everyone,i'm working on a project with labview 8; i have to use cluster in it.. the problem is that it appears as an empty box ,how can i program the cluster?? (program cluster in such a way it accepts 2 or 3 variables) thank you, When you create a cluster it is indeed an "empty box", then just beside, create whatever controls you need (2 numerics, 1 boolean, 3 path, etc) and drag and drop these controls into the "empty box". Hope this helps Quote Link to comment
BrokenArrow Posted April 18, 2008 Report Share Posted April 18, 2008 Dang, I'm supposed to be the First Responder of the One Hit Wonder. reem, What Antoine said. Attached is an example of a typical "cluster". -Richard Quote Link to comment
reem Posted April 18, 2008 Author Report Share Posted April 18, 2008 QUOTE (TiT @ Apr 17 2008, 04:18 PM) When you create a cluster it is indeed an "empty box", then just beside, create whatever controls you need (2 numerics, 1 boolean, 3 path, etc) and drag and drop these controls into the "empty box".Hope this helps Thanks for ur quick replay Antonie and Richard, i tried what u said , but is numeric, boolian, path are the only ones i can drag and add to cluster? if i want to adjust gain (for.ex..mode 0) , sampling rate and port no. from the cluster what should i add to that cluster?? hope my question is clear enough... Quote Link to comment
Doon Posted April 18, 2008 Report Share Posted April 18, 2008 QUOTE (reem @ Apr 17 2008, 08:26 AM) i tried what u said , but is numeric, boolian, path are the only ones i can drag and add to cluster? My mantra is "try it and see; if it doesn't work, Ctrl-Z" Sampling rate, Port Number, and Gain all seem like standard controls that could be included in a cluster. I suspect you may be on the wrong path about what controls are. Maybe a little clarification (or a picture) would help. 8D Quote Link to comment
TobyD Posted April 18, 2008 Report Share Posted April 18, 2008 QUOTE (Doon @ Apr 17 2008, 08:34 AM) My mantra is "try it and see; if it doesn't work, Ctrl-Z" I like it! :thumbup: Quote Link to comment
reem Posted April 18, 2008 Author Report Share Posted April 18, 2008 QUOTE (Doon @ Apr 17 2008, 07:34 PM) Sampling rate, Port Number, and Gain all seem like standard controls that could be included in a cluster. I suspect you may be on the wrong path about what controls are. Maybe a little clarification (or a picture) would help.8D yes it would help , and i'll be thankful Doon... or ur going to tell me "try it and see; if it doesn't work, Ctrl-Z" ? Quote Link to comment
crelf Posted April 18, 2008 Report Share Posted April 18, 2008 QUOTE (reem @ Apr 17 2008, 12:59 PM) yes it would help , and i'll be thankful Doon... Ummm, I think he was suggesting that you should show us a picture of what you're trying to do. Quote Link to comment
reem Posted April 18, 2008 Author Report Share Posted April 18, 2008 QUOTE (crelf @ Apr 17 2008, 09:12 PM) Ummm, I think he was suggesting that you should show us a picture of what you're trying to do. if i knew what i'm trying to do i woudn't ask in the first place i just know that i want to add gain (for.ex..mode 0) , sampling rate and port no. to cluster as input!! and the rest i leave it with professionals .. Quote Link to comment
JDave Posted April 18, 2008 Report Share Posted April 18, 2008 QUOTE (reem @ Apr 17 2008, 11:31 AM) if i knew what i'm trying to do i woudn't ask in the first place i just know that i want to add gain (for.ex..mode 0) , sampling rate and port no. to cluster as input!! and the rest i leave it with professionals .. If you don't know what your trying to do, that makes asking the question more difficult. It has been explained that you can make a control of any data type you desire and then drag that control into the cluster. It will be added as a member of the cluster. I found it extremely helpful when starting with LV to read through the LV Beginners manual that a colleague had. If you don't have access to LV materials or training there are some http://forums.lavag.org/What-Labview-Book-Would-YOU-recommend-t7182.html' target="_blank">LV books you can purchase as well. David Quote Link to comment
reem Posted April 18, 2008 Author Report Share Posted April 18, 2008 QUOTE (JDave @ Apr 17 2008, 10:57 PM) I found it extremely helpful when starting with LV to read through the LV Beginners manual that a colleague had. If you don't have access to LV materials or training there are some books you can purchase as well.David Thanks for the useful information David,i have a manual but it's just introduction to labview, and in UAE there isn't any book about labview..i'm trying to do some practice, but since i'm used to pictures and figures ,its difficult to start now i have added numeric for Gain and Sampling rate to the cluster, have i used correct controls?? for the port No. i do the same?? and other thing is that, for other control blocks as shown in picture above for "Get Waveform Attribute" there is input /output ports, butfor cluster there isn't any ..even when i add controls to it , so how can i connect it to other control blocks?? Quote Link to comment
orko Posted April 18, 2008 Report Share Posted April 18, 2008 QUOTE (reem @ Apr 17 2008, 12:24 PM) i have a manual but it's just introduction to labview Oh, but you have sooo much more than that... you have LabVIEW installed. Which means that you have access to a TON of information in the help documents that the people at NI spent years producing. In the "Getting Started" window, there is actually a whole section devoted to people who are new to LabVIEW. That would be an excellent place to start. In fact, just searching for "cluster" in the help I found very detailed information about how to build one, step-by-step... in about 30 seconds. If you really want to learn on a practical level, then your money would be well-spent on an introductory book (there are many available) or taking a Basics course. I'll be honest with you. If you're having this much difficulty just in trying to figure out which datatypes you should have in your cluster, it will be a very painful process to learn the rest of what you need over the forums. Quote Link to comment
Ton Plomp Posted April 18, 2008 Report Share Posted April 18, 2008 QUOTE (reem @ Apr 17 2008, 08:24 PM) i have a manual but it's just introduction to labview, and in UAE there isn't any book about labview.. Google is your friend and the LabVIEW help is quite good. Search google for '3 hours LabVIEW' and '9 hours LabVIEW'. QUOTE now i have added numeric for Gain and Sampling rate to the cluster, have i used correct controls?? for the port No. i do the same?? Seems OK, I just can't see the datatype (float, integer). The port number suggest you use the old(er) NI_DAQ device driver, is that correct? In that case you need a numeric, then right-click and select 'Data-Type->I32'. QUOTE and other thing is that, for other control blocks as shown in picture above for "Get Waveform Attribute" there is input /output ports, but for cluster there isn't any ..even when i add controls to it , so how can i connect it to other control blocks?? Look for '(Un)Bundle by name'. Ton Quote Link to comment
BrokenArrow Posted April 18, 2008 Report Share Posted April 18, 2008 reem, For the port number, if you mean a serial port, you need the VISA resouce name control. But like has been said, if you're struggling with data types..... Quote Link to comment
reem Posted April 18, 2008 Author Report Share Posted April 18, 2008 QUOTE (tcplomp @ Apr 17 2008, 11:44 PM) Google is your friend and the LabVIEW help is quite good. Search google for '3 hours LabVIEW' and '9 hours LabVIEW'.Seems OK, I just can't see the datatype (float, integer). The port number suggest you use the old(er) NI_DAQ device driver, is that correct? In that case you need a numeric, then right-click and select 'Data-Type->I32'. Ton Thanks for the help, 3 hour labview is a good source, i wish i had found it earlier.. i dont know how to assign data type to cluster..so as orko said maybe it would be better to look for some books!! in my project, i have an ECG signal which taken from the patient using electrodes as sensor..the aim is to transmit this ECG signal using labview to the internet... signal taken from the body goes to DAQ card and from there to lab view to be sampled , displayed and to be sent to the internet via "web publishing tool". but about cluster part..i'm still not sure ..should i connect it as in this figure: QUOTE (BrokenArrow @ Apr 17 2008, 11:56 PM) reem, For the port number, if you mean a serial port, you need the VISA resouce name control. But like has been said, if you're struggling with data types..... i mean the port number of the DAQ card...but i'm not sure wheather i'm going to use VISA resource control.. Thanks 4 the tip Quote Link to comment
crelf Posted April 18, 2008 Report Share Posted April 18, 2008 QUOTE (reem @ Apr 17 2008, 04:50 PM) i dont know how to assign data type to cluster. You don't assign a datatype to a cluster - a cluster is a group of datatypes which can be mixed. QUOTE (reem @ Apr 17 2008, 04:50 PM) signal taken from the body goes to DAQ card and from there to lab view to be sampled , displayed and to be sent to the internet via "web publishing tool". Sounds like you're trying to do something quote ambitious for someone who hasn't programmed in LabVIEW before. Seriously: take some time now (I'm talking about at least a week, not just 3 hours) to learn LabVIEW basics. If you do that now then you'll save a *lot* of tome later. What you're trying to do now is learn the language based on a task - I'm suggesting that you need to learn a little about the language first. I noticed that this thread's subtitle is "URGENT!" - if you try to rush through this I garuntee that it won't end well... Quote Link to comment
Yair Posted April 19, 2008 Report Share Posted April 19, 2008 You can find more relevant tutorials here. Quote Link to comment
reem Posted April 22, 2008 Author Report Share Posted April 22, 2008 Hi again, when i use bundle for cluster, i take the output from the bundle itself?? ( i mean that if i want to connect the cluster to a function such as "Get Waveform" how i do it??) i have uploaded a picture of how i did it..is it ok?? Thanks, Reem Download File:post-11300-1208783929.bmp Quote Link to comment
Yair Posted April 22, 2008 Report Share Posted April 22, 2008 You connected the cluster to the default value input of a primitive which retrieves a waveform attribute. If that's what you wanted to do, then you did it correctly (although you didn't give it a name or use a waveform). If you want to build a waveform or get the data from it, there are other options in the waveform palette. You should really look at those tutorials and at the examples in the example finder (Help>>Find Examples). Quote Link to comment
reem Posted April 22, 2008 Author Report Share Posted April 22, 2008 QUOTE (Yen @ Apr 21 2008, 08:47 PM) You connected the cluster to the default value input of a primitive which retrieves a waveform attribute. If that's what you wanted to do, then you did it correctly (although you didn't give it a name or use a waveform).If you want to build a waveform or get the data from it, there are other options in the waveform palette. You should really look at those tutorials and at the examples in the example finder (Help>>Find Examples). yes, there is going to be a waveform connecteg to "get waveform" , this was just a small part of it... thanks for the reply and help Quote Link to comment
reem Posted April 23, 2008 Author Report Share Posted April 23, 2008 hi .. for the connection of cluster-bundle...do i have to input anything to bundle for sampling rate and gain mode selection?? (see picture ) if yes can u please let me know what to use?? (the bundle i have selected has there controls from cluster: gain/ sampling rate/ port.no from DAQ card) is my question clear?? by the way..do i neee a seperate while loop for DAQ card?? Thanks, Quote Link to comment
Ton Plomp Posted April 23, 2008 Report Share Posted April 23, 2008 QUOTE (reem @ Apr 22 2008, 09:33 AM) is my question clear?? by the way..do i neee a seperate while loop for DAQ card?? Thanks, I believe I got your question: Do I have to provide all inputs with a 'bundle' primitive. The answer is no. However I would suggest a 'bundle by name' primitive. Ton Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.