06-14-2012 04:42 PM
I am using 2 thorlabs pm100a power meters for my research, and i am going to read temperature by using these power meters, but the problem i can just read value from one of them, but i need to read two power meters values at same time by using labview. USB flash memory that is coming with power meters has a sample to read these value but this labview sample is just for one power meters, so to read 2nd power meter value i have to stop running labview and start again after choosing 2nd power meters. i want you help me to read these two power meters on one labview program at same time. i am looking forward to hearing from you.
06-14-2012 05:42 PM
HI,
If I understand you correctly, your sample program is only for one power meter. You need to duplicate the code in the VI for this reading. Then you will have two sets of the code in the VI. Put in the new com port for the second meter portion of the code.
Alternatively, you could make a VI that holds the sample code VI for one instrument. Then put in the sample VI twice in the holding VI. Each of the sample code Sub VI's will need a different com port.
This is all very general as I have no idea what the sample code looks like, I assume you have the vendors LabVIEW drivers, and that they are made in a standard way, so that you could open two references to the two instruments, and then use the "read" VI's to read from each reference. You need a loop to "read" over and over again.
06-21-2012 11:13 AM
Actually the problem i don't know how to duplicate my sample code, because there are also some code depends on the sample. When i looked the program code i saw the program depends on the other program codes i mean if i copy and paste just sample instead of other codes that is in the same folder with sample, the program does not work. i attached the sample code to explain what i mean clearly. Thank you
06-22-2012 10:26 AM
Where is the code you wrote? What did you try to duplicate? Asking for help with some code that you wrote and then not including it is not the best way to get an comprehensive answer. Since the example with the PM100D Initialize funtion does not allow you to specify a specific com port, you need to start there.
Your original post also refers to USB Flash memory but I don't understand that at all.
06-28-2012 03:07 PM
Hi mkmo
For using more than one power meter, we have a utility that can be downloaded at www.thorlabs.com/software/MUC/PM100x/Utilities/PM100_Multi_PM/PM100D-PM200_Multi_Power.zip. I have attached a LabVIEW version of that as well.
Best regards,
Jeremy Low
Technical Support