LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

photovoltaic current

If we want to use case structure in [see image highlighted in red]. Suppose Is has 3 different types of values. X1= 1E-12, X2= 1E-13, X3= 1E-14. I have attached the vi. Any code for this?

Download All
0 Kudos
Message 31 of 86
(1,106 Views)

@Pooja-S wrote:

If we want to use case structure in [see image highlighted in red]. Suppose Is has 3 different types of values. X1= 1E-12, X2= 1E-13, X3= 1E-14. I have attached the vi. Any code for this?


Yes. It's called a case structure. Just like the one you already have in the code which clearly you did not write.

 

To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. There are also several Technical Resources. You can also take the online courses for free.

0 Kudos
Message 32 of 86
(1,100 Views)

Zach, i tried to write the code for the case structure [see attachment], but am not able to wire it to the substract. I am getting errors. Please correct it for me. Thank you.

0 Kudos
Message 33 of 86
(1,076 Views)

You aren't even trying to do the work yourself.

0 Kudos
Message 34 of 86
(1,068 Views)

I am sorry, but i tried to write the code. But i am not able to wire it to the multiplier, i am getting errors. So i am asking help to Zach.

0 Kudos
Message 35 of 86
(1,059 Views)

No, what you are asking is for Zach to do your homework. Now, if Zach wants to do your homework, that's his prerogative. What I would tell you is to spend some time with the tutorials and the LabVIEW Help, which will answer your questions, and you will learn far more than having someone do your work for you. Of course, it's unlikely that will convince you since you want the quick solution, which is for someone else to do the work for you. 

 

Assuming you don't want the quick solution and are actually willing to learn, then I would suggest looking at the LabVIEW Help on case structures. What does it tell you? The Help page has a link to an example on using case structures. What does the example show you? Both the help and the example indicate that if the case structure outputs a value, then each case must generate a value, otherwise the case structure's output value is indeterminate. Did you do that? No. So, what do you need to do?

 

Also, consider what you are using to select the value: You are using the position. Don't you already have a position control? Why do you need to create a second one? What does the LabVIEW Help and tutorials tell you about branching wires to have a value go to multiple places?

0 Kudos
Message 36 of 86
(1,047 Views)

Can you tell us what error you are getting so we can help you figure it out?  It would be better to learn how to do this yourself rather than relying on constant assistance if you plan to advance in you endeavors. 

 

Press cntl-h to turn on context help so you can see what each LabVIEW block expects as inputs and provides as outputs.  Then select the wiring tool (little spool) and connect the wires by clicking from your desired source to destination.  In your situation go from the orange float constant in each case of your case structure to the case structure output tunnel, then from the output tunnel to the top of your multiply block.  If you get a broken wire (dotted line) try moving the blocks around to be sure the wires are connected as you intended and not to the wrong block terminal.  It can be confusing at first but if you try, you'll soon get the hang of it.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 37 of 86
(1,044 Views)

Hi, i have connect the new case structure to the original position which was already there. But when i wire the multiplier to the output of the case structure, i am getting broken wire. The errors are on the missing tunnels. It should be complete orange just like previous case structure.

0 Kudos
Message 38 of 86
(1,032 Views)

Umm....I have done it without any errors. Please see it if its good. But i am confused that all the values inside the case structure is connected to the tunnel. Is it correct what i have done?

0 Kudos
Message 39 of 86
(1,021 Views)

I have a question, in the case structure, i use x1, x2, x3. If i want to replace the labelling of x1, x2, x3 to si, ge, cd respectively, how will i do this?

0 Kudos
Message 40 of 86
(1,017 Views)