DAQmx - merging device name and channel names ?

Hi all,
There is probably a extremly simple solution to this, but I didn't manage to find it !
I use LabView 2009 and 2010.
I'd like to concatenate the strings "Dev4" (device chosen by the user in the GUI) and e.g. "PFI0" to get a string that I could connect directly to a DAQmx vi.
Is it possible to do that ?
Thanks a lot for your help !
JB
JB

Hi,
I'm back again with this problem.
Concatenating strings works fine for strings like "Dev3/ai0" for example, like this:
but when I try to do the same kind of thing for a ai trigger source (in my case "/Dev3/PFI1"), it doesn't work. Here is how I try to do it:
When I put a probe on the wire at the far right of the screen capture above, I get what I want, ie "/Dev3/PF1", but no trigger are received and there is no error message. Everything works fine when I simply use a constant like this:
I don't really understand why it doesn't work. Any clue ?
Thanks for your help !!
JB

Similar Messages

  • Device Number and Channel Number?

    What exactly are device number and channel number?  I am assuming device number is the number given to the DAQ board (i.e. "1") and that channel number is the number on the screw terminal board where the signal of interest is located.  Is that right? 
    I've read about it in the help menu but am still confused (I am relatively new to LabVIEW)

    Device number is the number given to the DAQ board.  You can use MAX (Measurement and Automation Explorer) to verify the device number.  It will be displayed in the device's property window.  Channel number depends on the device.  If you have a 16 channel Analog Input DAQ, your channel numbers will range from 0 to 15 (or maybe from 1 to 16, depending on the board).  It may NOT be the same as the screw terminal on the connecting block.  The documentation that comes with the board and the terminal block should show which channel goes to which screw terminal.
    - tbob
    Inventor of the WORM Global

  • Use virtual channel name as input to DAQmx Write? LV8 and DAQmx

    I've created a task for digital output that contains 8 named channels using the DAQmx Create Channel VI in Labview. Is it possible to use the channel name as an input to the DAQmx Write VI to reference the desired channel? I tried wiring a string with the channel name to the "task/channels in" input but I get a -200428 error that says the Value passed to the Task/Channels In control is invalid.
    The help "name to assign" input for the DAQmx Create Channel VI says
       If you use this input to provide your own names for the virtual channels, you must use the names when you refer to these channels
       in other NI-DAQmx VIs and Property Nodes
    OK, so how do you use the name assigned in other VIs?
    George

    George,
    I think that there may be some confusion here about the difference between local and global virtual channels.  First of all, please take a look at the following knowledge base:
    Physical Channels, Virtual Channels, and Tasks in NI-DAQmx
    As discussed in this KB, local global channels are created inside a task, and they only apply to that task.  In the help file for the DAQmx Write VI, the "task/channels in" description says "if you provide a list of virtual channels, NI-DAQmx creates a task automatically."  When you wire a string to this input, a new task is being created, and unless the channel name that you wire in is a global virtual channel (listed in MAX), you will get the error 200428 that you mentioned.  This is because that virtual channel that you are specifying is local to another task and is not associated with this new task. 
    One solution to this issue is to use the DAQmx Save Global Channel VI to save your local virtual channel as a global virtual channel before calling DAQmx Write.  Once this is done, you can then wire the same string constant to the "task/channels in" input of DAQmx Write or other DAQmx VI's. 
    The help text is still correct, but is only applicable in certain situations.  For example, if you create and name an analog input local virtual channel with DAQmx Create Channel, you could then use this channel name as the source input to a DAQmx Trigger VI configured for an analog edge start trigger.  You could also use that channel name as the input to the "ActiveChans" DAQmx Channel Property, which would enable you to modify the properties of that particular channel. 
    Hopefully this information is helpful to you.

  • How to define in different controls device and channels in a DAQmx function?

    Hi,
    I need to build a vi that permits the user to change the device of a DAQmx  acquisition system, although I don't want that the user modify the input channels. I`d like to know if it is possible to define in different controls device and channels.
    []´s
    Juliana

    Hello Juliana,
    What you would like to do is possible with some simple string manipulation.  First you will need a Device Name constant from the DAQmx >> Advanced >> DAQmx Constants & Property Nodes palette.  Right-click on the constant and turn it into a control.  Then, use a concatenate strings function to join the device name with the rest of the characters you need to define your input channels.  Wire the output of the concatenate strings VI to your DAQmx Create Channel VI.
    Let me know if you have any questions on this.
    Thanks,
    Laura

  • How can I read the active (plugged in) DAQs and then send that to the device name input on DAQ assist?

    I have a system property node for daqmx but it does not let me change it to read when i right click on it. I am trying to have my program detect the name of the daq that is plugged in to the PC and then send that to daq assistant so that it will run properly wiithout me manually having to change the device name every time i switch hardware.
    Solved!
    Go to Solution.

    labview12110 wrote:
    Im just frustrated that the only function I have is to get a list of things that I can't do anything with. MAX knows which is active can I call it up somehow?
    You have do do programming.  That is what LabVIEW is.  MAX gives you all the tools to do everything you want and much more just program it to do what you want.
    Attached is a VI that I think does what you want.  I looks at all of your devices and returns the first non simulated one.  Apparently this list already excludes devices not connected to the system.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Find Non Simulated Device.vi ‏6 KB

  • How to map zfs iostat device name and sar -d device name ?

    Hi,
    In order to measure the disk performances or bottlenecks, we need to map the disk devices name from zpool iostat -v and the sar -d output ?
    Is there a way to map the 2 device names ?
    Rgds

    "/usr/bin/iostat -xpnCXMmz [interval] [count]" would be much easier to use, quicker, and requires no further work on your part.
    Otherwise you'll have to convert the MPXIO device back to the underlying physical devices and from that to their equivalent sd device, then lookup those devices in your sar output. It's doable, but not quick or easy to do:
    1) Identify the devices
    # luxadm probe
    2) For each Node WWN listed in "luxadm probe" run:
    # luxadm display WWN
    3) Grep the WWN in /etc/path_to_inst to get the ssd number
    Example:
    --- luxadm probe ---
    No Network Array enclosures found in /dev/es
    Found Fibre Channel device(s):
      Node WWN:5000097408039c00  Device Type:Disk device
        Logical Path:/dev/rdsk/c8t5000097408039D10d0s2
        Logical Path:/dev/rdsk/c10t5000097408039D21d0s2
        Logical Path:/dev/rdsk/c16t5000097408039D18d0s2
        Logical Path:/dev/rdsk/c18t5000097408039D29d0s2
    --- end ---
    --- luxadm display ---
    DEVICE PROPERTIES for disk: 5000097408039c00
      Vendor:               EMC    
      Product ID:           SYMMETRIX      
      Revision:             5874
      Serial Num:           6002310A4000
      Unformatted capacity:  2.812 MBytes
      Read Cache:           Enabled
        Minimum prefetch:   0x0
        Maximum prefetch:   0xffff
      Device Type:          Disk device
      Path(s):
      /dev/rdsk/c8t5000097408039D10d0s2
      /devices/pci@2,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d10,0:c,raw
        LUN path port WWN:          5000097408039d10
        Host controller port WWN:   21000024ff201482
        Path status:                O.K.
      /dev/rdsk/c10t5000097408039D21d0s2
      /devices/pci@6,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d21,0:c,raw
        LUN path port WWN:          5000097408039d21
        Host controller port WWN:   21000024ff201462
        Path status:                O.K.
      /dev/rdsk/c16t5000097408039D18d0s2
      /devices/pci@22,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d18,0:c,raw
        LUN path port WWN:          5000097408039d18
        Host controller port WWN:   21000024ff2014ce
        Path status:                O.K.
      /dev/rdsk/c18t5000097408039D29d0s2
      /devices/pci@26,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d29,0:c,raw
        LUN path port WWN:          5000097408039d29
        Host controller port WWN:   21000024ff20149e
        Path status:                O.K.
      (...snip...)
    --- end ---
    $ grep -i "5000097408039d21,0" ../etc/path_to_inst
    "/pci@6,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d21,0" 179 "ssd"So you now have your [s]sd number, 179 in this example, and your target number, 0.
    Repeat for the rest of your devices and you'll have a look up table you can refer to.

  • Daqmx device name

    Hello,
    I am writing a LabVIEW program that is used on many computers in our teaching labs and therefore the Daq device may not always be named "Dev1" in Max.  My first pass is a subvi (attached) which scans the  Dev Names until it finds a product match and return the device name.  I would then append the port, line or counter to the name.  This gives me coercion dots and there doesn't seem to be a conversion fuction between strings and I/O.
    My next thought was using the  I/O type property (2nd VI) but the freq output and the PFI lines which I need are not listed. 
    Finally, I could just rewrite the Max settings everytime the program starts but this seems to be a brute force approach.
    Is there a way I can make my program adapt to whatever the Device Settings are?
    Any comments or suggestions would be appreciated.
    Attachments:
    daqdevname.vi ‏25 KB
    FindDaqDev.vi ‏24 KB

    I think Strings shound work inplace of the IO Channel or you can explicily typecast between strings and I/O types 
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • How can I sync my photo contents in iPhoto on my iMac to my new iPAD's iPhoto?  I follwed all the instructions on manuals for both iPAD and iTunes re syncing, but I cannot find "phone button" under Device name on iTunes page. Please help!  Thanks!

    I follwed all the instructions on manuals for both iPAD and iTunes re syncing, but after physically connecting iPAD with iMac with USB or via WiFi I still cannot find "phone button" under Device name on iTunes page. Please help!  Thanks!
    I have been creating a photo book using a lots of photographs on iPhoto, and then I took another photos by using new iPAD which I want to integrate with the original album/book on iMac. I was able to import them from iPAD's iPhoto to iMac's iPhoto.  However I cannot import or transfer or sync anything from iMac's iPhoto to that of my iPAD. 
    So my iPhoto page on iPAD contains only 3 or 4 newly created albums, and no other info.  That means no syncing....
    I am supposed to be able to work on this project on either of these iPAD and iMac, correct?
    I am puzzled.  I appreciate for your advice and help.
    Thank you!

    It doesn't appear under the iPad device on the left-hand sidebar of iTunes, you need to select the iPad device on the sidebar and then select the Photos tab on the right-hand side of iTunes e.g.
    And then on the right-hand side :

  • How do I download the music from iTunes onto an old iPhone 3gs? I have reset the iPhone to factory settings and when I plug it in it wants to use the device name for my current iPhone 5 and I don't want to change anything on my old iPhone.

    How do I download the music from iTunes onto an old iPhone 3gs without affecting my iPhone 5? I have reset the iPhone to factory settings and when I plug it in it wants to use the device name for my current iPhone 5 and I don't want to change anything on my current iPhone. iTunes won't let me change the device name for the 3gs. I just want to use the old iPhone like an touch.

    Hi littlemansa,
    If I am understanding you correctly, it sounds like you are returning to an old iPhone that has been erased and you would like to set it up as a new device without restoring from a backup which would affect the name of your iPhone, as well as the contents therein. I have an article for you that can help you set up your iPhone as a new device, and that information can be found below:
    How to erase your iOS device and then set it up as a new device or restore it from backups - Apple Support
    http://support.apple.com/en-us/HT4137
    Basically, it seems like you may be stuck on a screen that is asking if you would like to restore your device from the backup that is filed under the name of your new iPhone, or if you would like to set up the device as a new device. I would suggest that you set it up as a new device to achieve your desired results. 
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Find monitor instance name , device name , resolution and frequency of multiple monitors (VGA and HDMI)

    hi,
    In my system multiple monitors are connected (VGA and  HDMI). In need to know the
    monitor instance name , device name , resolution and frequency of each monitor.. any solution?
    i used wm class 'WmiMonitorConnectionParams'  to determine Video output technology connection type and InstanceName.
    But i didn't get the device name , resolution and frequency of each monitor.??
    There are other wmi class like :
    WmiMonitorBrightnessEvent 
    WmiMonitorConnectionParams 
    WmiMonitorRawEEdidV1Block 
    WmiMonitorListedFrequencyRanges 
    WmiMonitorDigitalVideoInputParams 
    WmiMonitorAnalogVideoInputParams 
    WmiMonitorID 
    WmiMonitorBrightnessMethods 
    WmiMonitorBasicDisplayParams 
    WmiMonitorColorCharacteristics 
    WmiMonitorDescriptorMethods 
    WmiMonitorListedSupportedSourceM… 
    WmiMonitorBrightness 
    WmiMonitorColorXYZinCIE 
    WmiMonitorSupportedDisplayFeatures
     WmiMonitorBasicDisplayParams
     Win32_VideoController
    Win32_VideoConfiguration
    Win32_VideoSettings Win32_DisplayControllerConfiguration
    Win32_DisplayConfiguration
    But unable to determine monitor having  its corresponding values? please help me to find a solution .
    is there any other method to get multi monitor details?
    thank  you

    Hi sumith,
    I read some documents about WmiMonitorConnectionParams class, it should be able to get the video putput technology by the D3DKMDT_VIDEO_OUTPUT_TECHNOLOGY enumeration.
    D3DKMDT_VIDEO_OUTPUT_TECHNOLOGY enumeration
    So what happens when you are using WmiMonitorConnectionParams class? What prevent you? Anyway, please see a example of using WmiMonitorConnectionParams class, maybe you could get some hints on it.
    http://stackoverflow.com/questions/10085900/querying-wmi-for-d3dkmdt-video-output-technology
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • No Device Name and Port in UserTracking Report for Ipphones

    Hello,
    I'm having problems with Usertracking to IpPhones. The report provides information of usertracking IPPhone number, CCM Address, MAC, etc.. But the information in "Device Name" and "Port" (which would be connected) do not appear.
    The CCM normally appear in Topology Services, and reports Usertracking EndHosts to operate normally, even in the same switches that the phones are connected.
    Thanks

    What version of Campus Manager are you running ?
    What version of the Call Manager do you have ?
    What kind of IP Phone is this ?
    Post screenshot of the problem re-run data collection and UT .  Ensure that you don't have any filters in place and all subnets are included.
    Do an snmpwalk from the CiscoWorks LMS server to the Cisco Call Manager and see if you can poll those values from the cli and let us know the results using the "ccmPhoneTable"  ?
    Get the ut.log and ani.log with neccesary debugs enabled for phones.

  • LMS 4.2 Fault Monitor - Device Name and Frequency of Events

    Hi all,
    I've just installed LMS 4.2, like it a lot so far.  But I'm running into a few problems, and I'm hoping someone out here has a suggestion. 
    In the Fault Monitor, the Device Name column shows the device's IP address rather than the host name.  We need for it to show the host name, for ease of troubleshooting; most folks don't have the IP addresses memorized.    Likewise, when an email is sent out for an event, the managed device field also shows up as the device's IP address.
    The devices were all discovered with their IP addresses rather than a host name...should LMS have automatically found their host names?  Regardless, I manually updated all of the device's host names, yet they still display as an IP address in the fault monitor. 
    Also, it appears I need to figure out some way to throttle alerts.  One particular device will report an event (ie a temperature out of range) dozens of times in a polling period...several per second, even though it's the same alert.  Any suggestions on where I can throttle this?  My inbox is exploding.                  
    If anyone has any ideas, I would appreciate it!
    Jen

    I am having the IP vs. device name issue as well. The funny thing is if you hover over the IP of the device in Fault Monitor, you can see the device name listed. I was on a conference call with Cisco recently and pointed this out. One of the reps said the faults and alerts showing IP address issue should be fixed in version 4.2.3, but I don't know if he was basing this on first-hand knowledge or was just assuming. Does anyone know if this is the case?
    As for throttling alerts. I had a false positive alert from a device that I put in a custom fault group and changed the threshold on to keep them from firing. You probably have already resolved this issue, but I didn't see a resolution listed here. You would have to determine if raising a threshold for a device is adequate for your situation.
    Thank you,
    Mark

  • Linking PCI device names and drivers

    Hi Everyone,
    I have a PCI device with a class code of "ethernet" so the name
    created in the device tree is eg:
    "/pci@1f,0/pci@1/ethernet@3"
    I can run add_drv and attach my driver to this just fine.
    But what if I had another PCI ethernet card from a different
    vendor but still with a class code of "ethernet"? How would I
    get one driver associated with one device and a second driver
    the other? I've run add_drv with -i 'pciXXXX,X' but the
    name in the device tree is still "ethernet" and therefore this
    is what shows up in /etc/path_to_inst?
    My attach routine will check the vendor id and device id of
    the device and will fail the attach call for the "wrong"
    device. If I then add_drv the second driver for the second
    card, I see entries in /etc/path_to_inst with two drivers for each
    "ethernet" device. Will this cause problems in the long run?
    Thanks!
    Janice

    Hi
    First of all the IEEE 1275 PCI Bus Binding ( which can be found at
    http://playground.sun.com) clearly states that "ethernet" is one
    of the "Generic Names" listed in this manual. See portion of this
    document below.
    a) In collections of OS drivers, avoid the use of generic names for
    the drivers themselves. For example, it is generally unwise to name a
    driver ethernet, since there are many different ethernet adapters with
    different programming models. Using the generic name ethernet to
    identify only one such driver is presumptuous.
    You may go through one of these dicsussions to get more info on setting
    the "compatible property" through the driver.conf file.
    You may already be familiar with most of it,but it clarifies how
    a Sun system differentiates between the onboard hme card and the
    add on SunSwift card. Although they both use the same driver, you
    can create different driver.conf files when the drivers are different
    and use the compatible property field to identify the proper driver.
    To Configure Driver Parameters With PCI-bus Based Systems
    1.Obtain the hardware path name for the device in the device tree.
    Typically this path name and the associated instance number will be
    present in the /etc/path_to_inst file. For example, on a Sun Ultra 30
    UPA/PCI system in which one SunSwift-PCI card is plugged in, the
    /etc/path_to_inst file will have the following two entries (in
    addition to entries for other devices):
    "/pci@1f,4000/network@1,1" 0 "hme"
    "/pci@1f,4000/pci@4/SUNW,hme@0,1" 1 "hme"
    The first entry corresponds to the hme device on the motherboard.
    The second entry corresponds to the hme device on the SunSwift-PCI
    card.
    In the previous lines:
    The first part within the double quotes specifies the hardware node
    name in the device tree.
    The second number is the instance number.
    The last part in double quotes is the driver name.
    In the device path name, the last component after the last / character
    and before the @ character is the device name.
    The path name before the last component is the parent name.
    The comma-separated numbers after the @ character at the end
    represent the device and function numbers, which are together referred
    to as unit-address.
    To identify a PCI device unambiguously in the hme.conf file, use the
    name, parent name, and the unit-address for the device. Refer to the
    pci(4) man page for more information about the PCI device specs.
    In the first line of the previous example:
    Name = network
    Parent = /pci@1f,4000
    Unit-address = 1,1
    In the second line in the previous example:
    Name = SUNW,hme
    Parent = /pci@1f,4000/pci@4
    Unit-address = 0,1
    2.Set the ipg1 and ipg2 parameters for the above two devices in the
    /kernel/drv/hme.conf file:
    name = "SUNW,hme" parent = "/pci@1f,4000" unit-address = "1,1" ipg1=10
    ipg2=5;
    name = "SUNW,hme" parent = "/pci@1f,4000/pci@4" unit-address = "0,1"
    ipg1=20 ipg2=10;
    Note that for the motherboard device, the SUNW,hme device is used even
    though the path name uses the name network. The SUNW,hme device name
    is the value of the compatible property for this device.
    HTH
    Shridhar

  • HT5188 I have 50 iPads and 50 codes, but I am not able to install the app on the last ipad.  One code in the spreadsheet says it's already been used but shows no serial number or device name.

    I have 50 iPads and 50 codes, but I am not able to install the app on the last ipad using Apple Configurator.  One code in the spreadsheet says it's already been used but shows no serial number or device name.

    Hi mafiose15,
    Thanks for visiting Apple Support Communities.
    Restoring your iPod to factory settings is the best way to try and get it back to working order. You can use the instructions below to restore it:
    How to restore iPod
    Verify that you have an active Internet connection, because you may need to download new versions of the iTunes and iPod Software.
    Download and install the latest version of iTunes if necessary.
    Open iTunes. Connect your iPod to your computer using the USB or FireWire cable that came with your iPod.
    After a few moments, your iPod will appear in the Source panel in iTunes.
    Select your iPod in the Source panel. You will see information about your iPod appear in the Summary tab of the main iTunes window.
    Click Restore.
    If you are using a Mac, you will be asked to enter an administrator’s name and password.
    A progress bar will appear on the computer screen, indicating that stage one of the restore process has begun. When this stage is done, iTunes will present one of two messages with instructions specific to the iPod model you are restoring.
    Disconnect iPod and connect it to iPod Power Adapter (typically applies to older iPod models).
    Leave iPod connected to computer to complete restore (typically applies newer iPod models).
    During stage two of the restore process, the iPod displays an Apple logo as well as a progress bar at the bottom of the display. It is critical that the iPod remain connected to the computer or iPod power adapter during this stage.
    Note: The progress bar may be difficult to see, because the backlight on the iPod display may be off.
    After stage two of the restore process is complete, the iTunes Setup Assistant window will appear. It will ask you to name your iPod and choose your syncing preferences, as it did when you connected your iPod for the first time.
    You can find the instructions in this article:
    Restoring iPod to factory settings
    http://support.apple.com/kb/ht1339
    All the best,
    Jeremy

  • TS1702 My IPod Nano is synched to my ITunes library, but when I click on the Device name, all of the music is "grayed out" and I can't click on anything.

    My IPod Nano is synched to my ITunes library and shows up under Devices, but when I click on the Device name, all of the music is "grayed out" and I can't click on anything.

    In order for this content to not appear grayed out, you need to enable the Manually manage music option from under the iPod's Summary tab in iTunes.  Keep in minding that manually managing your iPod's contents is different from having content automatically sync to your device from iTunes.  See here for more information.
    Managing content manually on iPhone, iPad, and iPod
    B-rock

Maybe you are looking for

  • Best webcam for Mac mini core solo?

    What is the best webcam to use for my Mac Mini with an older display - is MacAlly icecam 2 sufficient? and i'm still on 10.4.11. Many thanks for your kind responses.

  • Safari 4.0.3  download "sa.aspx" files automatically

    After upgraded to the new Safari v4.0.3, when load in some sites, they'll always download some "sa.aspx" files automatically, one reloads(refresh) one downloads, like "sa.aspx, sa-1.aspx, sa-2.aspx....", that's real big fat trouble!!! Safari 4.0.2 an

  • I am unable to get a connection with my ipad through my router but I am able to get in when at my friend's house

    I am unable to get a connection with my ipad with my wifi router.  Will I need to upgrade my router

  • IPhoto 6 and TiVo sharing

    I have always been able to view my iPhotos thru my TiVo. Now with iPhoto 6 I cannot. I have opened the TCP port on my firewall, I have enabled sharing in iPhoto and in shapring preferences. My TiVo gets to the internet, and I can ping it from my comp

  • Check box list

    I'm looking to have a list containing checkboxes. I've found a couple examples online, but still can't seem to get what I need. I need to be able to drag the components up or down in the list to reorder them and also toggel them on or off (checked or