I am new to LabVIEW, and so am trying my best to figure it out but I am having trouble. I am using the NI PXI-6133 S series device.
I have two AI Voltage channels and I need to trigger both channels, with pre- and post- trigger samples for both, whenever either one meets its individual trigger condition. I have successfully been able to trigger both channels with just one as the trigger source, but ultimately I need to be able to use all of the channels as trigger sources.
It seems like I should be able to do this with Reference Analog Multi Edge Triggering, according to the DAQmx 19.0 Manual: "[...] you can configure multiple channel sources acquiring in the same task to each have their own analog trigger condition. When any of the multiple channel sources satisfy their respective condition, a trigger is generated and the device will perform the specified action associated with the trigger." But when I tried this (vi attached) I got the following error:
-200077 at DAQmx Reference Trigger (Analog Multi Edge).vi:
Possible reasons: Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.
Property: Ref.TrigType
Requested Value: Analog Multi Edge
Possible Values: Analog Edge, Analog Window, Digital Edge, none
Additionally, I read here (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000004A09SAE&l=en-US) that an AI channel cannot be used as the reference trigger source when you need pre-trigger samples for multiple channels, which is what I need to do. It says that the PFI needs to be used as the trigger source instead. But that is only for E series devices, whereas I am using an S series device. I read something similar here (http://www.ni.com/documentation/en/ni-daqmx/latest/devconsid/anltrigeseries/), which also says that with more than one channel being used for the reference trigger the PFI needs to be used instead of AI, but again, this is in reference to E series devices.
So, I am not sure if I need to change something in my vi in order to get the Multi Edge triggering working, or if I need to use the PFI rather than just the analog inputs, or if there is a completely different way to achieve this. I have been trying to work this out for a few days now but I am a bit lost at this point. Any help would be greatly appreciated.
--Alex