01-24-2018 11:45 AM
I am attempting to ramp up the mass a mass spectrometer (MS) is passing while measuring the signal that passes through the MS.
The MS is an Extrel QMS that is controlled via a 0-10 VDC mass command and three -5 to 5 VDC control commands that control other variables. I haven't finalized (or bought) the DAQ that will control this but I am thinking the PCI-6703 or PCI-6704.
The measuring device is a Keithley 6514 measuring current. This is controlled via GPIB going to an Agilent 82357a.
I have attached a simplified version of the VI I am working on.
There will be four waveforms for the four analog outputs. The t0 and the dt will be the same and the Y-values will be different. (I combined these in the example VI for simplicity). The dt is based on the set integration time of the 6514 which is PLC of 1 = 16.67ms. This way the voltage ramps a step for evey keithley reading.
The rest of it is the usual setup where I activate the AOs and I use an internal channel to have the mass command also be AI. The timing is synced to the waveform. The DAQ Write task is synced to the start trigger of the DAQ Read task.
This way all of the ramps and the read of the mass command ramp start at the same time.
For the 6514 I set it up to write to a buffer for read speed. I want to start writing to the buffer as the ramp starts and when the ramp ends have it read from the buffer. This should collect at the same speed as the ramp because I am syncing dt with the PLC value of the 6514. This is my hardware syncing.
All of the waveforms are in the loop because I want to be able to change their values without needing to stop the program. (Not sure if this is possible)
I think that I have it setup so that the buffer is sized to the number of steps in the voltage ramp and then auto reads out what's at the buffer when the buffer is full. So this should sync the end of the read.
The part I am wondering about is how to start the 6514 filling its buffer at the same time the ramp starts.
Thank you for any help/advice.
01-25-2018 06:10 PM - last edited on 11-26-2024 03:15 PM by Content Cleaner
Hello Syncing_Mass_Specs,
I see the next details in your block diagram that you might want to check before you get your DAQ tasks to work properly:
Good luck with your application! Let us know which further questions do you have.