Using two daqmx create channel to acquire signals in random

Hi
I am trying to acquire signals from PXI 4472 with two DAQmx create channels. The channel selection is random. For eg. first create channel i have ch. 0, 2, 4, and 6 and the other create channel is Ch. 1,3,5 and 7. This I can do, but the problem is that I need to write the acquired data in seperate files for each channels and that too in sequential order. How can I do that. I know i need to use the loop but how will I will select the channels from two different task.
Thanx in advance
Nitin

Ok, here was my idea, I am not sure if it will work for you or not after looking at your VI. 
You can use some of your subVIS that you made to make the path different for each file.  But what I had in mind for the channels was what I did in the vi i attached.  You can just repeat the process for each of the channels and you would know that they were saved correctly.  You could also feed in the iteration number of the main VI while loop to have the binary files change sequentially (ie, data1, data2, etc).
Again, this may not be a route you want to take, you may have other ideas. 
Ill try to work on it some more later, but I have to get back to work for now
Kenny
Kenny
Attachments:
pxi subvi idea.vi ‏31 KB

Similar Messages

  • Creating two channels with two "daqmx create channel.vi"

    Hey guys,
    I'm perform some piezo measurements and my program has one channel for the input (signal that excites the piezo) and one channel por the output (piezo's response).
    Since the amplitude of the piezo's reponse varies a lot, my program adjusts the range of the acquisition changing the "minimum value" and "maximum value" properties in the " daqmx create channel.vi". Such an adjustment makes no sense in the input channel once the excitation has constant amplitude.
    That is why I need to use two "create channel.vi". I could create the two channels with a single VI but if I did so, I would not be able to adjust the "maximum/minumum value" of only one of them.
    The problem is: Labview always returns the error 50103: The specified resource is reserved.
    Below, we have a screenshot of this part.
    I tried also to add one "daqmx timing.vi" and one "start task.vi" for each of the "create channel.vi" and synchronize everything via error cluster but it returned the same problem.
    The program itself is also attached but I don't think it will be useful.
    Please, help me guys!
    Regards,
    Lucas
    Attachments:
    two create channels.JPG ‏108 KB
    consertando burrada.vi ‏330 KB

    Try it like this:
    EDIT:  OOP, I got the Mins and Maxs reversed.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • DAQmx- create channel- no channels found

    Hello,
    i am new to labview. So maybe my question is easy...
    I want to generate a signal. That's why i am using the DAQmx-create channel.vi . I i created a control to chose the channel, where the signal is generated. But no channels are found.
    i am using PXI 5412 and my device is visible in MAX. So i don't know what is the problem. Can anyone help me?
    Thanks,
    Ratta
    Solved!
    Go to Solution.

    The 5412 is an Arbitrary Waveform Generator. It does not use DAQmx. It uses NI-FGEN.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Error code -88708 with DAQmx Create Channel (AI-Voltage-Basic)

    Hi,
    I am trying to construct a VI that moves a piezoelectric stage, the VI then needs to scan voltages from the DAQ card to build up arrays of the voltage and coordinates before constructing a 3D graph.
    The VI successfully moves the stage and reads the position back to me but when it tries to scan voltages from the DAQ it fails (I'm using the DAQmx Create Channel (AI-Voltage-Basic).vi example, as this has been used in a previous, similar (and successful) VI within my department.)
    I get the following error code:
    Error -88708 occurred at DAQmx Create Channel (AI-Voltage-Basic).vi
    Possible reason(s):
    The specified resource is not available. The operation could not be completed as specified.
    Task Name: _unnamedTask<1>
    Any help on this would be appreciated - I'm fairly new to LabView and am at a loss with how to fix this!
    Thanks
    -Tom

    Is this working when you restart the computer? It might be that the recources are still recerved because the Clear Task.vi wasn't executed (either it`s not present or you did use the abort button).
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • How DAQmx Create Channel for Accelerometer will convert the voltaage signal into g

    HI all,
    I want to know about DAQmx Create Channel for Accelerometer hoe it will do the convertion any one reply me
    Regards,
    Santhosh M

    Most of the accelerometers that i have used till now are ICP devices.
    They need about 5mA current to power them selves up. Other wise they give inaccurate output.
    I guess you are measuring a raw time domain vibration signal.So you just need to 
    I have attached my own  code of how i acquires a vibration signal usin PXI-4462 and 4461 modules. Keep it secret till i do my thesis .
    You have to specify channel name ,device name, and remember to create the channel using the AI-accelerometer -accelerometer VI ,if you use any other form of this polymorphic vi then ICP source options will not be there and your sensors will not have the current to work properly.
    Attachments:
    New Microsoft Office Word Document.pdf ‏126 KB

  • Error -200431, DAQmx Create Channel (AI-Voltag​e-Custom with Excitation​).vi

    Where is "DAQmx Create Channel (AI-Voltage-Custom with Excitation).vi" gone?
    I tried to use this VI for force measurement with a NI PXI-4472. It responds with Error -200431, ... You Have Requested: More:Voltage:Custom with Excitation, You Can Select: Voltage, Sound Pressure:Microphone, ...
    It seems for me to be an internal error of this VI, LabView Version is 8.6.1
    Solved!
    Go to Solution.

    Hi T.Knox,
    error -200431 is a measurement type error:
    "Error -200431 occurred at an unidentified location. Possible reason(s):
    Measurements: Selected physical channel does not support the measurement type required by the virtual channel you are
    creating. Create a channel of a measurement type that is supported by the physical channel, or select a physical channel
    that supports the measurement type."
    The PXI-4472 (8 Inputs, 24-Bit Dynamic Signal Acquisition module for sound and vibration measurement) is the wrong device
    for force measurement.
    I also searched our website and found some helpful links:
    http://zone.ni.com/devzone/cda/tut/p/id/3602#toc2
    The PXI-4472 (http://sine.ni.com/nips/cds/view/p/lang/en/nid/503​1) isn't listed as supported device for force measurement
    there!
    I hope this information helps you!
    Regards
    Suse
    Certified LabVIEW Developer (CLD)

  • Error Code -50150 from DAQmx Create Channel (AI-Voltag​e-Basic).v​i

    I have an executable, built from Labview 7.1 VI's. All it is doing is reading 6 voltages back from a 6008 USB-DAQ, and reporting the results back. Occasionally, it is throwing an Error -50150 from DAQmx Create Channel (AI-Voltage-Basic).vi. The full error message is:
    Error Code: -50150
    DAQmx Create Channel (AI-Voltage-Basic).vi<append>
    <B>Task Name: </B>_unnamedTask<0>
    Can anyone shed some light on this problem?
    Cheers.

    Hi fellas,
    I have a really similar problem to the one Neilelph had, but I can´t see how to solve it from your answers. I attached a picture of my main .VI.
    It´s basically a photodiode measurment system working as follows:
    1. First the moving stages for the system get ready (X-Y moving stages for the Photodiode and Z stage for the Laser). That´s the CONFIG subVI in the left.
    2. Then there is a For Loop, that repeats N times depending on the Initial Z, final Z and step values. So in this .VI the laser moving stage is the only one changing.
    3. In each loop, the stages go to the X,Y,Z(t) posiition (MOV subVI), wait for the movement (WAIT subVI) and read the position. After that, the DAQmx acquistion part starts. I just sample the output DC voltage coming from the  Photodiode (Dev1/ao1), 1000 samples in 1 second, and then I make an average of all of them with the Basic DC/rms block. So at the end I have 1 position of Z and one DC value. And it worked perfectly. At least for small number of iterations I have no problems. 
    The problem comes with small steps and a great number of iterations. For example last night I ran a measurement. 10000 iterations, the whole range of Z, and today i checked it. It worked fine until 5000 give or take, the half of the range. From that point, the DC ouput recorded in the .lvm file is just 0.00000. It´s the second time it happens, so I´m wondering what´s wrong because I´m affraid to make more long measurments and obtain the same results. 
    The error message I obtained is the same than in the thread title: -50150  DAQmx Create Channel (AI-Voltage-Basic).vi:6<append> <B>Task Name: </B>_unnamedTask<53BC>
    Maybe it would be useful to mention that, sometimes, there is no error and I have some DC Output Voltage value, for random Z potitions, but since the first error message, that barely happens. The output is almost always 0.
    Sorry for my writting skills in English. I hope you can understand my situation.
    Thank you in advance.
    Kind regards,
    frilance.
    Attachments:
    Diagram.JPG ‏83 KB

  • Error -200220 occurred at DAQmx Create Channel (CO-Pulse Generation-Time).vi:1

    Hello,
    Just a couple of days ago I was given a task to complete. To transfer a Labview program from a desktop computer to laptop.
    The program itself uses a marlin camera to count the number of seeds.
    The transfer was fine I installed Labview 8.2, installed the DAQmx drivers and labview vision.
    I then transffered the program files over and ran the program on the laptop in labview and found an ERROR: Error -200220 occurred at DAQmx Create Channel (CO-Pulse Generation-Time).vi:1
    I remember that the desktop had a kind of board attached to it: some NI board dont know the model etc.
    can this be a problem? I have ensured that the problem is not the camera by checking it in MAX and it works fine.
    When i do step by step debugging the problem comes to a VI that uses a palette called DAQmx trigger - data acquisition palette.
    please see the attached picture!!
    Is this VI the problem then and is this palette the main problem that is not enabling this program to work??
    thankyou
    p.s. Will it be necessary to use the NI board then? if so i dont think it will work on the laptop then as you will need to install the daq card
    which can only be done on a desktop i think!! 

    Hello Rob W,
    Yes I only use a Firewire to connect the camera.
    And also i am sure that the device shows up in MAX under NI-DAQmx devices and not under Traditional DAQ. and it works under max.
    I am sure the problem is as shown in the image. because i have not connected to the NI board on the laptop and the program is designed to work with the board.
    but i have also tried removing the parts in the program that use the board but because of the complexity of the program i.e. wires i had some other problems i think
    must be the wiring etc
    thankyou

  • Missing subVI DAQmx Create AI Channel TEDS(sub_.vi DAQmx Create Channel( TEDS-AI-Voltage-Basic). vi.

    Hi,
        I have seen several discussion regarding this topic, however it seems that none of the solutions are working for me. Here is my situation, i am using LabView 7.1 which I use to generate my .EXE, when I generate my .EXE I use the Tab Intaller Settings to generate the Setup.msi. I then take the folder which contains the .EXE and the installer and bring it over to another machine which is running VM Ware with a freshly installed windows XP. (to make sure nothing is on the machine and then i get surprise at the custormer's site)
       Once this was done, i would start by lauching the installer and then the .EXE the result was the following, I would get the following message:
    Missing subVI DAQmx Create Task.vi in VI instance      1    3tst
    .vi.
    Missing subvI DAQmx Create channel (TEDS-AI-Voltage-Basic).vi
    in VI Instance 1   3tst.vi.
    Missing subVI DAQmx Create Channel( AI-Voltage-Basic).vi in VI
    instance    1   3tst.vi
    Missing subVI DAQmx Timing(Sample Clock).vi in VI instance
    1   3 tst.vi
    Missing subVI DAQmx Read(Analog 1D Wfm NChan nSamp).vi in
    Vi instance   1   3tst
    then as suggested in other discussions of this forum I download (537MB) and installed
    on the target machine (VM Ware) the nidaq710 which i downloaded from
    http://digital.ni.com/softlib.nsf/websearch/C1F802E457EA042586256DD00001B0C9?opendocument&node=132070_US
    This did solve some problems BUT I am still getting the following message when I launch the EXE
    Missing subVI DAQmx Create AI Channel TEDS(sub).vi in VI DAQmx Create
    Channel(TEDS-AI-Voltage-Basic).vi.
    Thank you
    Maldini

    Hi Maldini,
    Thank you for posting to the NI forums.  Is the VM Ware PC using the same operating system as the development PC?  Also, are you using DAQmx 7.1 on the development computer, or are you using a more recent version?  When distributing applications, the driver version on the deployment PCs must match the driver version of the development PC. 
    If this is already the case, then you shouldn’t be receiving any of these error messages.  There are few things that may fix this problem.
    Reinstall the DAQmx driver.
    Perform a repair install the DAQmx driver on the deployment computer.
    Upgrade the DAQmx driver on both the development and the deployment PCs.
    With Windows XP and LabVIEW 7.1, you are able to use the latest version of DAQmx, which is currently DAQmx 8.5.
    After going through these steps, please post back if you continue to have problems.
    Ed W.
    Applications Engineer
    National Instruments

  • Error-200220 occurred at daqmx create channel %28AO-Voltage-Basic%29.vi%3A3

    Hello  
    i need u r help  this  error apeears to me when i run my code on labview 
    and i dont know how i can solve it due  am still wake and dont have background on labviw 
    and coding 
    (error-200220 occurred at daqmx create channel (AO-Voltage-Basic).vi:3)

    ok the first problem is solved...
    but now in the another program
    its appearing:
    Error 1 occurred at Read File+ (string): Read File
    Possible reason(s):
    LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller in Charge.

  • How to use two DAQmx assistant ?

         I am using 2 DAQmx assistant objectsfor acquiring 2 distinct different signal.when i run it, it is showing following error.
                          ERROR 50103 occured at DAQmx control task.vi:8
                          POSSIBLE REASON : The specified resource is reserved.The operation could not be completed as specified.
        Pls. tell me how can i clear it.
                                     THANK YOU !

    Any chance you could attach your LabVIEW code for us to see? It helps to visualise your issue.
    You may be running the two DAQmx assitants in parallel, and thus they will be trying to access the same resource simultaneously. They probably need to be ran sequentially. To ensure this, try wiring the error out of the first assistant into the error in of the second assistant.
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • How do I use two DAQ cards in one Labview code? Current I'm getting error " error 200558 occurred at DAQmx Create Channel.vi. One task cann't contain multiple independent devices". Can someone help me?

    The two DAQ cards are NI PCI-6070E & NI PCI-6052E. The Labview I'm using is labview 7 Express and the Window system is Window XP. I'm using NI SCXI-1000 chasis and SCXI-1102 & 1102B two modules plus a feedthrough SCXI-1180. 1102 is connected through SCXI-1349 cable to DAQ card 6052E while 1102B is connected through SCXI-1349 cable to DAQ card 6070E. SCXI-1180 is connected to 6070E through SCXI-1349 adaptor on the back of 1102B.

    Sarah, thank you for replying my question. It seems that I'm making progress everyday (smile). I'm able to run the test using both daq cards in my code now. But as I'm moving forward, I'm getting new questions too. How do I use one STOP button to control both tasks and how can I save data into one single file?
    I attached my code here hoping you can get the specifics on my application by looking at the code. Thanks very much!
    Thanks.
    Attachments:
    DAQmx_Task_Example_plus_voltage_2.vi ‏416 KB

  • How can I use two analog output channels simultaneously?

    I am using PCI6110 DAQ card. I want to run two separate VIs on one computer. Each VI output a waveform to one analog output channel. How can I do this simultaneously without interfering each other?
    Thanks

    Hi Stephen,
    This can NOT be done with two seperate VI's.
    The issue is in the hardware/driver.
    Your hardware has a clock that controls how fast updates to the AO occur. That clock can only have one value at a time. I will let your contemplate the complications that come up with two different clock settings being active at the same time (see below).
    So how do you work around this complication?
    You will have to develop a single VI that OWNs both output channels. That VI will have to accept start,stop,configure, etc commands from the two clients (what you will have to convert your existing VI's into). If you decide to place a restriction on the services you provide to the clients along the line of "only one sample rate at a time" you will be making your li
    fe much easier.
    If I was contracted by a customer to do what you have asked, I would try to combine the two existing VI's into one or simply buy a second 6110 and avoid all of the hassles. Both of these approaches would end up saving the customer money in the long run while freeing them of any restrictions that where established in order to develop the "server".
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Error -201003 occurred at DAQmx Create Channel (AI-Temperature-Thermocouple).vi:4

      I get this error when using the NI USB-TC01 LabVIEW Temperature Logger and a J type thermocouple.
    So I tried creating my own VI, the daq assistant gives me a correct reading but only for 1 sample. If I try to change to continous or N samples it will then give me this error:
    Error -200077 occurred at DAQ
    Assistant
    Possible Reason(s):
    Requested value
    is not a supported value for this property. The property value may be invalid
    because it conflicts with another property.
    Property:
    SampTimingType
    Requested Value: Sample Clock
    You Can Select:
    On Demand
    What Is the problem?? I need to get a continous reading that I can use through a VI to get an excel file with  the data. I also need it to be continous so I can manipulate the sampling rate.
    By the way I also tried using the device on other computers and it still gives the same problem.
    Julian Sanchez
    Mechanical Engineering Student - University of Central Florida
    Research Intern | CASER
    C. 407.744.4174 | E. [email protected]

    Thank you for your reply,
    I am new to LabVIEW and I am not sure how to do what you explained. The DAQ assistant has a "number of samples" when you drag the bottom; is that where I need to create the loop??
    What is the maximum # of samples per second that I can get with this device?? That is my ultimate goal with this experiment, to be able to get the most readings per second.
    Julian Sanchez
    Mechanical Engineering Student - University of Central Florida
    Research Intern | CASER
    C. 407.744.4174 | E. [email protected]

  • Error -200220 occurred at DAQmx Create Channel (AI-Voltag​e-Basic).v​i

    I am trying to set up my PMT using NI-DAQ 7.3 along with Labview 7.1.  I keep getting an error message described above.  I am new to this program, so I am not sure what is wrong.  I have also received an error message stating the device could not be routed.  Any ideas?  Thanks

    Hello WayneState,
    Welcome to the NI Forums. The error message should say something like this "Possible reason(s): Measurements: Device identifier is invalid." This means that the name of your device was incorrect. You should use the drop down box to select the one is configured in Measurement and Automation Explorer (MAX).
    There is very valuable information in this site since it is designed for people starting with data acquisition using our products.
    Finally, I see you have other problems in this LabVIEW thread that suggest that you have already overcome the error in this Thread. If so, please post back your description of the resolution and if not, please feel free to post back some screenshots of MAX and LabVIEW.
    Gerardo O.
    RF Systems Engineering
    National Instruments

Maybe you are looking for

  • What is node and how to create a node in logical database in reports.

    What is the purpose of this nodes. Show me one example program using these nodes.Clearly show me an example with explanation. If this is taking any table means.Plz give me a clear example with my ztable. Tables : zptable1 fields in this table are f1,

  • White boxes appear around drop shadows in PDF's

    I'm exporting a file from InDesign CS3 that contains several graphics that have a drop shadow applied to them (added in InDesign NOT Illustrator). When I view the PDF, there are white boxes that appear behind the graphics with the drop shadows. I nee

  • Dashboard Performance Issue

    HI Ingo, Thanks a lot for the wonderful postings in SDN and for your blogs on SAP BI/BO Solution architecture. I  am looking for few clarifications on SAP BO Xcelsius Dashboards.  Though I know limitations on component number and data volumes which c

  • Anyone know where I can get instruction for using "numbers" I live in Fredericton NB

    I am struggling with the "numbers" program. Anyone know where I can take a class? I live in Fredericton NB Actually, I strongly suspect if classes were available on any 'feature" that Apple sales would soar!  Too often - I hear about the learning cur

  • How to install the OpenH264 Codec from Cisco?

    I noticed that just about every time i start my computer and open Nightly I get a download popup to download the OpenH264 codec by Cisco. I did and I noticed that there was an entry for it in the Plugins section of the Add-Ons Manager and it states '