High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-5112 Exception error Calling Read() if does not trigger

I am using:

 

NI-5112

niScope.vb IVI driver wrapped for VB.NET

VB.NET 2005

 

 

If I call the Read() function using an edge trigger and the waveform does not trigger I get an exception falut that appears to be an "Invalid Parameter" error that I am trying to trap specifically so I can handle the issue correctly.

 

What is the best way to trap these timeout Errors?

 

0 Kudos
Message 1 of 3
(5,839 Views)

TrackerMan,

Have you taken a look at the example files for the DAQmx driver?   These are a great place to start when building your application.  They also show the recommended way of catching those errors, using a Try...Catch block around the code.  

 

-Christina

0 Kudos
Message 2 of 3
(5,811 Views)
Ok thanks, also would you know why the waveforms from the 5112 are returning with the last value always zero?
0 Kudos
Message 3 of 3
(5,805 Views)