LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DigitalSartandStopTrigger.vi not working with DAQ USB-6341

Hi,

 
I was using the DigiitalStartandStopTrigger.vi from http://digital.ni.com/public.nsf/allkb/BA775B0E445BFA79482571FE0032CCEB successfully last year to acquire analog data from a NI-DAQ USB-6341 using a PFI trigger rising and falling edge to start and stop the acquisition.  However, I have recently tried to use the same code and I have seen that nothing at all happens - it seems like the atart and/or stop triggers are not seen at all by Labview, but apart from that I cannot really understand more about what the problem is.  As far as I know, nothing on my system has changed since the last time I used the code and it worked.  I am still using the same version of labview (2013) and exactly the same DAQ board. The connections are all good, as I can open NI MAX and see that the PFI port can be read as input (one of the 7 lines is active).  
 
Can anyone help with this?  I am a little bit desperate as i have been trying to solve this for a while but I simply cannot see any reason at all for the code to stop working only a few months after it was working perfectly.  Any advice or suggestions as to how to understand and solve the problem will be very gratefully received!
 
Thank you!
Anna
0 Kudos
Message 1 of 6
(2,936 Views)

Have you tried to change the PFI line? 

Maybe the line you were using is broken!

0 Kudos
Message 2 of 6
(2,887 Views)

I tested the line on NI MAX, and it seems to work there.  Also, I can take the digital output fom the line directly into Labview, so it seems that it is only as a trigger that Labview does not see it - can you think of any reason why this would be the case?

0 Kudos
Message 3 of 6
(2,877 Views)

Can you post a screenshot on how the FP of the example that you are using is configured?

0 Kudos
Message 4 of 6
(2,858 Views)

Here is the configuration I wanted to use

0 Kudos
Message 5 of 6
(2,843 Views)

I was wondering if the problem was related to the fact that I can only specify a PFI port as trigger, rather than individual lines - as you can see int he screenshot I have PFI1 selected.  I know from the NI MAX test panel measurement that the signal is only seen in port0 of the seven ports of PFI1.  But I am not sure this is the problem, as previously (last year) the code ran successfully without any need to specify the port.  Its only recently that it stopped working in this configuration.

A

0 Kudos
Message 6 of 6
(2,827 Views)