03-07-2016 03:04 PM
Hi,
I am currently having problem writing data to the spreadsheet using the same loop with DAQ assistant inside. So i am thinking about using two separate loops one to read and filter signals (Producer Loop) and another to write to spreadsheet(Consumer loop).
Since i am new to labview. Can anyone help me on this matter?
I have attached my vi herewith this post.' In my vi i want my filtered signal 1 to be written to spreadsheet.
Any suggestions will be appreciated..
Thanks.
Sachet
03-07-2016 03:32 PM
There is an excellent Template for the Producer/Consumer Design Pattern included in LabVIEW. Start LabVIEW, do "New from Template", look for Producer/Consumer. [You might need to open LabVIEW, go to File, New ..., VI From Template, Frameworks, Design Patterns, Producer/Consumer Design Pattern (Data)].
Bob Schor
03-07-2016 03:32 PM
Do you really need to sample strain at 25k? When we open your vi we are facing the GWWG (the Great Wall of Waveform Graph),. These take time to draw, delete the useless ones.
The Producer will include ONLY the DAQ Assistant. Also try to read less sample (thus sending packets of data more often to the consumer loop. Have a look at the Producer/Consumer Design Pattern (data) from the LabVIEW template (File - New ... From Template - Frameworks - Design Patterns).
Ben64
03-07-2016 06:16 PM
I would use the DAQmx Logging cabability. It will stream your data straight to a TDMS file, which can be viewed in Excel with the add-on (should have been installed with LabVIEW). You can turn on the logging in the DAQ Assistant.
03-08-2016 01:09 AM - edited 03-08-2016 01:26 AM
@ sk1
The "Run Continuously" button is an advanced debug option. Do not press that button unless you are "sandboxing" simple calculations! Just run the vi and let it go untill you meet the While Loop exit condition (Press the stop button)
Also, you should initialize that Shift Register!
Averaging 7 one second waveforms does not really make sense unless you know the period of the signal is an exact multiple of 1 second- not very likely!
And, lets talk about memeory space, 8 buffers of 25k of DBL means you need 1.6Mbytes just to hold the data!
What do you really want to do? we can help!