LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tracing OSA data automatically when thermocouple reading stabilized

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

0 Kudos
Message 1 of 14
(3,897 Views)

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.

National Instruments
0 Kudos
Message 2 of 14
(3,881 Views)

  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.

 

  

0 Kudos
Message 3 of 14
(3,874 Views)

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

National Instruments
0 Kudos
Message 4 of 14
(3,857 Views)

   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.

      

Download All
0 Kudos
Message 5 of 14
(3,849 Views)

Hi Deniz,

It sounds like this example VI should do what you need it to.

 

http://decibel.ni.com/content/docs/DOC-6115

 

Flash

National Instruments
Applications Engineer
0 Kudos
Message 6 of 14
(3,842 Views)

 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?

 

0 Kudos
Message 7 of 14
(3,836 Views)

Hello Deniz,

 

The examle VI above has been saved in LabVIEW 8.2. You can find that particular VI following the attachment here.

num2dec.PNG

Andy Chang
National Instruments
0 Kudos
Message 8 of 14
(3,830 Views)

 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 

0 Kudos
Message 9 of 14
(3,809 Views)

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.

National Instruments
Applications Engineer
0 Kudos
Message 10 of 14
(3,787 Views)