08-06-2024 03:58 PM - edited 08-06-2024 04:01 PM
Hello All,
I am new to LabVIEW and I have been having a hard time trying to figuring out how to get this system set up. I am using laser pulses to excite a system response and I am trying to set up my DAQ (NI-9775) so that it continuously triggers every time a laser pulse is received on ai0 and it measures the response to the pulse on ai1. Since the response signal-to-noise ratio is so low, I am also trying to increase the integration time from ai1 so that the response signal increases compared to the background. I managed to get analog reference triggering set up, but I can't get the system to continuously monitor and update each time a laser pulse is received.
I attached the basic code. I tried using a while loop to encompass the triggering, but it throws errors. Would anyone be able to point me in the right direction with this? Any help would be appreciated immensely.
Thanks.
08-30-2024 04:37 PM - edited 08-30-2024 04:37 PM
Sorry for the delayed response.
Reference this post:
Analog Acquisition with Software Analog Reference Trigger - NI Community
If you also happen to have access to the Sound and Vibration Toolkit, reference the following sample projects:
%ProgramFiles%\NI\LVAddons\nisvt\1\ProjectTemplates\Source\Sound and Vibration\Analog_Input\DSA_AI_SFP.lvproj
%ProgramFiles%\NI\LVAddons\nisvt\1\ProjectTemplates\Source\Sound and Vibration\Impact Test\Impact Test.lvproj
Both these sample projects leverage a retriggerable analog reference trigger VI that continuously monitors the input channels and updates each time a trigger is received on the specified trigger channel.