12-02-2014 05:00 AM
i am using scb 68 and ni pxi 6133 data card .
the problem is that i am not able to get the correct value form the pin AI0 of scb 68 . though when i m measuring it with multimeter it is showing the correct value on AI0
Is there any problem with daq assist configuration??? If not What is the sol?
plz help?
here is my code
12-02-2014 06:56 AM
First of all you should check the mentioned channel just by using the MAX (Measurement & Automation Explorer).
It should show you the signal. If it works there, the problem is in your VI.
I cannot really say anything about your Express VIs, since I never use them. Also, you have really strange array manipulation, with many unnecessery functions...
I would recommend you to learn how to do PROPER DAQmx programming, there are lots of examples in LabView, via Help --> Find examples --> Hardware --> DAQmx...
12-02-2014 07:10 AM
My guess: wrong terminal configuration vs. wiring. What terminal configuration did you use? RSE/NRSE or Differential? Are you sure that you are using the correct connectors for this setting at AI0?
Norbert
12-02-2014 09:12 AM
12-02-2014 11:02 AM - edited 12-02-2014 11:04 AM
@Blokk wrote:
Also, you have really strange array manipulation, with many unnecessery functions...
I fully agree with that assesment! I won't comment on the DAQ parts, but I stronly suggest that you post your array manipulations elsewhere so we can figure out what you actually want to do and suggest sane alternatives. The current code is pure Rube Goldberg!
Also note that your current DAQ read and write operations occur in parallel and there is no way to tell what occurs first. Typically the order matters in this kind of scenario. Does it?
12-02-2014 11:48 AM
The DAQ assistant isn't a problem
The array stuff has been hashed around already
Now let's look at the to-from DDT blocks Actually no surprise! they are mis configured and I doubt you even need a loop! just some error wires to enforce data flow
12-02-2014 12:20 PM
Again the evil Express DAQ and the dynamic data in action! 🙂 If you use DAQmx VIs, you could get array of doubles...