Selected physical channels to array

I would like that after select several channels of differents devices (with DAQmx Physical Channel component), this selected channels will be put in the array.
I look for forum but I didn't find anything.
If somebody already tried to do this, please send me suggestion.
Thx for all
Look in the attached picture.
Leonardo de S. Cavadas
Maintenance Engineer and Inspection - Bureau Veritas do Brasil
Engineer Metallurgist with emphasis in Advanced Materials
Technologist in Computer Science
Attachments:
physicalchannel.JPG ‏39 KB

Chris,
Now you will understand what I want. I didn't expressed well. Look for attached VI
Leonardo de S. Cavadas
Maintenance Engineer and Inspection - Bureau Veritas do Brasil
Engineer Metallurgist with emphasis in Advanced Materials
Technologist in Computer Science
Attachments:
physicaltoarray.vi ‏11 KB

Similar Messages

  • VB6 NI-USB-9237 DAQmxCreateAIVoltageChan selected physical channel does not support the measurement type required

    I have a VB6 program with code that properly reads analog inputs from an NI-USB-6008.
    I tried to re-use the code for a strain-gage module NI-USB-9237, but at the DAQmxCreateAIVoltageChan step I get the following error:
    "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."
    Should I be calling a function other than DAQmxCreateAIVoltageChan?
    If so, what is it, or where can I find the reference for such functions?
    Or - if that is the right function, should I pass different arguments?  Currently I'm calling:
    DAQmxErrChk DAQmxCreateAIVoltageChan(taskHandle, "Dev1/ai1", "", DAQmx_Val_Cfg_Default, -10, 10, DAQmx_Val_VoltageUnits1_Volts, "")
    Thanks in advance for your help
    -Chris Hardy
    Solved!
    Go to Solution.

    I figured it out from 372251a.PDF
    First, the correct function is DAQmxCreateAIVoltageChanWithExcit
    Second, you can't just ask for one sample on one channel - ask for 2 samples instead.
    -Chris Hardy

  • Selecting physical channel from list with DAQmx

    I'm trying to write a simple VI for reading and writing digital data. However, when I have a DAQmx physical channel control, the only options it presents to me are the various analog inputs (and doesn't allow me to type in the port I actually want to use). In other examples, e.g., "Write Dig Port.vi", the apparently identical control instead shows me digital port options rather than the analog in channels. As far as I can tell, there is no real difference between the controls as there is nothing in properties that I can really modify.
    How can I get this control to let me choose the channels I want? Or is there some difference in these controls that I am not aware of?

    The channel lists adapts to the type of DAQmx Create Channel that you use. Do you see the text below the DAQmx Create Channel? If your channel is displaying only analog input channels, then the DAQmx Create Channel type is AI Voltage. If you want to use digital input channels, change the type to Digital Input. Click on the little arrow on the right side. This is called a polymorphic VI selector. You can do the same thing by right clicking on the VI and do a Select Type.
    Mark has a good point. If you change the type of DAQmx Create Channel and you already have a physical channel wired, you will have to go to I/O Name Filtering to change the channel types displayed. If you change the DAQmx Create Channel and then create a channel control by selecting Create Control, you'll get the correct type automatically.
    Message Edited by Dennis Knutson on 03-11-2008 12:12 PM

  • How to select physical channels to save?

    I'm in the beginning of implementing a new program.
    The first issue is to get a list of all available devices and channels, and then mark the channels I would like to save datas from.
    This input from the user should then act as an input to the "save data to file" part of the program.
    Is there any suggestions how to do this?

    Thank you for your feedback.
    I'm not sure how to implement the scan list you are referring to.
    What I have done so far, is to create an array of all the available channels. Attached is the program for this.
    What is desireable is to have a select function like the one I found a picture of in the forum. See attached picture.
    How can pick out the elements in the array and write them into this box?
    Thanks in advance for all answers
    Attachments:
    Devices and channels.vi ‏27 KB
    channel control.jpg ‏17 KB

  • Selecting DAQ channels by arrays of strings for scxi 1102/4c

    Hello,
    I have an urgent matter - for my project I have to modify DAQ analog acquisition on several machines. The existent applications use definitions of virtual channels AnCh0-63, and they select them by DAQ constants which are connected to AI Acquire Waveforms. Now I need to make one program for all machines (different slot numbers of the cards) that will retrieve channel selection from a database (LV 7.1, MS SQL Server 2005).
    Is there a way to directly use the DAQ constants by feeding them strings from the database? The catch is that the company wishes to keep the existent programs and use a database for storing and loading parameters. Otherwise I tried with global-channel definition strings (obx!scy!mdz!0,2,...,n) but there were problems with some combinations of channels.
    Thanks in advance!
    simon

    Hello Simon,
    If I am understanding the question, you want to use the same program
    you have been using (which uses our "legacy" driver, Traditional DAQ)
    and want to integrate that into a database system.  The trick seems to
    be inputting the various inputs into the AI Aquire Waveforms directly
    from strings you have aquired from your database.
    If my understanding is correct, then we want to convert strings into
    the data types required by the VI.  The channels input can be fed a
    string directly (as long as it is in the format it expects), while the
    other inputs require numeric values.  You can convert strings into
    numerics with the Decimal String to Number VI (Functions
    Palette»String»String/Number Conversion).  Using these, you can then
    input the correct inputs:
    You can also parse strings with the string manipulation VIs (Functions Palette»String) if you need to.  I hope this is the information you are looking for, your application sounds like it could save a lot of time in the long run.
    Message Edited by Neal M on 11-28-2007 02:45 PM
    Neal M.Applications Engineering       National Instruments        www.ni.com/support
    Attachments:
    TDAQString.JPG ‏10 KB

  • Select multiple channels for one task - control and shift keys don't work

    Hi,
    Following advice from several other posts, I'm trying to select multiple physical channels  from the dropdown list so that I can then use the "unflatten channel string" function later on. It looks like if I hold down either shift or cntrl I should be able to select multiple channels from the list, however, this doesn't work for me. I tried going into the "key navigations" property for the task channel control but it doesn't have any associations listed. Has anyone else come across this and found a fix?  I have previously got around this by stating multiple channels with a colon (eg. ai1:3) but this doesn't work for the unflatten function.
    Thanks, 
    Claire.
    Solved!
    Go to Solution.

    Thanks for your reply Dennis, I see what you mean, unfortunately that doesn't solve my problem so I'm missing something else. I've attached my VIs. I expected that the output from the unflattenstring block would be an array of either the channel references or the names I had given them, and that therefore the "array size" in the 4th pane would be "9" (equal to the number of channels).  Instead the output is a an "unnamed task#(some number)" when I look at it with a probe. Perhaps I'm misunderstanding how the task naming works?
    THanks, 
    Claire.
    Attachments:
    Analog SW Trigger_v3.vi ‏33 KB
    Cont Acq&Graph Voltage-Analog SW Trigger_cfjv3.vi ‏64 KB

  • Physical channel

    hello,
    i have a labview 7 and both IN-daq mx & traditional IN-daq. I take a vi from one of my friends. He wrote down the program 4 years ago and my labview can still open it. But in his program, the physical chanels are named as 0,1,2,..(like in attachment named "b") But in my lab we have sc-2345 so i have SCC1Mod2/aio,ai1 &scc1mod1/ai0,ai1.( total 4 channels)
    my question is , how can i apply data using the same program? how can i convert his physical channell types (0,1,2..) into mine?
    if we can do that, how can we connect it to the aiconfig.vi . I think the wire types does not match
    thank you so much
    batur
    Attachments:
    b.vi ‏25 KB

    If you have configured everything correctly in Measurment and Automation Explorer you should be able to right click and create constant on the AI Config. This will then give you an array of I/O constants which you will be able to select the configured information form MAX for each channel. Hope this helps.
    BJD1613
    Lead Test Tools Development Engineer
    Philips Respironics
    Certified LV Architect / Instructor

  • How can I select a channel on the RT target with a VI on the host?

    Maybe I'm trying to pound a square peg into a round hole, so please let me know if I'm abusing LV, but ...
    I'm trying to parameterize our RT VI app that deals with digital output channels.  We use the same basic VI for multiple configurations.  The only thing that changes is the channel allocations.  So for instance, actuator 1 is on port0/line5 for one configuration and port1/line2 in another.  I really don't like the idea of modifying the VI every time we have a new configuration because it makes configuration management insane.  If I make a change to the basic VI, now I have to upate N copies of the VI and hope I catch everything.
    So I'm making the main app VI read an XML configuration file that specifies all the allocations.  Sounds great at first, but how do I create the XML file?  I created a VI that manages the data in the VI, allowing the user to add/remove channels and edit the name and channel and then save it to an XML file.  The configuration is comopsed of an array of clusters, with the cluster containing the name and DAQmx channel.  My intent was to let the user select the channel from the list of valid channels by using the DAQmx Global Channel control.  But the problem is, the configure VI runs on the host, which doesn't see any of the channels because they are on the RT target.  But if I try to run the configure VI on the target, it refuses to deploy because I have GUI widgets.
    Is my approach fundamentally flawed?  Is there a better way of parameterizing our VI?  Or is there a trick to getting access to the valid channels on the host VI?  The information MUST be available because after all, when I modify a target VI and select a global channel constant, I'm doing this on the host.
    Thanks,
    Keith.

    Hi Keith,
    you can handle the channels like "normal" strings. See the attached picture.
    Hope it helps.
    Mike
    Message Edited by MikeS81 on 07-25-2008 06:46 AM
    Attachments:
    Unbenannt1.PNG ‏6 KB

  • How to get intimation about DAQmx Physical Channel invalid value encounter

    Can anybody tell me that if a DAQmx Control gets value from a configuration file( .ini file ) and the value is invalid (does not exist in the available physical channels list) than how I can be programatically intimated. I couldn't find any property node of DAQmx Physical channel Control which tells about that the current value feeded to the control is invalid.

    Thanks Alan, I have got a better soloution from you in another thread launched by me with title "How to get "Browse list of any DAQmx control in array form". In which u suggested of using DAQmx 8.0, which I have downloaded and used the property node DAQmx-Device>>DO.Lines to get an array of all Physical channels(DO category) of all devices. The value taken from that configuration file is searched in Physical channels array and if no match found than the value is invalid.

  • Filter the pull down menu of physical channels control

    Hello all,
    I need help, I'm desperate!
    I'm trying to create a software recording data from an accelerometer by using a NI USB-9234 device. So in order to do that, I linked a physical channels control to DAQmx create channel. The thing is, I want to display in the pull down menu, only the physical channels attached to the NI device specified above. And besides, I'd like this to be done automaticaly, meaning that no matter what is the name of the device (dev1, dev2, dev3...), the pull down menu will display the four physical channels attached to the specified device.
    Am I clear ?
    I know that by right-clicking on the physical channels control, I can filter it but I can't manage to figure it out how to filter by specifiying a device. Maybe by using property nodes...I don't know.
    If somebody has a solution, that would be much appreciated.
    Thanks a lot

    You can configure IO Name Filtering by choosing the following option in the context menu:
    But you cannot select a certain device type there, but only certain device names (which is a huge difference).
    So the easiest way to accomplish your task is to define a name for your USB-9234 (like MyDevice) and then limit the selection to "MyDevice".
    You have to make sure, that each PC using the application as aware of "MyDevice". This setting is done in MAX (Measurement and Automation Explorer) and can be distributed with your application using the Application Builder (or manual export/import within MAX).
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Insert element in selected column of 2d array

    Hello
         How to insert value in selected column of an array
    In my program i am reading the CAN data from channels using
    CAN read Channel API, the recent data read from the CAN channels
    will be displayed in the indicator "Channel Data" 1D array, the
    size of array depends on the number of channel selected for
    monitor. i want to save all channel data.
    i want to insert the first element of "Channel Data" array to
    first column of "All Channel Data" 2D array, the second element
    to the second column of 2D array...
    i attached my VI
    how to do this give me an idea.
    thanks
    sk
    I am using LabVIEW 7.1
    Attachments:
    err2.zip ‏89 KB

    For 2D arrays, you must insert entire rows or columns at one time.  You cannot insert just one element.  Why?  Lets say for example you have a 2 x 3 array (2 rows with 3 columns).  If you insert an element in row 3 (a new row) column 1, what goes into columns 2 and 3?  You just messed up the integrity of the array, and Labview doesn't allow that.  What you need to do is gather data for all columns in the new row and insert the entire row.  The Insert Into Array function is used with the row number wired to Row Index and nothing wired to column index.  You can gather all your data, build a 1D array and insert that array into a new row in the 2D array.
    - tbob
    Inventor of the WORM Global

  • Extract device from physical channel

    As always I want to do something absolutely trivial and am running into all sorts of issues
    I define (through a control) a physical channel that I want to take data on. I want to be able to programmatically reset the device the channel is on. i.e. i don't want someone to have to open up the code and change the device on the reset vi if necessary. Even if there is only one device physically connected, you can’t guarantee the device will be Dev1, because Labview keeps a history of devices that have been plugged in. The obvious solution – extract the device name from the physical channel control which contains the channel(s) you have selcted. Can I find a trivial way to do it, NO!  There is a property node called device but it does not (despite its name) return the device you have selected along with the physical channel.  There are convoluted ways of doing this, but i'm hoping there is some easy way. Suggestions
    Solved!
    Go to Solution.

    I think this might be the "trivial" way you're looking for: some string pattern matching and a simple
    regular expression to extract the device name prefix from a physical channel name.
    -Kevin P

  • DAQmx physical channel error message

    Hi,
    I am new to Labview but I managed to create a new analogue voltage input task in Measurement and Automation Explorer. I am using DAQmx create virtual channel VI but  I am getting an error message saying that "required input physical channel is not wired". Any idea why I am getting this error message. Also what is the difference between using DAQmx Assistant and using VI's like DAQmx create virtual channel, DAQmx timing etc.Any help is appreciated.
    Thanks
    Duran
    Attachments:
    error2.JPG ‏171 KB

    The first VI 'Create Virtual Cannel' has an input called physical channel. This needs an input. Right click on the terminal and select Create>Constant. Then you can select the channel (something like Dev1/ai0).
    To your 2nd Q: The assistant is a fast way to configure your measurement. You can later also convert it to the VIs you use now. Using the VIs gives you full programmatically control of the task. (The meaningful phrases are 'configure' and 'full programmatically').
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Physical channel constant and indexing

    Hi people,
    I need to associate an input channel to a certain output channel. Of course, that led me to the idea of a hash table and as Labview doesn;t have such a structure defined, I thought of using a case structure.
    Now a bit of discussion about the Physical Channel constant- I am to add some of them there from which DAQ reads their values. You know the sintax ev1/ai0, Dev1/ai1...
    Labview seems to index them according to the order they are introduced in the Physical channel, so one can manipulate them by extracting from the complex signal the array indexed 0, indexed 1, ...respectively.
    My purpose in the end , though, is to associate Dev1/ai0, Dev1/ai1(and not the channel's index)...  with some certain numbers into a somewhat hastable.
    So the question is whether I can extract the string or symbol information of individual Dev1/ai0, Dev1/ai1,... out of their associated index or from somewhere else...
    Can one of you envisage some solution?
    Thanks a lot,
    Dana

    Hi Mike,
    Thank you very much for the solution. Yes, this is the right way.
    I'd come up with another complication.
    What if the name of the channel is not available-can I first extract it from the index of the individual signal that I extracted from the complex one?
    I made some comments in the picture , it's part of my actual application. Could I have your opinion on that? I placed an icon if the DAQmx channel propery - is this an answer to the question I posed? I cannot link some things in my reasoning, maybe you can help.
    Kind regards,
    Dana
    Attachments:
    channel name.JPG ‏153 KB

  • PXI has no physical channels!!​! Please help!!!

    Hello.
    While using DAQ Assistant, when the window of selecting a physical channel appears, no physical channels appear. I try to use NI-5122 and I think everything is well configured in MAX (PXI-1002, External PC, MXI-3).
    Why doesn´t appear any physical channel???
    Is PXI-5122 supported by NI-DAQmx???
    I also have installed a PCI-5102, but as it works with Traditional NI-DAQ it shouldn't appear, should it??

    Hi Shawnyap, I have no clue what version of LabVIEW you have, so I'll send my 7.1 example.
    However, if your examples are corrupted, I'm going to highly recommend you upgrading to the latest driver at the link below and using the examples that come there.  If those are corrupted, there's a good chance something else is broken too.
    http://digital.ni.com/softlib.nsf/webcategories/85​256410006C055586256BE600709528?opendocument&node=1​...
    That link doesn't support LabVIEW 8 at the time of posting (NI-SCOPE 2.9.1) - let me know if you have LabVIEW 8 and I'll get you going.
    mike
    Attachments:
    niScope EX Configured Acquisition.vi ‏208 KB

Maybe you are looking for

  • Can I share one iTunes Library with multiple computers on a network?

    Can I share one iTunes Library with multiple computers on a network? note: one library universally shared, not Home Sharing (one library each, shared to each.) I want to share one library stores on my server and access it through various local comput

  • Mobile Me Galleries in Aperture Project List

    If I create a mobile me gallery in aperture it appears on the project list, near the top under mobile me galleries. That's fine, until I close aperture and then the next time I open it I don't have any mobile me galleries listed. It hasn't always bee

  • String subtraction

    String cannot be subtracted......but i want the following. example1: input: str1="abc   332.0"; str2="332.0" output: str3=str1-str2="abc" example2: input: str1="  332.0   abc "; str2="332.0" output: str3=str1-str2="abc"how can i do this ?

  • 30GB Video iPod quirks...

    I have been having some odd issues with my new 30GB Video ipod. First, it sometimes doesnt want to unmount. I have to turn off most software and log out of other open accounts before it may (or may not) work. Second, I was playing music on it today a

  • Elements 9 will not load

    I have elements 9 loaded on two computers running on windows 7. It runs fine on one and I receive an error on the second which says Photo Shop  Elements has stopped working. I have tried reloading the program with the same results. The organizer seem