Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

scxi-1600 hangs.

Hi,

I'm using SCXI-1600 DAQ module with SCXI-1100 multiplexer
and SCXI-1163 module for digital control.
The Delphi software reads all 32 analog channels via
SCXI-1100, and sometimes controls hardware using SCXI-1163.

The problem is that sometimes (once per 3-4 days) software looses SCXI connection. The front LED activity indicator doesn't blink, but software doesn't have any error
status messages and shows that everything is fine
(with the stable analog readings).
Can someone help me with this strange problem?
Thanks, Peter (pkravt[at]mail.ru).

All SCXI operations are executed in a separate thread.
Simplified code is follows:

procedure TDAQThread.Execute;
begin
...
// Initialize SCXI tasks
DAQErrorChk(DAQmxCreateTask('AI task', @TaskHandle));
DAQErrorChk(DAQmxCreateAIVoltageChan(TaskHandle,'SC1Mod3/ai0:31','',DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,nil));
DAQErrorChk(DAQmxCreateAIVoltageChan(TaskHandle,'SC1Mod4/ai0:31','',DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,nil));
DAQErrorChk(DAQmxCreateTask('DO task', @DOTaskHandle));
DAQErrorChk(DAQmxCreateDOChan(DOTaskHandle,'SC1Mod2/port0','',DAQmx_Val_ChanForAllLines));
DAQErrorChk(DAQmxCfgSampClkTiming(TaskHandle,'',200.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,2));

while not Terminated do begin // Until thread stops
...
AcquireAI;
...
UpdateValves;
...
// here goes delay for at least 3 seconds
end;
...
end;

procedure TDAQThread.AcquireAI;
Var i :integer;
data: array [0..4096] of double;
read: LongInt;
begin
DAQErrorChk (DAQmxReadAnalogF64(TaskHandle, 2, 5,DAQmx_Val_GroupByScanNumber,@data,256,@read,nil));
...
end;

procedure TDAQThread.UpdateValves;
var i: integer; read: LongInt; DO_data : array [0..31] of byte;
begin
...
DAQErrorChk(DAQmxWriteDigitalLines(DOTaskHandle, 1, 1, 2.0, DAQmx_Val_GroupByChannel, @DO_Data, @read, nil));
...
end;
0 Kudos
Message 1 of 9
(4,949 Views)
I would recommend upgrading to NI-DAQmx 8.0, because I know that there were some issues with the SCXI-1600 that were fixed in this version of the driver:

http://digital.ni.com/softlib.nsf/websearch/4C9E45F6EE5C29F98625708900712CBC?opendocument&node=132060_US

Please let me know if this resolves the issues that you are seeing.

Logan

0 Kudos
Message 2 of 9
(4,942 Views)
It seems like your advice helped.
I'll check it for one more week...

Thanks a lot,
Peter.
0 Kudos
Message 3 of 9
(4,910 Views)
Hi,

The problem appeared again on the new system.
I've installed there NIDAQ 8.30 as the most recent.
Does NI reproduce old corrected errors in new software?

A year ago installation of the NiDAQ 8.0 had solved
this problem. Should I roll back to 8.0 from 8.30???
0 Kudos
Message 4 of 9
(4,693 Views)
Hi Peter,

Theoretically the fixes that were implemented into DAQmx 8.0 would carry over into DAQmx 8.3.  I would expect that rolling your drivers back to DAQmx 8.0 will not solve what you are experiencing.  It is not unheard of though that driver changes designed to address issues in one area could inadvertently affect the functionality of other areas.

With that being said, if you do roll back your drivers to DAQmx 8.0 and the error goes away, I would be more than happy to try and reproduce your issue here and file a report with R&D.

Without knowing more about what you are experiencing, I am tempted to believe that this is a new and separate issue.  Could you describe the behavior that you are now seeing?  Is it the exact same symptoms as the issue that you saw last November?  Thanks Peter, I will be looking forward to your response.

Best Regards,

Jeff Tipps
Applications Engineer
National Instruments
0 Kudos
Message 5 of 9
(4,671 Views)
Thanks for answer.

Yes, the symptoms are the same.
No errors, but connection is lost.
And all analog input signals are "frozen".
I saw it twice this week.
Tomorrow I'll try to roll back to ver.8.0.
and check it next week...
The only difference is that now I have 1 SCXI-1100
card (32 analog inputs instead of 64 last year).
But I don't think this could cause this problem!


Peter.
0 Kudos
Message 6 of 9
(4,668 Views)
Thanks Peter, I'll keep an eye out for your response.

Best Regards,

Jeff Tipps
Applications Engineer
National Instruments
0 Kudos
Message 7 of 9
(4,655 Views)
I had changed NI-DAQ 8.30 to 8.00 1.5 weeks ago.
And no hangs still that.
So it seems to be the old bug in 8.30 😞

Best regards,
Peter.
0 Kudos
Message 8 of 9
(4,598 Views)
Peter,

So rolling back the drivers to 8.0 did fix the problem!  Thank you for posting it to this thread, I will collect the hardware and reproduce the problem with DAQmx 8.3.  Our driver developers would be very interested to hear about the reappearance of a bug.

Thanks again,

Jeff Tipps
Applications Engineer
National Instruments
0 Kudos
Message 9 of 9
(4,583 Views)