Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid analog trigger source using NI9234 and C# project Demo

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?

 

 

0 Kudos
Message 1 of 5
(2,289 Views)

hi Warlord,

 

interesting that this happens when you have no trigger. What happens when you leave the trigger source blank?

0 Kudos
Message 2 of 5
(2,248 Views)

If I leave it blank I get the same error.

0 Kudos
Message 3 of 5
(2,244 Views)

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);

 

0 Kudos
Message 4 of 5
(2,242 Views)

Now, how do I read all three channels simultaneously in the .NET example?

0 Kudos
Message 5 of 5
(2,241 Views)