02-25-2018 10:52 AM
Hi
I am using triaxial accelerometer with the cDAQ-9181 and NI9234. When I run the "Test Panel.." feature from the NI MAX, I can read everything with no problem. I also started a task and it runs with no problems.
I then try to run the C# .NET example, named "ContAccelSamp_IntClk_AnlgStart" from Analog In ==> Measure acceleration folder from the DotNET4.5.1 folder.
I can see the 3 axes identified in the "physical channels" text box.
However, no matter what I put in the other fields, I get this error: "an attempt has been made to use an invalid analog trigger source"
I tried to enter "none" in the trigger field but it didn't change anything.
What can I do?
02-26-2018 05:46 PM
hi Warlord,
interesting that this happens when you have no trigger. What happens when you leave the trigger source blank?
02-27-2018 03:35 AM
If I leave it blank I get the same error.
02-27-2018 03:43 AM
I solved it by commenting out:
//myTask.Triggers.StartTrigger.ConfigureAnalogEdgeTrigger(triggerSourceTextBox.Text, triggerSlope,
// Convert.ToDouble(triggerLevelNumeric.Value));
// myTask.Triggers.StartTrigger.AnalogEdge.Hysteresis = Convert.ToDouble(hysteresisNumeric.Value);
02-27-2018 03:56 AM
Now, how do I read all three channels simultaneously in the .NET example?