LabVIEW USB-6366 sample 2 AI and Encoder Value triggered with X1-Encoder (not with sample clock) - Help needed, please

Hello World,
after 10 years of LabVIEW experience I'm totally lost.
This is my first project with DAQmx and I don't know how to handle it.
My setup: Windows7; LabVIEW 2012 DevSuite; X-Series USB-6366
My goal: Trigger the encoder value and 2 Analog Inputs
I would like to get one result for the encoder value and each of the two analog inputs for each change of the encoder value (not more!!! I don't want to sort a huge amount of data afterwards)
I've been able to configure it with the Measurement and Automation Explorer, but have no clue how to get this in a LabVIEW configuration.
All examples I could find are reading the analog Inputs and the Encoder with SampleClock. That's not what I'm looking for.
I would greatly appreciate if someone could guide me to my solution.
I've attached the exported confiuration of the Measurement and Automation Explorer.
Thanks in advance, best regards,
Balze
P.S.: Sorry I had to ZIP the *.nce file, because NI doesn't allow to attach *.nce files
Solved!
Go to Solution.
Attachments:
configData.zip ‏290 KB

Hi RupiDo, hi Kevin P.
thank you for your effort and your willingness to help me. I aprreciate it!
@ RupiDo:
I'm aware of the DAQmx Timing.vi but where do I find I/O filtering (which context menue?)
DAQmx is a Monster for me. It's for sure felxible and powerfull but how to configure it is not obvious for me. Also the dependencies are unclear to me. I tried things and get an error at run-time that this or that is not supported, reserved, ....
Nyquist Shannon doesn't matter very much for my task. I measure DC voltages with litlle changes. But thank you for pointing this out.
Retriggerable property node?? Where's that? (This maybe not obvious for me, because it's a german LabVIEW I've got to work with)
@ Kevin P.:
Yes, it's a quad-encoder with A,B and Z but Z is still unused (and will be unused for now)
I've got similar problems to setup your solutions.
When I try to configure "Change Detection" I get error messages, that it's not supported. "allow buffer overwrites"??? I seached for it very thoroughly,but without success.
I looked at a lot of examples but always found solutions with buffered aquisition. I'm already willing to use buffered aquisition, but I even can't setup this.
I FEEL SO STUPID Over 10 years LabVIEW experience and the first DAQmx project let's me stumble.
I tried a buffered aquisition based on an NI example. But it only works for one analog input channel. The other brings up en error (-50103). Which one of the two analog channels brings the error is randomly.
Maybe someone could explain me, what leads to this error, that I could start understanding DAQmx.
I've attached the VI (LV2012) and screenshots of the frontpanel and the blockdiagram.
Thanks in advance, best regards
Balze
Attachments:
Meas Angular Position-Buffered-Cont-CtrClk-1.vi ‏72 KB
vi_panel.png ‏95 KB
vi_block.png ‏87 KB

Similar Messages

Maybe you are looking for