LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

continuous analog input - with no errors

I'm using a PCI1610/1611E board (not sure what they're currently described as - but that's what I have) - with LabVIEW 6, and NI-DAQ 6.8, what I need to do is continuously read in from analog channel 0, however, every single example that ships either leaves me with sampling errors (the waveform I'm reading in is very definatly not what it should be), or when I can sample properly I'm left with 'frames', the points where the buffers change over introduce an error. I have searched the site, but have yet to find anything - if anybody out there has any ideas, I would be most grateful for some insights.
0 Kudos
Message 1 of 9
(3,503 Views)
Hi;

Do you try the comtinously acquisition and graph example from NI.
Many things could introduce error, buffer size and scans to read at time, input limits....
What Errors do you get ?
I get a PCI 16E4 and all VI run, if all parameters correspond to the board.
Could you tell me what errors are ?
or send me your VI.
sorry for my frenglish.

Regards
Greg
Greg S.
CNRS
LV 7.1 8.2 8.6 2009 2011 2012 2013 2014
LPMC - CNRS
N'oubliez pas de complimenter cela fait toujours plaisir.
0 Kudos
Message 2 of 9
(3,503 Views)
Hi - there are no errors from the card or software - it's in the data itself - what should be a nice sinewave ends up being some sort of sawtooth - and I have looked at all the ni code I could find.
0 Kudos
Message 3 of 9
(3,503 Views)
So did you test your card with max to see if you got a sinewave, if yes, it is a VI problem.
If you didn't get the sinewave is a board problem.
I think if with the Continously Acquisition and graph VI , you get pbs, is the board, if limits and buffer and scan rate is good, that have pb.
Greg S.
CNRS
LV 7.1 8.2 8.6 2009 2011 2012 2013 2014
LPMC - CNRS
N'oubliez pas de complimenter cela fait toujours plaisir.
0 Kudos
Message 4 of 9
(3,503 Views)
Looking at max - yes I have a sinewave - unfortunatly I'm working at a frequency of about 100kHz, os can't tell for certain how well it is sampling. I have tried everything I can find, and have tweaked every way I can think of - I really don't know what to do to solve this problem.
0 Kudos
Message 5 of 9
(3,503 Views)
I don't know if this will help but if you can use occurrences to determine
when the buffer has enough data to read this attached VI should work.
Good luck. I was able to acquire at 100kHZ with no problem using a 6052E.
-Tom

"kvlb" wrote in message
news:50650000000500000006660000-1012609683000@exchange.ni.com...
> Looking at max - yes I have a sinewave - unfortunatly I'm working at a
> frequency of about 100kHz, os can't tell for certain how well it is
> sampling. I have tried everything I can find, and have tweaked every
> way I can think of - I really don't know what to do to solve this
> problem.



[Attachment Test AI Read using 6052E with Occurrence.vi, see below]
0 Kudos
Message 6 of 9
(3,503 Views)
Sorry I forgot to include this file as well. You'll also need this modified
AI read (binary) for the top level to work.
-Tom

"kvlb" wrote in message
news:50650000000500000006660000-1012609683000@exchange.ni.com...
> Looking at max - yes I have a sinewave - unfortunatly I'm working at a
> frequency of about 100kHz, os can't tell for certain how well it is
> sampling. I have tried everything I can find, and have tweaked every
> way I can think of - I really don't know what to do to solve this
> problem.



[Attachment AI Read (binary).vi, see below]
0 Kudos
Message 7 of 9
(3,503 Views)
Thanks - unfortuanly I'm running a PCI1611E - it was the first response I had that uses a 6052 - I've had a look at the program - and attempted to run it - but it errors - saying that "The specified device does not support the requested action (the driver recognizes the device, but the action is inappropriate for the device)."
0 Kudos
Message 8 of 9
(3,503 Views)
Try this one. I have eliminated the Occurrence function and the Wait on
Occurrence. The VI should also work for a PCI1611E.
-Tom

"kvlb" wrote in message
news:506500000005000000AC660000-1012609683000@exchange.ni.com...
> Thanks - unfortuanly I'm running a PCI1611E - it was the first
> response I had that uses a 6052 - I've had a look at the program - and
> attempted to run it - but it errors - saying that "The specified
> device does not support the requested action (the driver recognizes
> the device, but the action is inappropriate for the device)."



[Attachment Test AI Read using 6052E.vi, see below]
0 Kudos
Message 9 of 9
(3,503 Views)