ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
08-18-2008 08:13 AM
08-20-2008 08:40 AM
Greetings! I, too, am a physicist, so I know what you are facing. I, too, have no formal training in software. However, you can not be an effective physicist without knowing how to program a computer, so you need to learn. LabVIEW is a good language for a physicist to know, since it was designed for data acquisition, data analysis, and instrument control. We cannot teach you LabVIEW in a developement forum, but we can point you to some resources. Online, you can find LabVIEW Zone Learning Center. The first link is a "getting started" guide. Alternately, you can look at the getting started guide that comes with LabVIEW. Open Help->Search the LabVIEW Help... When the help file opens, click on
LabVIEW Documentation Resources. Under Print Documents, select Getting Started with LabVIEW. There are also many LabVIEW tutorials on the web (e.g. LabVIEW for Dummiees). There are many books on the subject (e.g. LabVIEW for Everyone). You can also contact your local National Instruments office and take courses on how to program LabVIEW (these are normally one week each). Take a few days and learn the basics of data acquisition, instrument control, and data analysis/display. Then start solving your actual problem.
For us to help you further, we will need much more information. Some examples of this are:
08-20-2008 04:50 PM
thank you for your advice...
firstly,I have only 1 weak to finish my job.i want to tell about my job clearly now.i am a bacelor student and my supervisor who is a phd student,he is going to make an experiment about laser and cristals(lens).i am not working in a laboratory.
so, he said me, make a program that is first part of the main program.and my goal is in this program that there are cristals which are shaped circle and rectengular.he said.the aim of the experiment is when the U_V laser comes to the cristal to destroy a molecule or an atom.we will measuere how much energy is needed to destroy them.and he said me make aprogram to move the cristal.and i want to scan all part or a part of the cristal which are circle and rectangular.
lets say firstly laser comes to the centre of the cristal and move right or whatever direction.and i have a parameters x,y ,r(radius),st(step weight),so if i want to see (5,10) coordinates to scan i can enter the x and y datas.or if i want to scan a circle cristal in boundary of radius =5cm.so my aim is control the cristal.when i finish my part of the program then he will add and improve my program with formulas and other acquire datas.
it is just this not so complicated.but for me yes it is complicated.and he told me above information about the program.not details about the experiment.i have to make this program in a few days. if you make this program and post me i will appreciate to you.because i couldnt make.sorry for english.i am waiting your answers as soon as possible.
thank you for your interest.
08-20-2008 07:16 PM
hi anfora,
first thing you need to do is to get more time, relly.
When I was before my BA, I programmed a photogoniometer (which was for lens scanning, polar coordinates only). But had LV-Experience before. Total was around 75 hours
You will need at least 3 days to learn LV basics.
For the remaining part, is there already some LV code? You need just to do a coordinate transformation (caartesion to polar)? Or do you need to write it from the scratch (complete apllication)? That's half a day to 2 month work difference.
Felix
08-21-2008 03:33 AM
hi felix...
For the remaining part, there isnt LV code.i dont need a coordinate transformation.i want to just scan the cristal with parameters.and i want to show this on the front panel with x -y table maybe we can add x-y chart.
not so complicated that you think.i am waiting your answer.see you
08-21-2008 08:25 AM
Use an XY Graph on your front panel. Start your program by simply plotting the points you want to scan to this graph. Use a FOR loop set to the number of points to scan. Set up the coordinates as a array of clusters, each cluster containing two DBL scalars labeled X and Y for your X and Y coordinates. The examples I pointed to above will tell you how to do this. This should take you about four hours and you will know a lot more LabVIEW.
Now wire the plot coordinates to whatever interface you are using to move the laser. You may want to put a delay in the loop to prevent it from executing too fast. This will depend on your interface. Delays are built into some of them. This should take you another four to eight hours and again you will learn more LabVIEW.
Then you can explore other options, such as creating the scan points from a pattern or reading them from a file. This should take another day or two.
If you can, find someone local who knows LabVIEW to give you some help. This could shorten the whole process considerably. However, make sure you do all the work so you learn how to do all this stuff. It is not particularly hard, but it is a lot to learn all at once. I taught myself the basics of LabVIEW 3.0 under similar circumstances in about four days while completing a more complex project. You can do it.
08-21-2008 09:01 AM
hello DFgray
thank you for your information.i will try your method. but i attached my vi,maybe it can help you to understand my job.i made this vi but it doesnt work efficiently.i am confused.i wrote circle equatin in the formula node and also i want to write rectangular equation.but i think i should use case structure.can you correct my vi and send me?lets say i want to scan a circle with radius =5 and i want to see it on the front panel.with step weight 0,5 and my centre of the circle will be 0.you can use table to show every coordinates in this area.this is just what i want.can you do this for me?it takes i think 15 or 20 minutes for you.the problem is i cant make an algorithm.
thank you.
08-22-2008 07:34 AM
From your previous posts, I thought you were scanning in a circle, but it appears from your code you want to raster scan. Here are a few things you can do to improve the code:
04-13-2009 10:40 AM
I wrote a sample program which does something very similar.
Basically its a beam scanner program.
you can check it out and use it. if it fits you.
http://decibel.ni.com/content/docs/DOC-4358
all the best.
Yoni.