Hi Jacob,
Sorry it took me some time to respond but if you still have problems with this. I would suggest you take a look at the example i attached. You can also find this example with the NI Example finder because it comes standard with Labview.
There you will also find the description of what the example will do. But in short you are going to have to configure your analog measurement to be triggered on a digital edge change.
In the NI Example finder are perhaps also other examples that can help you. Try it out. You can find the example finder on the bottom right when you are in the getting started screen or when you are in a vi, go to help and then select find examples.
Once the example finder is open navigate to Hardware input and output -> DAQmx -> Analog Measurements -> Voltage, there you will find the example i attached with a description. Good luck and keep me posted.
Kind Regards,
Joris Donders
National Instruments
EMEIA GTM Lead for Semiconductor
www.ni.com/semiconductor