Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger analog input using Crio with NI9229

Hello,

I'm quite fresh with LabVIEW, and I was recently thrown into a project without any education at all. I’m also the only one at the department, who is working with LabVIEW, so there’s no one to consult with when I get stuck.  

 

I’m using a CompactRIO with several different modules, but I’m concentrating on the NI9229 – which is an analog input module. The other modules are NI9219, NI9401 and a few, less relevant modules. The task that I’ve been given is to collect a specific signal (LIN BUS), which is generated from a “device”.  I need to gather one message frame, at 9.6 kbit/s, with the amplitude of 0-12V. I also need a Rising/Falling trigger, which needs to be adjustable in the host window. 

 

I’ve tried a bunch of different codes, and I basically used the Getting Started 9229 example and modified it to one single input with a trigger. But when I use the example, I just can’t seem to get the trigger working.  And I can’t get more than 4095 samples. The NI9229 reads 50kS/s, and I’m not quite sure if that is enough.  

 

It may appear that I’m unsure about quite a lot, and that is because I am. Since I’m operating as a kind of “consultant”, they left me in the dark without access to specifications and knowledge. Therefore, I hope that you guys can enlighten me. 

 

Best regards

Tim Jansson  

 

Message Edited by MightyEKA on 10-29-2009 03:15 PM
Message Edited by MightyEKA on 10-29-2009 03:16 PM
0 Kudos
Message 1 of 3
(3,841 Views)
I'm attaching my FPGA and my HOST vis.
Download All
0 Kudos
Message 2 of 3
(3,824 Views)

Hi Tim

 

I saw the disclaimer you posted in the duplicate post, no worries. I thought I'd just link them together just the same. The other post is here.

 

Best Regards

 

David

NISW

 

Message Edited by Davidek on 11-02-2009 10:03 AM
0 Kudos
Message 3 of 3
(3,788 Views)