LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording Data from Two Instruments to a Spreadsheet

I am trying to create a LabVIEW VI that records data from a DAQ card and two channels of a TekTronix 3034B Oscilloscope for around 10-15 minutes. The DAQ card is used to control a flow rate and record the actual flow rate, and the Oscilloscope records current data through two of its channels. I want to be able to decide when to start recording the data from these two instruments because the flow rate will need to be started before the data needs to be recorded, and I have done this by tying an On/Off button to a case structure where a write to spreadsheet VI is used. I believe in the current state of the VI I've attached (Correct Flow Rate-Oscope 10-17.vi) can record the data from both the instruments and write to a .csv file.

 

What I am struggling with is trying to have LabVIEW record a single data point for both instruments at a set frequency (say once every second or even less frequently) over the 10-15 minute period that is not dependent on the sampling rates of the DAQ card and the Oscilloscope. The oscilloscope sends about 10000 points every time it is triggered which is not necessary for the spreadsheet I am trying to make. I have tried to create a DAQ card channel that outputs a digital pulse to utilize the external trigger on the Oscilloscope to send a data point at a frequency that can be set, but I'm not sure if this would really help me. I also have a "wait(ms)" function inside the while loop that I believe can be used to set the data recording frequency, but I'm unsure if there's a better way to go about it.

 

Any help would be greatly appreciated! I've attached the VI I am writing, and the Oscilloscope instrument driver I used in this VI. Please let me know if I can clarify anything or upload any other files.

0 Kudos
Message 1 of 2
(102 Views)

I reloaded the page and lost my attachments, I've attached them here.

0 Kudos
Message 2 of 2
(101 Views)