Configuring DAQ channels through LabView program

Hi,
I want to scan one analog input of PCI 6025E every 250 msec and I scan 8 such channels. I am using AI Sample Channel VI to do this and for its channel input I am feeding a string (with channel name) that is typecasted using a Traditional DAQ channel constant. All the required channels are configured using this constant. However this VI doesn't seem to be portable. When I use it on a different machine, the constant shows no channels defined.
Is there a way to configure DAQ channels through my program such as to make the program portable? I came across notes that mentioned DAQ global channel but I don't know how to use it.
Thank you in advance,
Sharmila

One of the great things about DAQmx is that there are only 4 basic VI's to learn to use. The Configure, Read, Write and Stop. The same Configure VI that was used to setup the analog input channels can be used to setup analog output, digital in/out and counter in/out.
The small menu on the bottom of the VI is actually a listing of all the different operations that this single polymorphic VI can do. Click on the down arrow and you'll see what I mean.
I've modified the example to read DIO lines 0-3 and write to lines 4-7 on Port 0. Again it programatically builds the channel list so it will always refer to the correct device. To create individual channels for a digital line, you first specify the device, then the port, then the line or lines. Example, to create a task for lines 4-7 on port 0, you would use "Dev1/port0/line4:7".
Notice that the "DAQmx Create Channel.vi" is the same one used in the analog input configuration, but with different polymorphic selections. Also note the "DAQmx Read.vi" is the same except for the selector.
Ed
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Attachments:
Build Task and Scan Channels with DIO.vi ‏127 KB

Similar Messages

  • Help, Ni-Daq channel names and labview program error 10001?

    Can anyone please help me, I have inherited a role that I know nothing about. I have managed to get an NT pc to now recognise the SC-2345 board, set up and configure two channels and test them in Measurement and Automation program, this I managed after getting error 10401 and looking within these message boards which are very good.
    I have then started a labview program, previously written by ex-employee, and now get error 10001, after trawling the FAQ and forums I think that I have a naming error in the virtual channels created, how do I find out what the channels should be named within the Labview program, do I need to load an editor etc and then open a config file?
    Sorry if this seams like a simple error, but I am trying to learn the software from a book that is a little tattered.
    Regards

    Hi,
      error 10001 can be caused by a few things including an incorrect scanning order.
    If you'd like to post your code back onto here (or if it's large, ftp it to ftp.ni.com/incoming and let use know the name of the zip file you've packaged it into), then we can see what the DAQ section is supposed to be doing and hopefully provide some clues as to where to look for the information / why the error is occuring.
    The first thing to do is go back to Measurement and Automation explorer and try setting up a global task that refers to the channels you're interested in.
    This removes the programming side of things, since you select from drop down lists, to verify that you can communicate correctly with the hardware at the rates and across the channels that you want.
    These links is going to be your best learning point for getting up an running with the program.
    http://digital.ni.com/public.nsf/allkb/DD52ABD7C15F0B15862562910074F09E
    http://zone.ni.com/devzone/cda/tut/p/id/3116
    http://zone.ni.com/devzone/cda/tut/p/id/4656
    In terms of LabVIEW, there's several I/O controls you can use which will list the hardware channels you have configured or the global tasks you have created in Measurement and Automation explorer. (see the last link above)
    Another option is to look at our Alliance Partners if you need things configured and up and running in a hurry.
    http://www.ni.com/alliance
    If you just need a little pointer on getting kicked off, then you could see if you local sales engineer is available to go through things with you for an hour if they're in your area at a convenient time (for the UK / Ireland, please call in on 01635 572410 and ask to go through to sales), or we do offer start-up assistance (but that's something you need to purchase) to get a day's onsite assistance with getting your hardware up and running and starting you off with advice / examples on your application (note this is an effort based thing rather than a results based guarantee)
    Finally you could consider coming on one of our courses on LabVIEW and / or Data Acquisition to learn more about the software / hardware and be better prepared to handle the implementation yourself.
    Hope that helps
    Sacha Emery
    National Instruments (UK)
    Message Edited by SachaE on 03-23-2007 11:49 AM
    // it takes almost no time to rate an answer

  • Labview DAQ channel viewer doesn´t view to much

    Hi, heeelp please
    I´m starting to bealive in goblins.
    I have a Pci-6013, and did a university proyect using also NiDAQ 6.9.3 and Labview 6.1 eval. I tried mi code in a modern amd 2600 pc and worked fine.
    Then i installed it in a Shuttle SKG1, for the cybernetic fountain (my proyect, a photo is attached, working, with the old good new computer, by the Shuttle, almost not to be seen) to be more nice. But i couldn´t get it to work, since the simple Write to digital line.vi wouldn´t get to work; LabView doesn´t read the channels i had previously configurated in the MAX explorer. When i go to tools, Data Acquisition, Daq Channel Viewer i get to see other channels i didnt configurate, like sine, or temperature.
    In the Amd 2600 normal computer the problem doesn´t arise, when i go to the Channel Viewer i get to see my channels. Well, i´m in troube, since i need it to work eather in the Shuttle or in an old Pentium II, in which the same probem arises. What do have a Shuttel and a Pentium II old computer (eaven with Isa slots, besides the Pci slots) in common against a normal Amd 2600 in an Asus board in common for it to do such a thing.
    Any hinch on the topic would be by this time very much apreciated.
    Attachments:
    IM000238.JPG ‏850 KB

    It is not really clear where you see what in MAX.
    If you have developed and tested your program and configured the channels on the AMD PC you have to do the following:
    Open MAX, select File>>Export and go through the wizard to export the NI-DAQ configuration. You will get a file. Copy this file to the target machine. There open MAX and select File>>Import. Select the file you have copied. Then you should see your channels in MAX and your application should work.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How to arm channel 1 of a PCI 6133 DAQ card using labview?

    Hi,
    I am new to the Labview and I need some help.  I have a PCI 6133 multifunction DAQ card and I'm using Labview 8.2 to capture five channels waveform data.  I setup channel ai0 to be the trigger channel and I need to capture data from ai0, ai1, ai2, ai3, and ai4 when ai0 is trigger.
    Question:
    1) I am using DAQ assistant to configure my channels.  How can I arm the channel ai0?  I have an "execute button" and it should arm the scope when I click it.
    2) Is there trigger ready signal, so I can save all the channels data when channel ai0 is trigger?
    Can anyone provide some help?
    Thanks

    Hello wirte spreedsheet,
    Thanks for posting to Discussion Forum. It looks like you are using the
    PCI-6133 to acquire analog data from ai0:ai4. You want to use ai0 as
    the trigger for the other channels.
    Does your application need to be retriggerable?
    Are you doing continuous acquisition?
    Are you doing Analog start trigger or reference trigger?
    Take a look the following shipping examples, found in LabVIEW click
    Help>>Find Examples. On the browse tab, Hardware Input and
    Output>>DAQmx>>Analog Measurements>>Voltage:
    Cont Acq&Graph Voltage - Analog SW Trigger.vi
    >> This example demonstrates how to perform an analog software
    triggered acquisition. The example allows the user to specify the
    triggering condition and the number of pre-trigger samples to acquire.
    Cont Acq&Graph Voltage - Int Clk - Analog Start.vi
    >> This example demonstrates how to continuously acquire data
    (Waveform) using the DAQ device's internal clock and an analog slope
    start trigger.
     Take a look at these applications and let me know if you have any questions or comments.
    Have a good day.
     Regards,
      Sandra T.
    Applications Engineer | National Instruments

  • Develop & test a LabView program on a PC without DAQ card ?

    Hello,
    I am a LabView beginner.
    I would like to know if it is possible to develop & to test a LabView
    program for fast data acquisition (which uses double buffering) on a
    computer that have no a DAQ card.
    Many thanks in advance
    Francesco Di Maio

    I think see ur channel control string.It should include both index and channel number.may be u have entered config only ch0 not for others
    so increament ur ch index and ch number,
    I hope it will help u.
    Haider

  • Continuous Labview program run with non-contin​uous DAQ connection

    I am using a wireless DAQ, NI 9191 chassis with 9205 module, to measure strain in a system. The DAQ is not being run on standard power so it will occasionally not be powered. The DAQ automatically reconnects to the computer when power is reestablished, but when the DAQ loses power the program encounters an error and stops the program.
    What I want to do is create a Labview program that will run continuously by ignoring the errors, recording data when the DAQ has power and recording an NA or zero when there is no power. 
    If anyone knows or has had this problem before let me know if there is a solution ASAP. 
    Thanks

    The program propably (hard to tell without any code to review) only stops because you have not wired the error putputs of your DAQ-vis. Wire them through to a case structure. In the "no error" case pass your aquired data to whatever postprocessing you deem appropriate (you said something about recording). Set the outgoing tunnel with the data to "use standard if not connected" (I don't have the english version of LV available, so this might be called slightly different). This way it will allways pass on zero when there's an error in your data aquisition.
    Regards
    Florian

  • Can I communicate with two different FP 1000 modules through one labview program at the same time

    I am wondering could you communicate with two seperate FP 1000 modules with one labview program, using a tab control, with page 1 of the tab communicating with one FP 1000 through com port 1 and page 2 of the tab control communicating with another FP 1000 module through com port 4, using different iak files for both. Can I do it through using those wireless modems supplied by National Instruments. Sorry I dont have a name for them.

    Noely,
    Within a single IAK file, you can have multiple FieldPoint modules on separate COM ports. There is no need to use separate IAKs for the program you are describing. Actually, older versions of NI-FieldPoint do not support having multiple IAKs in use simultaneously (I am not sure whether it is currently supported).
    As for the Radio Modems, they are called SRM-6000s and can be used simultaneouslyon different serial ports. Although, using the SRM-6000 in a single master multi slave arrangement, you could use a single serial port to talk to both FP-1000s (3 SRMs total). You will need to configure the FP-1000s to have separate addresses (DIP Switch setting).
    Regards,
    Aaron

  • Labview DAQ channel wizard

    I followed instructions in the Labview manual to access the DAQ channel wizard. For some reason I am directed to the device & automation explorer instead. I have Labview 5.1 installed on windows 95 system.

    Hello;
    You are probably being pointed to Measurement and Automation Explorer to have your hardware configured.
    MAX is the Software that allows you to configure your hardware and set some virtual channels up.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Lost communication with DAQ (NI-6008) through labview

    I currently use four USB-6008 devices through labview as part of a teststand. While troubleshooting a separate issue I lost the ability to communicate with the devices but only through labview. Using other NI software I can use the analog I/O but not from my labview program. I am a chemical engineer so I've already exhausted my limited computer knowledge, any help would be greatly appreciated.

    If MAX can see the devices, and collect data thru them, then your hardware is OK.
    (Max is the Measurement and Automation Xplorer program).
    Assuming that's the case, then I would suspect a naming change.  You can rename the devices in MAX, perhaps when you didn't mean to.
    Check your ERROR outputs of the NI-DAQ calls.  That's what they're there for. Put a probe on the ERROR outputs of INIT TASK, START TASK, whatever you're using.
    The more professional programs expect those errors and handle them, if you're doing a one-off kind of thing, it's easy to think you don't need them, since it worked the first time out, but they really will give you info that you need right now.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Modification of Global channels In NIMax while Labview Program running, not updating in Labview

    Hello,
         Okay, here is my issue.  I have a program that reads data from a device using global channels in MAX.
    Step 1:  I open MAX with the systemExecute.vi with the parameters to wait till program finishes.
    Step 2:  I Modify a channel in Max, for example change the assigned daqMX Scale, or Min Max values.
    Step 3:  Save channel in Max.
    Step 4: Exit MAX with the file exit.
    Step 5: The Labview program continues, and I re-read the available global channels and global scales in the Labview vi but the properties have not changed to match what I change in MAX.
    If I stop the VI then start it again and read the global channels then the properties get updated.  How can I get the channel properties to update in Labview after changes are made in Max without stopping the labview vi and starting it again?

    Many properties of the channel can only be modified when the task is not running.  Have you tried stopping the task in LV before modifying the parameters, and then re-starting the task?
    Dan

  • Using APT ActiveX methods to create a labview program for BPC 203 3 channel Benchtop Piezo controller

    Hi Everyone,
                      I am really very new to Labview and i am in great need for some help.I am assigned a task where i am supposed to create a labview program to control or moniter a BPC203 3 channel benchtop  Piezo controller. I created a program with the help of the instructions provided in the APT-Labview guide provided by Thorlabs.But th program doesnt run . Whenever i try to run it i get the same error which says that "Control HW Communications disabled".I have attached a snapshot of the error message.So i tried to create a small program in labview which would read the volage output.Even there i got the same error message.I suppose there is some mistake on my part which i am not able to correct due to the lack of proper knowledge.Could anyone please help me to solve this problem.A slight elaboration would be highly appreciated.Also i think the error lies in the use of invoke node with the get Voltage output method. I am not sure whether the parameters i have provided to the invoke node are correct.Any help of any sort would be highly appreciated.
    Attachments:
    Front Panel with error message.PNG ‏202 KB
    Block diagram.PNG ‏101 KB

    Hi
    I had the same problem today. However, I noticed that the piezo controller has 3 channels with separate slots and they are packaged in the same box. Therefore the whole box has a serial number, probably something like 71822280, and this is written with large letter. Now, in order to communicate with any of the channels, this does not help, but one needs to communicate directly with the interested channel and they have thier OWN SERIAL NUMBERS.
    For example channel 1 (my X direction in the nanoMax stage) has serial 91822281, Y has 91822282 and Z has 91822283. So try looking if you have the right serial number Hopefully you found out this yourself but this might help others, I took me3 hours to get this thing working when I started to plug-in the cables and everything.
    Lasse

  • LabView (8.2) hangs when using I/O operations with traditiona​l NI-DAQ 7.4.4 after aborting LabView program

    Hello!
    We have the following problem:
    LabView (8.2) hangs when using I/O operations with traditional NI-DAQ 7.4.4 after aborting LabView program
    We freshly installed LabView 8.2 (2006) and NI-DAQ 7.4.4 on a PC running Windows XP (Service Pack 3). We built a larger vi that remotely controls a traditional NI-DAQ card (AT-AO-10) on a second PC via NI-VISA 5.0.3. We were successfully running this program until a power failure caused the first computer to crash. After this crash we were unable to start the program again: LabView freezes while loading the vi. LabView itself can be started but freezes when adding I/O operations from the NI-DAQ palette to a block diagram.
    We have tried to re-install NI-DAQ 7.4.4, but it did not help. We then re-installed all NI software, but still no improvement. In the end we decided to reinstall ALL software, first Windows XP, then LabView and finally NI-DAQ 7.4.4. This worked. However, after a few days of running the program we had to abort LabView via Windows Task manager and afterward we again experienced the same problem as before: LabView freezes when loading the program.
    Obviously, we cannot afford to reinstall Windows every time. Are there any known Windows XP / NI-DAQ issues that might cause the freezing of LabView? We would be very grateful for any idea.
    Best regards,
    Matthias

    Hello Sprice,
    Browse the shipping examples according to “Directory Structure” and then select
    DAQ to find the Traditional DAQ examples. 
    There a lot of examples that are written for counters (Counter >>
    daq-stc.llb >> Count Edges (DAQ-STC).vi). 
    What kind of signals are your photons creating?  Are they TTL compatible at a certain
    frequency?  You don’t care about overwriting
    your buffer?
    Respectfully,
    Rob F
    Test Engineer
    Condition Measurements
    National Instruments

  • Once running the labview program which contain DAQ Assistant ,the message of "ERROR-50405....." appear.

    Once running the labview program which contain DAQ Assistant and can be run without any error before, the message box of "ERROR-50405....." appear which capture down in the attachment. We use PCI6221 and LabVIEW 8.0 in Windows XP. I also found that the Device Manager of Window have recognized the PCI6221.
    Any help on this situation would be great.
    Attachments:
    labview error.JPG ‏145 KB

    Hi~
    This error is due to signal interference between the device and the computer. This could be environmental or due to the PCI Controller. You can on a different computer to see whether this problem persists.

  • Configuring executable labview programs originally configured with a PCI-MIO-16XE-10 on a system with a PCI-MIO-16XE-50 card

    I'm hoping someone can help me. I have executable labview programs created in another lab which used a PCI-MIO-16XE-10 card. I need to install these programs in a new lab which has a PCI-MIO-16XE-50 card installed. When downloading the executable files, Measurement and Automation Explorer gave a message that the physical devices could not be located. I presume this is because the executables are configured for the PCI-MIO-16XE-10 but the PCI-MIO-16XE-50 is installed instead. Any suggestions on how to get these programs configured with the PCI-MIO-16XE-50 would be greatly appreciated? Thanks.

    As long as you have the device identifier of the PCI-MIO-16XE-50 set the same as the PCI-MIO-16XE-10 for which the program was written, you shouldn't have a problem doing what you describe.
    One thing that confused me about your posting, however, is the statement When downloading the executable files, Measurement and Automation Explorer gave a message that the physical devices could not be located. This doesn't make sense to me. You're getting an error from MAX when downloading your program? MAX shouldn't be involved at all here, and especially not when just downloading your program. If you can provide more details about exactly what you are doing (maybe post some screenshots) then I'm sure we can help you get your program working.
    Good luck,
    Joe

  • Best way to handle user scaling/offsetting of channels in a program?

    I have a "Channel Configuration" page in my program that I setup. The user can turn channels on or off for data acquisition. The user saves the channels (global variable), and then goes back to a Main Menu.
    Right now, if they want to add a channel or edit one, I'm having them go through MAX.
    I can deal with them having to add channels through MAX but I'm thinking of just integrating my own scaling. Having the user enter UNITS/VOLT and OFFSET. Then transfer those values via a global variable array to where I need them. Is there a VI Function that handle this scale? Or do I just need to get the individual data and store them in arrays. Does that make sense?
    I'm using SCC modules, PXI-6052E car
    d, and Labview 6.1.
    Thanks!
    Lauren

    If you use DAQmx (I can't remember if its supported in LV6.1) there is a property node where you can read and write scaling and offsets.
    If you can't use DAQmx, your approach to store in arrays/config files will also work.
    Robert

Maybe you are looking for

  • Blackberry 10 OS software update

    My blackberry Z10 is currently running on 10.0.9.348. And I'm trying to install whatsapp which requires at least 10.0.10 or higher. The problem is I cannot update the software and everytime I check for software updates I get a massage saying that I h

  • How to get the current logical system?

    Dear Abapers: I can't find the logical system value from the table SYST, pls tell me how to get the current logical system name, Thanks!

  • Java mapping and sxmb_moni

    HI all, I am using java mapping. Is there any way through which I can post debug messages on SXMB_MONI. For example I want to send messages like <b>ENTERING METHOD "Execute". performing Mapping. Leaving METHOD "Execute".</b> to SXMB_moni. Is there an

  • Is there an easier way to do this?  Save As in Acrobat to a Specified Folde

    CAN APPLESCRIPT RUN IN THE BACKGROUND? Or is there an easier way to do this script? The script does what I need done - no problem, but every action happens on screen. Is there a more direct way to some of the steps? (Ideally so most of the action hap

  • 2 devices with 2 apple ID and imac

    Hello, We do have an imac that is set up with an ipod (same apple ID). I have a ipad mini with another ID. My question is : what is the beset set up to skip synchro problems? How can I get my itunes session with the same ID as my ipad? should I make