I am farily new to LabView. I had been banging my head against it for about a week and now I need some guidance. I have SCXI1102 with PXI-6289 to record temperature.
So far I have made a very simple block diagram to read the temperatures. But I need to get it to record it. I am shooting for Temp. vs. Time(s). I want temp measurement every second recorded. I used DAQ Assist to graph it and also show it in text. I have a time delay of 1 second in while loop. Can anyone guide me on how to get temperature recorded in data file, hopefully excel file?
I have attached an image of my block diagram.
There are plenty of examples for SCXI for different sensors, at Labview>>Help>>Find Examples. It would be easier way to get started. The express vi that you are using is not a very efficient way of data acquisition. Try to use Daqmx functions. Also, the to add delay in loop use either 'wait' or 'wait until next ms multiple' from the functions palotte. And the amount of delay should be less than one second, assuming that you want to acquire data atleast at few Hz.
I just used one of those example vis and modified it for excel record.
All that you really needed to do was add a Write to Measurement File function. That should not have taken a week. And, for future reference, never post just an image when you are using the DAQ Assistant. All of the information is hidden in the assistant and you need to post the actual VI or a snippet.
p.s. the example posted by odessy does not record any timing information.
Thanks for your reply Dennis. Unfortunately, I am new to LabView and DAQ in general. It took me some time to understand this stuff. I will post the VI as soon as I get access to it.
Currently, I have "Write to Labview Measurement File.VI" taking the data, however, is there anyway I can also have it mark the time stamp for each row. Its logging 2 channels in 2 columns, leaving the first column empty. It would be helpful if I can have it mark time stamp for each measurement.
Also, I have a waveformgraph displaying my temperature, is there any way I can have it plot each point as it acquires? so after I can see the curve patterns as the test is going. Right now its just scrollig through.
And what do you think about using time delay vs wait ms VI, if I am taking measurement every second?
Need to see the VI to know why you have an empty time column.
There is no difference between the Delay function and the Wait (ms) function except the Delay specifies time in seconds and it has error in/error out connections. The Delay function uses the Wait(ms) so saying use one and not the other is silly.
You configured the Write to Measurement File to have an empty time column. Double click on it and change it.
Dennis is right, there is no difference between Time delay express vi and 'wait' function. I, however, have never seen using time delay express vi used in data acquisition application before and was under the assumption was, everything blue (express vi ) was bad programming hence I recommended op to use other timing functions. My apologies for misinformation!