Can I programmatically change my USB Dev assignment?

I have a production test program that uses two USB 6501 DAQs. Currently during development they're assigned Dev1 and Dev2 in MAX and my DAQmx drivers are set up for those addresses. This test fixture, when deployed, will be connected and disconnected from the production equipment, and other USB devices may be plugged into and unplugged from the production test computer in the interim, then these will be plugged in again when it's time to test this product, and the Dev assignments are likely to be different from Dev1 and Dev2. I know I can change them in MAX, but that's not practical. I want this problem and a solution to be transparent to the people using the test program, and I'd like to reassign or change Devs programmatically. Is this possible? If so, how?

System Configuration VIs will allow you to chance MAX device names
But...
I had a similar problem with 25 identical test sets each with 6 USB power supplies. Power supplies are swapped out for calibration just about weekly. The identifiers in MAX needed to be changed each time based off of their serial number.
Years ago I attempted to modify the setting in MAX and had some success using the now deprecated “MAX Copy Configuration” VI, but opted instead to query the test set to find the power supplies and what their references names where and store the device names. Then the program could care less what MAX had for their device names. There was some extra code to figure out which supply was which (1-6) that depends on how YOU are using your devices.
We have adopted a similar methodology for other test sets for ALL our instrument device references (VISA, DAQmx, GPIB, USB, PXI, LXI). Find what’s there and use whatever name MAX has for and not try to change it.
See the
System Configuration VI
GPIB Find listeners
VISA Find Resource
niModInst
Depending on the system, I use some combination these to find my instruments.
I also use Mico Soft’s DevCon function to find devices on my test sets.
Omar

Similar Messages

  • How can I programmatically change a label?

    Hi everyone,
    I have a 2-D array that I wish to populate with different sorts of data.  Depending upon the data, the names of the rows and columns may change.  Arrays have to have identical labels and I suppose I could simply populate a string indicator, but frankly, that looks like trash.
    How can I programmatically change a label of a column or a row in a 2-D array?  Should I consider using a table?  I want it to look nice.
    Thanks,
    Jason

    Hi
    I do not think you are able to change the label programatically.
    But you might consider to use Captions instead of labels. You can hide labels and make captions visible programatically, and you can change the text of the caption and size (see enclosed vi).
    take care
    Pawel
    Attachments:
    caption.vi ‏20 KB

  • Can I Programmatically Change the Active Group on a Hypertrend in DSC?

    I would like to know how to programmatically change the active group of a hypertrend in Labview DSC.  I saw a link which said it can be done in Lookout.  But in the DSC module, the active group is read only.
    I know of a hard way to do it.  I could save the hypertrend settings as xmlSettings to a temporary file.  The active group is one of the settings.  I could then change the active group in this text file to point to the new group and then reload the settings.  But this is not a clean way of dong it.
    Anyone know if there is a easy way?
    Solved!
    Go to Solution.

    I found a way to do it but its not very clean.  I dont know why there is not a function to change the current group.
    Here is how I did it.

  • Can I programmat​ically control USB with LabVIEW?

    I have a requirement to test a USB device. The test includes powering several of the devices off and on, i.e., power cycling for several hours. My plan is to accomplish by using a USB hub, breaking out the power circuit and running it through a relay inside of a DAQ. A neater solution would be to programmatically turn the USB device off and on. I know that the computer communicates with the device under test via USB and not the USB port itself. So I’m wondering if it’s possible with LabVIEW to accomplish this.
    Thank you.

    I'm not exactly sure what Eric was referring to as far as ActiveX. If it's with respect to the operating system, you're not going to find any ActiveX interface with the OS to do this. Unless he was referring to software programmability of the hub? Don't know.
    With respect to power-cycling, a USB port can be disabled using OS calls. Thus, if you want to just turn off the whole hub you can disable the USB port that the hub is connected to. On Windows you can use a command-line utility called devcon to do this (search the forum as this has been mentioned before). The limitation is that devcon is not redistributable. This means that you cannot include it if you're giving this software to a customer. If, on the other hand you need to selective turn off the ports on the hub (i.e., to test individual devices), then you'd have to go back to the manufacturer of the hub and find out if they have a software interface to do this. Otherwise, it's the external power on/off approach via a relay or via a regulator as suggested by SnowMule.
    EDIT: Additional caveat: devcon may not work under Windows 7. You did not indicate what operating system you're using. However, the OS calls that devcon makes are still there.

  • How can I programmatically change the fill color Settings of the Cwslide ActiveX Controls

    In design mode (Visual Studio 6.0),I want to programmatically change the fill color in properties of  cwslide  ActiveX Controls.what's the command?
    Attachments:
    cwslide.JPG ‏11 KB

    First, if you want to start getting beyond the basics with DAQ, you are going to have to stop using the DAQ assistant and do it with lower level DAQmx VI's.  There are hundreds of examples in the example finder.  You can even right click on the DAQ assistant and select open front panel.  That will create a subVI that you can open and see what is going on behind the scenes.  Do it.  I think you'll find the DAQ task is being recreated on each (though I'm not 100% of how the settings are established or maintained in each section of that subVI).
    The second problem is you have a bit of a race condition on iteration 0.  Those two DAQ property nodes are running at the same time.  So when you read the AI.Max, it may be happening before or after the AI.Max is set in your case structure.
    Third, make sure you wire up your error wires.

  • Can you programmatically change properties of the Detailed Navigation?

    Is there an SAP EP6.0 API call to allow one to programmatically change the width of the Detailed Navigation, or programmatically hide or unhide it?  I realize that this can be preset, but I am interested in dynamically changing these values.
    Thanks,
    John

    Hi!
    If you look to the sourceCode of your EP (rigthClick->show source) you'll see that some JavaScriptFiles are loaded. One of them is called:
    "WAandNavPanel.js"
    Inside this file are some nice functions like "collapsePanel()" and so on. I didn't try, but perhaps you can use them or they can show you the right way.
    http://<host>:<port>/irj/portalapps/com.sap.portal.layouts.framework/scripts/WAandNavPanel.js
    Regards,
    Christian

  • Can I programmatically change a virtual channel's scaling?

    I want to be able to read and write the scaling parameters for a virtual channel. Using NIDAQ 6.8 with MAX 2.0 and LV 6.0.2.
    Thanks

    This question actually belongs in one of the Measurement Devices categories. In the future, please post to the appropriate forum. You will find similar questions and get exposure to others with similar interests when you post directly into one of those categories.
    In answer to your question, you can read the virtual channel properties, but you cannot programmatically change them. If there were a finite number of changes, you could have multiple config files that contained the same virtual channel names. Then, you could programmatically switch which config file MAX was using.
    Alternatively, you can apply the scaling in your program if you read the raw value through the virtual channel (no scale) and then pass it into a scaling function.
    You can find exa
    mples for saving virtual channel properties to a text file and for changing config files in the NI Developer Zone. Start at the http://www.ni.com/support page and choose Example Programs from the Technical Resources pulldown menu. Then, type in keywords, such as "virtual channel" or "change NI-DAQ configuration".
    Regards,
    Geneva L.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • How can I programmatically change the colour of tab pages? If not, when?

    I have found that in LabVIEW 6.0.2 the "Dialog" tab control cannot be coloured, but the other type of tab control one can be coloured by the paintbrush tool. I cannot find any property node to programmtically set the colour of the enitre tab control or individual pages. When will these properties be available in LabVIEW?

    The dialog controls and indicators are designed
    specifically for use in dialog boxes. These controls inherit their color from the colors you set in Control Panel >> Display. Because of this you will not be able to programmatically change their color.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • Can you programmatically change the width of columns in a table control\indicator

    Is it possible to programmatically change the width of columns in a table control\indicator ie to fit to width of the data or in my case the header information.

    Create a property node (or reference) and use the 'Active Cell' property to select which column you want to change and then use the 'Cell size'--> 'Width' property to change the size.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    table.vi ‏33 KB

  • Can I programmatically change the printer paper size from ActionScript?

    Hi,
    I'm a newbie Flash/ActionSript developer and I have been searching for answers for a while with no luck. I wonder if I can get some pointers from this forum.
    I'm trying to programmatically print a movie clip to 8.5" x 11" plain paper regardless of the current paper size setting in the printer. e.g if the user's printer is currently set to use paper size A4, can I change the setting to Letter (8.5" x 11") from ActionScript at runtime? I use PrintJob class for printing the movieclip.
    According to the ActionScript online API spec ( http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context =LiveDocs_Parts&file=00002066.html), I can only READ the paper size setting after the call to PrintJob.start. I can't believe that we are not allowed to change the setting. Maybe I missed something here. Can somebody help me out?
    Thanks in advance!

    check your duplicate thread.
    and, please don't cross-post.

  • Can I programmatically change printer paper size from ActionScript?

    Hi,
    I'm a newbie Flash/ActionSript developer and I have been searching for answers for a while with no luck. I wonder if I can get some pointers from this forum.
    I'm trying to programmatically print a movie clip to 8.5" x 11" plain paper regardless of the current paper size setting in the printer. e.g if the user's printer is currently set to use paper size A4, can I change the setting to Letter (8.5" x 11") from ActionScript at runtime? I use PrintJob class for printing the movieclip.
    According to the ActionScript online API spec ( http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context =LiveDocs_Parts&file=00002066.html), I can only READ the paper size setting after the call to PrintJob.start. I can't believe that we are not allowed to change the setting. Maybe I missed something here. Can somebody help me out?
    Thanks in advance!

    you can't change the paper size used in client side printer.

  • How can I programmatically change the voltage range settings in a DAQ Assistant

    Hi,
    First post here.  
    I need to be able to change the voltage range properties of a daqmx DAQ Assistant based on user input.  My hardware, an SCXI-1102C does not allow changing this property on a running task, so I'd like to either set the analog input voltage range before the DAQ Assistant activates, or pause the DAQ Assistant immediately after it starts, set the values and then resume.
    I don't know how to edit the task ahead of time because the DAQ assistant creates the task when it runs, and there is no task before that.
    In the attached picture, I have a conditional section, set to run only if the while loop iteration is 0.  I take the task from the Daq assistant, send it to a stop task vi, set the property, and then send the task on to the start task vi. I can watch it run with the debug light on, and everything seems to work correctly, but on the second (and all the other) iteration of the loop, I read out AI.Max and it seems like the DAQ Assistant has re set it back to 5V.  Can anyone see what is going wrong here?
    BTW, this is continuous acquisition and the code does not produce error messages when it runs.
    I did come across a similar question that someone posted here back in 2006, but his question was specifically aimed at a Labview API (VB, I think), and not an actual G solution.
    Attached are the actual vi in question and a png image of the block diagram.
    Thanks! 
    Ruby K
    Solved!
    Go to Solution.
    Attachments:
    Labview_question.PNG ‏14 KB
    Sample_AIV.vi ‏91 KB

    First, if you want to start getting beyond the basics with DAQ, you are going to have to stop using the DAQ assistant and do it with lower level DAQmx VI's.  There are hundreds of examples in the example finder.  You can even right click on the DAQ assistant and select open front panel.  That will create a subVI that you can open and see what is going on behind the scenes.  Do it.  I think you'll find the DAQ task is being recreated on each (though I'm not 100% of how the settings are established or maintained in each section of that subVI).
    The second problem is you have a bit of a race condition on iteration 0.  Those two DAQ property nodes are running at the same time.  So when you read the AI.Max, it may be happening before or after the AI.Max is set in your case structure.
    Third, make sure you wire up your error wires.

  • Can I programmatically change the VI Search Path?

    I'm writing a simple program to periodically mass compile certain directories of my source code.  In my directory structure I try to enforce rules about what is allowed to depend on what, so I want to programatically enforce this during the mass compile.   To do this, I'd need to modify the VI search path before each directory is compiled.  Is there any property or method available for changing the VI Search Path?

    There is, but it's a private property, so it's not documented, and its behavior and/or availability can change with subsequent releases of LabVIEW:
    Message Edited by smercurio_fc on 10-24-2007 05:24 PM
    Attachments:
    Example_BD.png ‏2 KB

  • Can I programmatically change the FP IAK file in LabView

    We are using our FP-1000 as dataloggers for thermocouples and voltage reading. However the configuration of the setup may change depending on which (and how many) modules are attached to the communication module. I would like my program to go out to the FP and figure out which modules are attached and then ask for channel configuration info form the user. This will prevent from needing multiple iak files and the operator will not have to use FP Explorer. Can this be done? Thanks.

    Mike,
    Yes, this can be done. You can use the low level serial FieldPoint VIs to do what you wish. The FieldPoint Serial VIs are located under the FieldPoint>>Advanced>>Serial Configuration palette. Side Note: These VIs used to be installed by default only if you had LabVIEW RT on the system, you may need to do a custom reinstall of NI-FieldPoint to get the VIs. The VIs allow you to determine what modules are attached (!B), configure the channels (!D), and read/write the channels. These commands are all documented in the FP-1000/1001 Programmers Reference Manual available at http://digital.ni.com/manuals.nsf/websearch/EE241C7357D3F8CE862567840072F554?OpenDocument&node=132100_US .
    Regards,
    Aaron

  • How can I programmatically change the number displayed on a digital control?

    In my application, there are two while loops. The inner loop has a digital control where the user can enter a number. If he enters an invalid number, I want to clear his input.

    One way of doing is see attach..
    need to use property node and case structure.
    When you feel sad, laugh
    Attachments:
    25feb04.vi ‏28 KB

Maybe you are looking for

  • My ipod will no longer sync music, any suggestions?

    lMy ipod will no longer sync music. I have windows 8 and a windows XP, and it won't sync in either program. Suggestions?

  • Share invitation emails

    Hello. I have SAP Mobile Documents SP3, rhel 6, unicode kernel, 7.4sr2. I have no problem with sending emails using Java Mail Service on English. But when I try to create invitation.html and invitation.properties on russian using utf-8 or unicode enc

  • Trouble with accordion panel

    I'm trying to put an accordion panel in a page of the website i'm creating but i've a weird problem. First of all, this is the link of the page http://wwwipiniriolotermeit01.businesscatalyst.com/menù.html As you can see, when i choose one of the opti

  • HOW DO YOU GET TO THE RAID SETTINGS ON THIS THING (GT60 2O)???

    Dude... I been online for 40 minutes looking for instructions on how to get around this box. I can't find anything relevant, so I'm just gonna ask. How do you get to the settings for SUPER RAID 2? I can't find any information on it and now I'm really

  • MessageExpiredException in the Sync XI--JDBC scenario

    Hello experts, I am developing a scenario run a report in ECC, the report will get data from other database via JDBC and then display in ECC client. thus i develop a sync scenario, but sometimes i sent the request, and then wait for 3 minutes, at las