08-04-2014 09:23 AM
Hi,
We're trying to gather a large amount of spectra directly into Labview and average them using the Labview software, using the program attached below. However, this element of the system doesn't work quite the way it should. It doesn't appear to take use the external timer source for when to record the spectrum. As it's hooked up to a Time of flight Mass spec, timing is rather important. Our current method is to average a set of spectra on the oscilloscope and transfer this as a single spectra. However, alot of resolution is lost this way.
We are unsure if it's an issue with the initial drivers, or if the averaging system with a for loop is where the fault is.
08-04-2014 01:12 PM
Sounds like an instrument setup problem and without all the instrument VI's it's impossible to troubleshoot.
Other than that I would lose the flat sequence and use a Time Delay in the error cluster if you need a delay.
Don't get into the habit of using stacked or flat sequences, use the error cluster and think about data flow.
08-05-2014 04:34 AM
Hi,
As mentioned earlier, it's difficult to tell if the external timer has an issue without looking at the drivers and the instrument VI's. If you can, could you attach the relevant drivers to the forum so I can troubleshoot the VI.
Alternatively, I have attached some code which provides an example of using the producer consumer architecture to acquire data without the need for averaging. It uses a FIFO buffer to ensure lossless data transfer. The producer loop performs the data acquisition while the consumer loop performs the slower data processing and logging.
08-05-2014 10:48 AM
Thank you for your very fast and helpful responses. Sorry, I forgot the subVI's, but I've attached them below. Thanks again for your help. Personally I think it may be something wrong with the trigger edge setup, but after numerous alterations I haven't quite been able to fathom how to fix it, if it is even the issue.
Cheers,
Nathan
08-07-2014 03:17 AM
I have not been able to view some of the files on your VI and I cant find them in the file you sent. Could you please send me the relevent subVI's or drivers which include your instrument VI's. On a seperate note, have you tried using the architecture that I recommended and did it have any influence?
08-07-2014 06:00 AM
Hi,
I will install the drivers and see if I can pick anything up but without your instruments it will be difficult to debug. Here is the producer consumer example in version 12.0. I suggest trying this and please keep me informed if it helps.
08-07-2014 06:02 AM
As the LIbrary VI doesn't work effectively to allow usage of the subVI's I've attached the link to download the driver which will hopefully be more effective. http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E95E2659CE034080020E748...
In the meantime I have also found a 9350 Oscilloscope which corresponds to the driver used (as there is no driver for the LeCroy 9344). I'll report back if the issue was simply the drivers misscommunicating with the older Oscilloscope.