Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure a quantum sensor or pyranometer?

I am trying to use an apogee pyranometer to measure solar irradiance by using Labview 2012 and USB-6210. I have it plugged in to an analog input and am using the DAQmx function to get a differential voltage reading. 

 

I'm trying to take 15 samples every 15 seconds, but only write and record one sample averaged from those 15 samples. Then I would like to record those to a file. I have created the task "Pyranometer" in the DAQmx. 

 

I have attached what I have done so far. 

 

Thanks for your help!

0 Kudos
Message 1 of 6
(3,999 Views)

The VI you attached does not seem to have anything to do with your description of what you want to do. It takes 15 samples but you aren't doing any wait, for some reason you are doing a write, you aren't taking a mean, and you aren't saving anything. The DAQmx timing function and saving task makes just no sense. Why aren't you using the mean function to get it and save that to file?

0 Kudos
Message 2 of 6
(3,982 Views)

Like so?

 

I am using the ai5 analog as it has the high/low and ground right next to each other on the datalogger. I have used the Write Measurement to File box to choose the file location. 

 

Thank you.

0 Kudos
Message 3 of 6
(3,960 Views)

Looks better though you still do not have anything that controls the acquisition every 15 seconds. A wait or the elapsed time function can do that.

Message 4 of 6
(3,954 Views)

This is what I had ended with, but I get an error that the write file command can not be performed while VoltDiff task is running. 

 

 

0 Kudos
Message 5 of 6
(3,932 Views)

Now you are taking a single sample and taking the mean of that. Why? You are also running the DAQmx Read continuously and not every 15 seconds. Just placing the elapsed time function in there is just displaying the time. You would want to place your DAQmx Read inside a case statement and wire the selector to the elapsed time output called Time Has Elapsed.

 

All of the task configuration is hidden because you have configured it in MAX and not the VI so I have no idea what other problems you might have. I also never use the Express VI Write to Measurement File so I am unsure about the error message.

0 Kudos
Message 6 of 6
(3,927 Views)