LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help me on this program

Hello everybody. I have a university paper on this circuit and I have to write a report to interpret and describe this circuit using the data and circuit shown below. Can someone help me to describe this circuit? I really need help because I have difficulties in understanding it! My teacher wants us to explain the work as if it were for someone who doesn't understand anything about LabView

All help given is welcome!

Thank you so much.

 

0 Kudos
Message 1 of 13
(2,063 Views)

If we did what you ask, we would be doing your assignment for you.

 

So instead i'll give you hints as to what to do.

1. Simplify the circuit. It seems unnecessarily convoluted (probably to test you) and a lot of functions can be thrown out. Make wires straight, so it's easier to follow dataflow, order them from left to right in order of execution.

 

2. Right now i get a single line read from the VI, so i'm assuming you need to do something with your data to make it read properly.

 

3. You can right click on an object and select "Help", this will show you all the inputs and outputs of a function and what it does.

0 Kudos
Message 2 of 13
(2,027 Views)

Hi MattSteve,

 


@mattsteve wrote:

My teacher wants us to explain the work as if it were for someone who doesn't understand anything about LabView


So this is a homework given to you to actually learn LabVIEW?

 


@mattsteve wrote:

I really need help because I have difficulties in understanding it! …All help given is welcome!


There are "Training resources" offered in the header of the LabVIEW board to help you in learning LabVIEW. You really should take them…

First bit of (basic) help: don't call a VI "circuit"! It's code, separated in a frontpanel and a blockdiagram…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 13
(2,022 Views)

Yes it is and sorry for not saying the name correctly. My teacher gave this to us without introducing us to the labiew so i'm kinda lost. The job is to delivered on sunday so i am a bit desperate. Thanks for the advice

0 Kudos
Message 4 of 13
(2,004 Views)

Hi MattSteve,

 


@mattsteve wrote:

My teacher gave this to us without introducing us to the labiew so i'm kinda lost. The job is to delivered on sunday so i am a bit desperate.


So you have still 2 more days to solve your homework and earn your points…

Hurry up!

 

General advice:

  • We will not solve other people's homework.
  • We will help for specific problems and specific questions.
  • You will get even more help when you show your own effort by attaching your code (VI, not just images)! This way we will tel you what you need to improve…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 13
(1,984 Views)

@mattsteve wrote:

Hello everybody. I have a university paper on this circuit and I have to write a report to interpret and describe this circuit using the data and circuit shown below. Can someone help me to describe this circuit? I really need help because I have difficulties in understanding it! My teacher wants us to explain the work as if it were for someone who doesn't understand anything about LabView

All help given is welcome!

Thank you so much.

 


I love your philosophy about life... with this philosophy you really have real chance to win Bill Gates in IQ and... $. This I speak "seriously"... 🙂 Let explain why... 

 

Step nr. 1 - Today you ask here that somebody that spend a life learning LabView... make your homework... today. Good starting point !

Step nr. 2 - Tomorrow you will ask here that somebody that spend a life learning LabView make your final university work job. An ideal approach !

Step nr. 3 - Next day you ask here that somebody that spend a life learning LabView make your master project. This is perfect !

Step nr. 4 - Next day you ask here that somebody that spend a life learning LabView make you doctorate project. Well... if you reach here... you cant stop now !

Step nr. 5 - Next day you ask here that somebody that spend a life learning LabView make your "Life Project" with that you will be most famous and more reach that Bill Gates !

 

Best ever approach for this ideal ! 

 

Go quick and learn LabView, you need to start learning LabView yesterday ! Is un ethic, imoral that somebody make this... (make your homework) but... is more un ethic and more imoral to ask for that !!!

 

"Think young... It's your only... hope..."

0 Kudos
Message 6 of 13
(1,967 Views)

Your data file is not formatted correctly.  There is no delimiter between the X and Y data.  Both numbers are in the same column so the Read Delimited Spreadsheet VI will need some extra processing to split the XY pairs apart.

 

I read the file as strings, then split on the space between the X and Y to make a proper 2D array.  The file is just a curve and it appears the code is trying to find discontinuities in the slope but it's so poorly written I can't be sure.

 

2 Col.png

I've attached the data in 2 columns so you can at least see what the data looks like.  As far as explaining what the code is supposed to do goes...  I don't even think the person who wrote it can answer that. 🤔

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 7 of 13
(1,934 Views)

@mattsteve wrote:

Hello everybody. I have a university paper on this circuit and I have to write a report to interpret and describe this circuit using the data and circuit shown below. Can someone help me to describe this circuit? I really need help because I have difficulties in understanding it! My teacher wants us to explain the work as if it were for someone who doesn't understand anything about LabView

 


So who wrote this code (It's not a circuit!)?

If you wrote it, you better be able to describe and understand it.

If your teacher wrote it, why would you need to describe it?

 

Any LabVIEW programmer here would tell you that this code is extremely convoluted, overly complicated and full of Rube Goldberg constructs. Very poorly written! A better assignment would be to first clean up and simplify the code.

 

Some hints:

  • Get rid of the express VI, it is completely unnecessary.
  • There is no need for dynamic data wires
  • Eliminate all the dead code.
  • Consolidate all the duplicate code.
  • Two instances of "array subset" are NOT needed to get two columns. (one "index array" is all you need!)
  • Array subset on a 1D array as wired near the top right of your diagram can be replaced by a wire.
  • Learn about autoindexing and conditional tunnels. Once you do, you can get rid of the case structure and shift register and greatly simplify the FOR loop..

After doing all that, the diagram will be so simple that describing it will be trivial. 😄

 

Message 8 of 13
(1,929 Views)

BTW, the header in the original file indicates that the curve is an optical response to light in the visible range (plus a bit into the IR).  The light intensity is in micro-amps though which is meaningless without knowing how much optical power (in mW or dBm) that represents.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 9 of 13
(1,924 Views)

@NIquist wrote:

Your data file is not formatted correctly.  There is no delimiter between the X and Y data. 


The delimiter is a single <space> character and wiring that correctly to the current read function is all that's needed. 🙂

Message 10 of 13
(1,916 Views)