12-20-2009 11:00 AM
Are there any errors in this attached .vi; if a person is using NIDAQ 6.9.3; LABVIEW 6.1; an SCB-68 breakout box a DAQCARD AI-16XE-50; MAX version 2.2; analog input channels 0 ( I call RES) connected to pin 68; and channel 1 (I call SP) connected to pin 33; AIGND connected to pin 67; PFI7 (pin 38) and DGND.
Please note that pin 38 (PFI7) is always at +4.9 Volts DC and I have not yet had the nerve to address the suggested possibility that it is caused by lack/presence of a pullup/ pulldown resistor . Any help on thaat front will also be deeplly appreciated. Thanks in advance
Solved! Go to Solution.
12-21-2009 01:40 AM
Hi,
That VI is serching for following VI can you attach that vi's also
1) Calculate buffer size.vi
2) Set up Conditional Retrieval.vi
12-21-2009 07:21 AM
I tried to run the .vi you mentioned yesterday and was not prompted for those two sub vi's. After firing up the computer this morning I have the same problem as you experienced. The problem probably was that I was storing files in a different hard drive directory. Hopefully I've now attached the two files below.
BUT FIRST please try the additional attached .vi (Acquire N Multi-Digital Trig.vi). I simplified the old code a bit; changed some parameters; and suprise suprise have been able to get the PFI7 line to accept a single pole switch trigger (connected between pins 38 and 39).
I'm attaching the new code and we can both see if the new program works. Thanks for your interest.
12-21-2009 07:32 AM
I just tried the .vi (Acquire N Multi-Digital Trig.vi) in the last post and it works like a charm for me. Press the STOP button to exit the .vi. It takes a few seconds to complete (I'll check but I think the 5 second delay might still be in the code somewhere.)
Now I can update and export this trigger code into my real program. I've still got a bit of a challenge converting the single pole switch; to my real program that has a Maxim 6816 debounced switch. I turns out the Maxim is a CMOS device and the DAQCARD is looking for TTL signals. Any hints. Thanks everyone.
12-21-2009 07:48 AM
I removed the 5 second delay and it now exits fast and cleanly just by pressing the stop button. I'm just collecting millivolt signals so most others using this code will need to change the scale on the right axis of the graph.
I encourage others to post actual example of .vi's. I've literally searched for years trying to get this solution. The DAQCARD AI-16XE-50 doesn't have analog triggering; and this vi is probably the first solution posted to the WEB. Without helpful hints I would have also given up.
The latest .vi is attached below