Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication Interrupt USB-6212 VB.NET 2012 Laser Triggering

 Thank you for very much for your help.

 

My Question: Do you know of any reasons that Windows 7 or your USB-6212 can have temporarily interrupted communications? My program misses TTL pulse or hangs a little internally, acts sticky, when other windows programs are executed. These interfering programs can be simple as windows software balloon pops that occur on the tool bar.

 

I have written a VB.NET 2012 program and I use your new USB-6212 for data collection, digital pulse input and output. My program works as follows.

 

1. TTL Pulse out of USB-6212 to trigger laser to step, PFI 1.0

2. Laser sends TTL pulse back to USB-6212 to identify it is in wavelength position and it’s time to collect data, PFI 1.1 receives TTL Pulse

3. Following #2, the USB-6212 collects a single data point on channels AI0, AI1, and AI2.

4. Data is recorded to an output txt file on the hard drive.

 

The steps 1 - 4 are repeated over and over at 10 Hz rep rate for up to a 2 hour period. It works but at randomly during the data collection the program stops and seem to just be waiting. The program does not end. There are no error codes. The VB.NET program seems a little sluggish like it has high CPU usage or something. I have noticed that windows pop prompts, like windows balloon to notify that updates are available, can cause this to happen. If I remote desktop to this data collection computer from my office my data collection program will halt. This issue is that the program must send and receive the pulses to keep going. All it takes it missing one pulse and it would come to a stop before the data collection process has finished. It seems like there is a short term interrupt in communication between our computer, new Windows 7 pc and the USB-6212.

 

Do you have an idea of what is going on? Is there a national instruments error log file somewhere on the computer that I can look to see if I see a record of communication failure or some type of time out notation? I have turned off all windows sleep and hibernate to never. This did not help.

 

My scans can be 35,000 data steps. I get anywhere from 12,000 to 28,000 data steps completed before the program misbehaves?

Thank you. I will look forward to your response.

Thanks. Tony

0 Kudos
Message 1 of 2
(5,619 Views)

Hey Tony,

 

Can you try to replicate the error with an I/O trace going so that we can see specifically what event causes the error?

 

Here's a KB detailing the process of running a good I/O trace.

http://digital.ni.com/public.nsf/allkb/282C5D41E2BA04F2862574BA007803B9

Matt W.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(5,597 Views)