LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200019

Solved!
Go to solution

Hello GerdW,

 

After almost 5 hours it's still running. Could this mean there is no issue regarding ADC, but code issue? 

0 Kudos
Message 11 of 15
(853 Views)

I'm curious about the root cause on this one.  In my experience, I never see that error when devices generate their own clocks internally.   DAQmx knows various devices' clock rate specs, and will either error out or coerce attempts to configure a task using a clock rate the device can't support.

 

When a task uses an external clock, DAQmx *can't* know the rate ahead of time and is vulnerable to this error.   Also, clock signals physically routed in from the real world will typically be more prone to finicky connections, impedance mismatch ringing, glitches, other noise, etc.

 

Your observations so far suggest that your hardware-sounding error was fixed by a software change to the simple, well-structured code from GerdW.  I would not expect that particular error to be fixable via software unless it was about a change from an external to an internal clock.

 

The only thing I see in your code that I can even *imagine* might have an effect is that you also have a DO task that might be toggling relays. I don't know what's on the load side of those relays, but perhaps the switching induces some anomaly into your setup that could in turn affect the internal clock signal?   I'm out of depth on this level of electronics, but *have* seen odd anomolies from things like arc welders in a nearby shop, motors switching on and off, and other things.

 

Anyway, you might try a comparison using your code, but with all the DO removed.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 12 of 15
(831 Views)

Hello Kevin_Price,

 

Today I connected an False boolean array to the DO, so no relays are switched. It now runs for almost 5 hours without problems. Logging etc. works.

 

The DO switches 3 relays actively on/off. The load on those 3 relays are a comperssor which has a 350W DC electromotor. Inrush current of such an electromotor is about 100A for max. 200 ms. I know youre not in depth in that level of electronics, but do you remember a solution in those situations you've seen?

 

I've also simplificated some stuff, what GerdW had mentioned.

 

Thanks for the help all.

0 Kudos
Message 13 of 15
(805 Views)
Solution
Accepted by MarkVBA

Those are far bigger motors than anything I've ever dealt with.  My ability to give electrical engineering advice is very *very* limited, but I'll take a shot at it and hope someone else can join in with more thorough suggestions.

 

1. Electrically isolate your chassis from the main power used to operate your big motors.  Try powering it with a battery.

 

2. Isolate the relay control signals you generate via DO from the relays themselves and put some significant distance between your cDAQ unit and the relays and motors.  Check into opto-isolators for example.

 

3. In addition to electrical isolation and distance, there are other good practices to try such as shielding.  One of NI's popular guidelines is here, though it's likely there are more specialized recommendations out in the industry for fast transients of large currents such as yours.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 14 of 15
(802 Views)

Hello All,

 

Hereby an update regarding the project. I ran several tests, to figure out the problem. The test rig is now running without issues for one day. Before it ran only for max. 2 hours. 

 

I changed the relays which are switching the compressors. The new relay has an resistor parallel over the coil inside the relay, to absorb spikes created by the coil while the relay is shut down. The previous didn't had this resistor. For now it works, but I will be looking  to implement at the options of Kevin_Price as wel.

 

Thanks for the reactions. I'll consider this problem solved.

 

 

0 Kudos
Message 15 of 15
(779 Views)