ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DO task randomly stops (no errors generated)

Attached is a simple little VI that generates a digital waveform and outputs it to the one of the DO pins.

 

For this example, it is a 50 kHz digital signal.  If I let this VI run, it will just stop randomly and without any error.

 

This appears to happen randomly.

 

I am using LabVIEW 2011 and DAQmx 9.3.5 using a NI-USB-6366.

http://www.medicollector.com
0 Kudos
Message 1 of 31
(4,072 Views)

To elaborate:

 

The problem is that it stops generating output after a random amount of time.  But the VI doesn't stop executing, nor does it generate an error.

 

Btw:  This issue appeared to start hapenning when I switched from a USB-6361 to a USB-6366.

http://www.medicollector.com
0 Kudos
Message 2 of 31
(4,062 Views)

I did verify that I see a roll over at 4.29 G with USB X Series as well.  I'll give your VI a go and see if I can reproduce the stopping behavior you see.

 

Dan

 

Edit: Got threads mixed up.  Roll over is in reference to this.

0 Kudos
Message 3 of 31
(4,050 Views)

Just ran the same code on my 6361 and it doesn't seem to freeze up.  Though I should let it run for a longer period of time.

 

I have a suspicion it only happens on the 6366. 

http://www.medicollector.com
0 Kudos
Message 4 of 31
(4,042 Views)

If you put a wait in the while loop, does it still stop randomly?

0 Kudos
Message 5 of 31
(4,038 Views)

Yeah, adding a 100 ms wait to each iteration does not seem to have any effect.

 

In fact, if you try the attached VI, which outputs a 10 MHz digital signal, my USB-6366 almost immediately freezes up. 

 

But my USB-6361 doesn't freeze up at all.

http://www.medicollector.com
0 Kudos
Message 6 of 31
(4,034 Views)

Whoops.  My bad.

 

This error actually DOES occur on both my USB devices:

 

USB-6351

USB-6366

 

But does NOT occur on my PCIe device (PCIe-6363).

 

Am I doing something wrong here?  Can't seem to ouput a 10 MHz signal?

http://www.medicollector.com
0 Kudos
Message 7 of 31
(4,029 Views)

Btw:  I am also getting a similarly strange behaviour on my AI tasks.  Just freeze up and stop returning any data.  I'll see if I can isolate that issue, too.  

http://www.medicollector.com
0 Kudos
Message 8 of 31
(4,026 Views)

Can you put a DAQmx Is Task Done.vi in your loop?  I don't necessarily know that reading a write status property would return an error if one were to occur.

 

Dan

Message 9 of 31
(4,020 Views)

any chance you are running on an old machine with USB version 1 as aposed to USB 2.0 that added... were they pipes?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 31
(4,012 Views)