annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

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
Messaggio 1 di 31
4.506Visualizzazioni

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
Messaggio 2 di 31
4.496Visualizzazioni

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
Messaggio 3 di 31
4.484Visualizzazioni

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
Messaggio 4 di 31
4.476Visualizzazioni

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

0 Kudos
Messaggio 5 di 31
4.472Visualizzazioni

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
Messaggio 6 di 31
4.468Visualizzazioni

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
Messaggio 7 di 31
4.463Visualizzazioni

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
Messaggio 8 di 31
4.460Visualizzazioni

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

Messaggio 9 di 31
4.454Visualizzazioni

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
Messaggio 10 di 31
4.446Visualizzazioni