Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring Analog Triggers on NI9234

Solved!
Go to solution

I'm writing some custom software that interfaces with an NI 9234 digitizer module using the NiDAQmx C library.  I've been attempting to configure the unit with an analog edge trigger on one of the channels.

 

I use DAQmxCfgAnlgEdgeStartTrig() to configure the trigger, and it returns without error.  However, when I try to call DAQmxStartTask(), it returns with the error "An attempt has been made to use an invalid analog trigger source.  Ensure that the trigger source you specify matches the name of the virtual channel in the task or matches the name of a non-scannable terminal that the device can use as an analog trigger source."

 

I configure the channel using DAQmxCreateAIVoltageChan().  I've tried both setting nameToAssignToChannel to NULL to use the hardware channel name, and assigning the channel a different virtual name.  These both appear to work, as after configuring the channels I can use DAQmxGetNthTaskChannel to see that the names have been configured correctly, but trying to configure the trigger still fails with the above error.

 

I would appreciate any insight into this issue.

0 Kudos
Message 1 of 9
(6,661 Views)
Solution
Accepted by abamberger

Most Modules with 24bit ADCs, do not have hardware analog triggering.  You will need to implement a trigger algorithm in software (host computer, RT Target, FPGA)

Preston Johnson
Solutions Manager, Industrial IoT: Condition Monitoring and Predictive Analytics
cbt
512 431 2371
preston.johnson@cbtechinc
0 Kudos
Message 2 of 9
(6,659 Views)

I trying to trigger from a NI-9234 signal which is on a cDAQ9178 in LabView (with Start Analog Edge option). When I run the program, it constantly gives the following error. I appreciate it if some one can help me on this. 

 

"An attempt has been made to use an invalid analog trigger source.

Ensure that the trigger source you specify matches the name of the virtual channel in the task or matches the name of a non-scannable terminal that the device can use as an analog trigger source.

Property: Start.AnlgEdge.Src
Corresponding Value: cDAQ1Mod1/ai0

Valid Choices: none

Device: cDAQ1

Task Name: _unnamedTask<11>
"

 

Capture.PNG

0 Kudos
Message 3 of 9
(6,410 Views)

Hi Vara124,

 

The NI-9234 does not support hardware triggering. This KB should guide you through the process of how you could trigger on an NI 9233 or 9234.

 

http://digital.ni.com/public.nsf/allkb/4859504F14AF68DB8625721100640F26

 

If you need more help, I encourage you to make a new forum post and reference this one. This way you will be able to get more attention!

 

Thanks

Gabriel M.
Product Marketing Engineer - Academic Courseware
National Instruments
0 Kudos
Message 4 of 9
(6,379 Views)

Thank you Gabriel,

 

I have another question though, Is it possible to software triggering for ni9234 inside Labview? Does "DAQmx trigger" do software triggering? If not, I was wondering if there is any tools in LabView which can do so...

 

Thanks 

 

0 Kudos
Message 5 of 9
(6,363 Views)

Hi Vara,

 

it is possible to do software triggering inside LabVIEW. The links below show some examples from the community of how you would go about doing this:

http://www.ni.com/example/25034/en/

https://decibel.ni.com/content/docs/DOC-11764

 

Again, I encourage you to make a new post if you have further questions on this so that you can get more visibility.

Gabriel M.
Product Marketing Engineer - Academic Courseware
National Instruments
0 Kudos
Message 6 of 9
(6,328 Views)

Hello, 

I Have the same problem trying to configure the NI9234 module as an analogue trigger. However the link you posted is dead, is there any chance you may relink? 

Thanks, Luke 

0 Kudos
Message 7 of 9
(4,521 Views)
0 Kudos
Message 8 of 9
(4,520 Views)

Hi,

Is this the content you are looking for?

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019QljSAE

 

Hope it helps!

 

Parul M.

Applications Engineering

National Instruments

0 Kudos
Message 9 of 9
(4,490 Views)