08-03-2009 11:19 AM
Hello,
I am working on a temperature application. I have two parallely working VIs. One is for tracing data from an Optical Spectrum analyzer and the other is for monitoring thermocouple reading. I combined these two and made a VI that records the Optical Spectrum Analyzer data when the thermocouple reading stabilized.
The problem is the code requires user feedback. I mean the VI ask the user whether to trace the data or not. I want the process to be automated completely so that I can leave the set up overnight. I want computer to record the OSA data everytime to a different column of .csv file. And since the wavelength column will always be the same, the computer can only record the power data.
Thanks
08-04-2009 02:35 PM
Hello Deniz,
I took a look at your code, can you tell me exactly which user input you would like to automate? Is it the deivce selection? It seems that the code will trace the data as long as time has not elapsed rather than user input.
Thanks,
Anna K.
08-04-2009 03:24 PM
Thanks for the reply
Actually user inputs should stay as they are. I do not want to change them. The thing I want to automate is tracing of the data. I do not want computer to ask the user to whether or not to trace the data when the user defined conditions are met. The thing I want to change is to be made in the "Trace Screen Capture" library.
08-06-2009 09:28 AM
Hello,
None of these functions are waiting on any user input, they all have constants wired to the subVIs in the Main VI. Please point out exactly which section of the code you are referring to.
Thanks,
Anna K
08-06-2009 11:48 AM
By saying user input, I mean specifying the location of file. In the code 3650.VI, when temperature condition is met, a dialog appears and asks me whether or not to trace the data in a trace.csv file and asks for a file location. I want a stationary file and write all the OSA data,only power column, to be written into that file.Every time to a different column,of course.
08-07-2009 10:35 AM
Hi Deniz,
It sounds like this example VI should do what you need it to.
http://decibel.ni.com/content/docs/DOC-6115
Flash
08-07-2009 11:08 AM
Thank you all for your replies
First, I the VI did not work since I am using the version 8.2 and it is written with 8.6. Besides I could not find the function that is written 999 on it in my functions pallette. Can you suggest any other way for doing that?
08-07-2009 12:00 PM
Hello Deniz,
The examle VI above has been saved in LabVIEW 8.2. You can find that particular VI following the attachment here.
08-10-2009 01:58 PM
Thanks for the help,
Now, I have trouble with implementing. I tried to integrate the code that you recommended (see attached picture) but LabVIEW still requires user input. I mean when the data comes into the loop, a window appears (as in the picture I sent before ) and asks for a file path. It is probably due to the Open_Create_Replace.VI . Is there any way to modify the code without Open_Create_Replace.VI ?
Thanks again
Deniz
08-11-2009 02:47 PM
Hi Deniz,
Can you please elaborate on "LabVIEW requires user input"? Open/Create/Replace VI is one of our native or default VIs and so cannot be changed internally. However, if the VI that you specify for opening is a constant, there should be no user input required. Hope this helps!
Ipshita C.