08-25-2011 07:59 AM
Hi there!
I am using labview to communicate with MS257(a monochromator).If I donot use Labview, I have to use the hand controller(set a wavelength from 300 to 1100 under one grating(four gratings in total).This takes much time.So I want to use labview to achieve automation.But I donot know how to do that, I still can only set one wavelength as a command to MS257, which makes no differences.
Does anyone know how to deal with this?
Thank you for your time.
Solved! Go to Solution.
08-25-2011 09:18 AM
i mean the general method
08-25-2011 10:07 AM
What kind of physical interface to the computer does the instrument have? GPIB, RS-232, magic wand? Can't provide a general method without this basic information.
08-25-2011 10:23 AM
sorry for that.I used GPIB interface(PCI-GPIB).There are actually two cables,one for MS257 and the other one for SR830(lock-in amplifier).What I used to do is: use a hand controller to send commands to MS257, and then read the voltage from the amplifier.but I need to send the command goto wavelengthXXX a hundred times for one grating,you know,it's quite inefficient.
So I want to use labview to make life easier.What I want do now is just to create a VI which has a button, that when I click the button it will measure the voltages from 300nm to 1100nm, which donot need to type the commands again and again.
Thank you.
08-25-2011 10:29 AM
So where are you stuck? This is a pretty common task. Inside a while loop, you can increment the 'xxx' and build an array of responses. Look at the Format Into String function and a shift register/feedback node.
08-25-2011 10:37 AM
I am new to labview.Thank you very much.But I donot know where to put the Microsoft code or I donot need to use that?
08-25-2011 10:43 AM
What microsoft code? Second obtuse reference in this thread.
08-25-2011 10:54 AM
I mean Microsoft C code.Okay,I will see
08-25-2011 11:22 AM
Use C if you are more comfortable with that than LabVIEW.