NI-DAQmx task works in MAX or DAQ Assistant test panel but not in LabVIEW

I am attempting to read a single AI channel from a PCI-6024E card via an SCB-68. I have created a NI-DAQmx Analog Input Voltage Task in MAX for this channel, sampling in contiuous aquisition mode at 100 kHz, 10000 samples at a time, with RSE terminal config. If I use the Test feature from MAX, the channel acquires data as expected.
In LabVIEW, I call this task using an DAQmx Task Name Constant. If I right-click this constant and select "Edit Task", the Daq Assistant opens and I can use the Test feature from the DAQ Assistant to see that the data is still being acquired as expected.
However, when I try to programmatically read this channel in LabVIEW using the VI "DAQmx Read (Analog Wfm 1Chan NSamp).vi", the VI returns a constant DC value of 500 mV, which I know is incorrect (I can monitor the signal across the two terminals in the SCB-68 with a DMM to know that the signal coming in varies as expected, and as I read using the test panels). This erroneous reading occurs even if I make a new VI, drop the task name constant on the diagram, right-click the task name constant and select "Generate Code - Example" and let LabVIEW create its own acquisition loop (which is very similar to what I already set up, using the "DAQmx Read" VI).
Any ideas why the Test Panels work correctly but the LabVIEW code does not?

Hello bentnail,
I'm not sure why the test panels are readin the value correcly but the LabVIEW code does not, but there are a couple of things we can try.
1) What happens if you just use the DAQ Assistant and place it on the block diagram? Does it read out the correct values?
2) Try running a shipping example that comes with LabVIEW. "Acq&Graph Voltage-Int Clk.vi" should work well.
3) What kind of signal are you expecting to read (peak to peak voltage, freqeuncy, etc.)?
Thanks,
E.Lee
Eric
DE For Life!

Similar Messages

  • Correct termocouple reading by VI channel test panel but not by DAQ wizards.

    1. I am getting correct termocouple readings when using the virtual channel test panel, but not when using labView software created by the DAQ wizards. why and how to solve it?
    2. I am unable to switch on 6V relay using DAQ card's output voltage but able to do so using other voltage supply. How to solve this?

    In answer to #2, the DAQ card's analog and digital outputs cannot drive
    enough current to turn on a relay. What you need to do is use the output to
    drive a MSOFET or transistor that will drive the relay. You can use the 5V
    computer supply that is available on the DAQ card connector as the power
    supply that the MOSFET or transistor use to turn the relay on.
    Neal Pederson, President, VI Control Systems
    1923 Mendius Lane, Los Alamos, NM 87544
    TEL: (505) 662-1461, FAX: (603) 388-4969
    [email protected], www.vicontrols.com
    "DAQprojects" wrote in message
    news:[email protected]..
    > 1. I am getting correct termocouple readings when using the virtual
    > channel test panel, but not when using labView software created by the
    > DAQ
    wizards. why and how to solve it?
    >
    > 2. I am unable to switch on 6V relay using DAQ card's output voltage
    > but able to do so using other voltage supply. How to solve this?

  • DAQ card works with NIDAQ test panel but not with VB app/Component works

    I am seeing this problem with 2 different DAQ cards. The card works fine with the NIDAQ test panel, but acts like the return lead is lifted with my VB app. The plotted signal appears to be little more than noise. Channel scan is internally triggered; that apparently works fine. The VB app is running in this configuration successfully in other areas, and I fixed this problem once by swapping cards. Currently, I lack a spare, as my "spare" is showing the same symptoms. Any helpful hints?
    Card type: AT-AI-16XE-10
    Configuration: Double-ended input, +/-10V range
    Running: VB6, NIDAQ 6.1, ComponentWorks Std. 2.0.1, Windows NT 4.0 SP5

    I upgraded to NI-DAQ 6.8.1 (with patch), but no joy. The upgrade went smoothly, the card was recognized and I was able to set the resources without a problem. The test panel works fine looking at the actual signal on the target system: slowly varying DC between 0-5 V or so. My app works fine also, except that it behaves as though the A/D is not connected to anything: noise between .05-.1 V or so. I swapped DAQ cards between the test system and my development system. The problem appears to be in the test system, not on the card. Another test system, identical except for (now) the version of NI-DAQ, works fine. I'm stumped!
    BTW, why are there 3 DMA channels listed in the configuration for this DAQ? Do all 3 need to be assigned? I've run some systems
    for years with only the first 2 assigned.

  • Is it possible to maintain the last AO value after the DAQmx task is done on device DAQ USB-6341 ?

    Hi all,
    I use the device DAQ USB-6341 to generate the desired voltage waveform by the "finite samples" sample mode.
    I notice that the channel resets to zero volts after the DAQmx task is done and the DAQ USB-6341 does not have 
    the property AO.idleOutputBehavior to select "Maintain Existing Value".
    How can I maintain the last AO value after the DAQmx task is done on device DAQ USB-6341 ?
    Thanks.
    Godel

    How many computers do you have in the network?
    What is the IP address and default gateway number on your computer?
    In order to connect to the wireless network, WVC80N should get valid IP address from the access point.
    If the access point has capacity to assign a private IP address to the computers and devices then I think you can use WVC80N.

  • Unknown error when adding a DAQ assistant to a blank VI in LabView 2014

    Hello,
    I currently have an issue when I try to add a DAQ assistant to a blank VI  in LabView 2014 Service Pack 1, version 14.0.1.
    It was working previously and has now stopped working.  I have reinstalled LabView 2014 but the problem still exists.
    I have also reinstalled NI-DAQmx 14.5 but this did not cure the problem either.  
    I have made sure that the C:\Program files\National Instruments\MAX folder has Read & execute, List folder contents, Read function allowed for the user account in use on Windows 8.1
    Thanks in advance for the help.
    Scott.

    As soon an the DAQ assistant is dropped onto the VI block diagram an error window pops up stating that "An unknow error has occurred" with an ok button.   This does not force LV to close, the DAQ assistant icon stays on the block diagram, the block is non functional i/o signals available to wire to, I can not access any properties for the DAQ assistant.  Other than that LV appears to be functioning.

  • Why is my Apple ID working on the Apple Website on the computer but not restoring my ipad... What is the problem with it????

    Why is my Apple ID working on the Apple Website on the computer but not restoring my ipad... What is the problem with it????

    LeesaHeeley wrote:
    When I go to settings/iTunes App Store my Apple ID is not there. When I enter my ID and password it does not save or link to account.
    When fist setting up your new iphone you will be asked to log in with an apple id and password. If this did not happen you can then do as you suggested going to settings to itunes and app store and add your apple id login. This apple id login must have already been created for the iphone to accept it. If this apple id is already created but is not being accepted by your iphone you then should shut down your iphone and restart the device.
    Good luck.

  • My phone as working fine until suddenly 90% of my music, most purchased, skipped over in shuffle. i then looked again and it had a little red circle next to the song and it wont play. It works fine on my iTunes on my laptop but not on my iPhone 4

    My phone as working fine until suddenly 90% of my music, most purchased, skipped over in shuffle. i then looked again and it had a little red circle next to the song and it wont play. It works fine on my iTunes on my laptop but not on my iPhone 4

    Reset the PRAM
    Reinstall the operating system from the dvd (you will not loose your data)

  • Serial communicat​ion works in hypertermi​nal but not in LabView

    Hello,
    I am trying to control an APP Automated Pressure Controller using LabView 6.1 via a serial connection.  I am able to control the system with Hyperterminal but not with LabView.  I set used the same setup (9600 baud, 1 stop bit, no parity, no flow control, etc) in LabView that worked in hyperterminal.
    According the the documentation from the Pressure Controller: "Every character that is sent to the controller is echoed back to your computer so you can check to see everything is working.  When a valid command is given, the controller will also send a carriage return (acsii 13) followed by a line feed (ascii 10) to signify the command was executed.  Before sending any commands, the program should clear any characters in the input buffer that may be there from previous responses."
    In hyperterminal, when I type in a command such as "OA", the Pressure Controller responds (without pressing enter or any other keys) and I can see the "OA" on the screen.  As soon as the Controller is done responding, the cursor moves down to the next line (which I assume is caused by the carriage return and line feed) and waits for the next command.
    I have tried to use the Serial Communication.vi with no success.  Does Hyperterminal add (or Labview omit) a special character or command that I am missing?  Do I need to do something special to clear the input buffer in LabView?
    Thanks for any help.
    Alex

    Hello,
    Try to run your application in other system (computer),
    frequently some PCs configurations are not recognized by LabVIEW serial
    routines. I do not know exactly the problem but is not the first time I know
    that kind of problem.
    Sometimes the problem comes from the serial property called
    Termination Character that enables receive buffered data once you have a
    Carrier Return or a Line Feed symbol (Hex 0D/0A) character into the buffer. Try
    to set it true and assign a 0A Hex Value.
    For sending information you need to finish all command
    message with an enter symbol concatenating both (Message + Hex 0D0A) using the
    special character in the string palette library. This action permits system to
    put out buffered data. 
    Good Look

  • IMovie works in Test account but not in main user account

    I have been having issues with iMovie such as lag time and trailers not playing back properly in preview mode. I created a new user account to see if it was isolated to my own user and sure enough the problems went away and iMovie is working smoothly.
    So what could be causing the issue on my user account? I tried to usual suspects: repair permissions, delete preferences, etc., but nothing helped.
    Any ideas?
    Thanks,
    Stephen

    Wondering if anyone has any thoughts on this issue? I can't figure out why it would work on a test account but not on my main account.
    Thanks!
    Stephen
    Message was edited by: El Gaucho

  • I don't have a phone plan, so I cannot text without wifi. I have been using iMessage to text my friends, until it stopped working. I can text my sisters email, but not my boyfriends iPhone. The send button will not turn blue. Help? Please?

    I don't have a phone plan, so I cannot text without wifi. I have been using iMessage to text my friends, until it stopped working. I can text my sisters email, but not my boyfriends iPhone. The send button will not turn blue. Help? Please?

    There is a problem with iMessage with what Apple says is a small number of iPhones and they are working on a fix. In the meantime try this:
    1. Settings > Messages > iMessage = Off
    2. Settings > FaceTime > FaceTime = Off
    3. Settings > General > Reset > Reset Network Settings
    4. Wait for the iPhone to Reboot
    5. Settings > FaceTime > FaceTime = On
    6. Settings > Messages > iMessage = On
    You may have to repeat the steps a couple of times.
      - with thanks to @deggie

  • HT204407 Find my friends Icon disappeared after upgrade to ios 8. I tried restarting as well as reinstalled the app but its not working. I can find it in Usage, but not in spot light. Pla help!!j

    Find my friends Icon disappeared after upgrade to ios 8. I tried restarting as well as reinstalled the app but its not working. I can find it in Usage, but not in spot light. Pla help!!

    I have exactly the same problem on a 4S on iOS 8. Have tried uninstalling, deleting FMF from backup, resetting phone and restoring from backup, but the problem remains. Sometimes the icon appears on a backup Home screen in iTunes, but it never appears on the phone itself. The app is accessible by going to the store, purchases and opening it from there. The app appears to have been running the whole time, but becomes invisible anytime I return to the home screen.

  • BK Precision device works in VISA test panel but fails when using driver

    I am trying to control a BK Precision XLN power supply.  I have set it up as a TCPIP VISA instrument using sockets (port 5025).  It validates fine in NI MAX, and when using the VISA test panels I can write to and read from it (although I get a timeout error on the read if I specify too many bytes).  When I use the supplied instrument driver blocks in LV, VISA read commands always timeout and fail to return anything, regardless of how many bytes are specified.

    I don't think it is a VXI-11/LXI instrument, it did not autodetect and I had to use the 'Manual Entry of Raw Socket' option to set up the device.  I am sending  a termination on the write (\n), if I don't send a termination on the read it captures the read but then gives a timeout error if waiting for more bytes, if I use a termination cahracter on the read it functions as you would expect, except that it returns multiple termination characters (line or carriage feeds) in some messages so you would have to perform multiple reads to get the whole message.  (this is all in the test panels, I haven't gotten anything back using the VISA blocks in a VI)
    Given that behaviour it seems more like what you would get using a telnet terminal interface but even given that I still am confused why I can talk to it with the test panel and not using the VISA blocks in a VI. 
    Thanks,
    Stearns

  • Simulated device in MAX, self tests without error and has working Test Panels, but doesn't show up in DAQ assistant.

    I'm trying to create a development machine where we can test new code without using our physical hardware. I've followed this guide in setting up a simulated device. I can get to step 3.2b, but the device does not show up in the DAQ assistant. In MAX, the device self tests and self calibrates successfully, and when I open the test panels, I see some sort of signal. I assume this is a default simulated input since I haven't told the device to look for anything? Note that the two devices I'm trying to create show up in the Devices and Interfaces section, but that even after running Self-Calibrate, the Self-Calibration date is still unspecified.
    When I try to test the device and create a voltage input according to the guide, I am unable to see either device in the DAQ task creator.
    Steps 1 and 2 of this guide are obviously satisfied. Step 3 is not, but this is unsurprising since a simulated device wouldn't be found in the Device Manager anyways. Also, I am not running RT, so step 4 is satisfied.
    Does anyone have any ideas?
    Solved!
    Go to Solution.

    That would be because the PXI 5124 is a digitizer not a analog input device.  You need to use the NI SCOPE driver not NI DAQmx
    Jeff

  • Path not working in win xp pro, can call java but not javac !

    Hello,
    I just upgraded to win xp and set up the J2SDK. I have set the path variable in the environment settings.
    when I tried to test this by typing java from my documents directory it works all right but not the javac command, to which it gives the error
    "'javac' is not recognized as an internal or external command,
    operable program or batch file."
    when I type path then I get the following result -
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\FSC\PCOBOL32;C:\Program Files\FSC\PCOBOL32;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;c:\borland\bcc55\bin; c:\jdk1.4.0_01\bin;C:\FSC\PCOBOL32;C:\PROGRAM\PCOBOL32 , so my path settings are correct.
    Why is this happening? Thanks for any help.
    - rdg
    P.S. I also am also unable to invoke the c++ compiler from my documents, so I think this may be a problem with my path, but then how am i able to call the java.exe ?

    -----BEGIN PGP SIGNED MESSAGE-----
    In win xp you must type the name of the directory as Dos-8 format,
    for example, if you want to use c:\J2sdk1.4.0_01 you must write in
    the path c:\j2sdk1~1.0_0
    -----BEGIN PGP SIGNATURE-----
    Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
    iQEVAwUBPWL6quIx3Zm+mBoJAQFhVwf/dM2pfQYN5Wp5AnmD+HV1Nx+5MSm1zmUs
    b3UPC8xJt0JhJItyims6YLEJKAv+Mrm0sk3fVyfg1o4Tcpw0bzG/RsVdsTsrmlDu
    vUlqWrxgTRH85IAjro83lGNuLUo6PKs10hVj4h4tqL8BkLE4pCkZfLT2tpG7VLt0
    YylUFx6DZQzF1HVK9+6MqYOvBEjxLhkNRHThNysUJj6SBkNHKDbDgnOcUQf+8PpZ
    RxItuKGUys6FdLSvrxonbj2qbHJ34Ewb/a8DL1MXcCOtP2QGIta4ozq/3SVPDAK4
    BD/NG97FsuYbL/l18Je4EzXRWqtG9IlIY8WBhbdx8X3B3fpuq8gICw==
    =UJDG
    -----END PGP SIGNATURE-----

  • HT1296 i just downloaded the latest version of itunes but now i cant zync my ipod. i tunes does not detect my ipod. ut just to work perfectly with the older version of itunes but not now. what is something i can do?

    i just downloaded the latest version of itunes but i cant zync my iphone nor my ipod. it just to work perfectly with the older version of itunes  but now itunes does not detect my ipod nor iphone. i have a windows pd and iwindows detects the iphone and ipod. what is something i can do to fix the problem??

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or               
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Featurs appin the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests

Maybe you are looking for

  • How do i transfer notes from one dead ipod to another

    i have an old, old ipod with notes i'd like to get back from. my problem is that it died a long time ago, and the charging bit in the ipod broke, so i can no longer access it. i recently got a new ipod, and i'd like to get the notes onto my new one.

  • The company code 5000 can no longer be initialized

    Hi, In omsy, i need to change the year from 2012 to 2011 but is not able to do so and gives the error MM011 (the company code 5000 can no longer be initialized). I have the materials and PO but GR is not done. Kindly help << Priority normalized >> Re

  • Price change in Schedule agreement but not updated in CDHDR and CDPOS

    Hi Experts We have change price in  SA ,please see the below screen shot. But these changes not update in CDHDR and CDPOS. We can see current rate in ME33L. Please guide how to update these changes. Regards Parkash Chand

  • How to achieve correlation in calls involving OSB services

    Hi, I have service call pattern like : A->B->C->D->E->F->A . The second call to A from F should be for the same instance of A that called B initially. Normally we achieve this using correlations in SOA 11g Bpel. (Where B,C,E,F services are OSB Proxy/

  • Retrieve data from AD from within a custom sharepoint 2010 webpart

    Hi, I have a requirement to retrieve user data from AD and display from within a custom built webpart. I am using the PrincipalContext class etc to get the info from AD, i have sucesfully done this in a console program without having to specifiy a us