Programmat​ically change PXIe-2529 topology with NISE

Hi !
I have a PXIe-2529 that I control through NISE to test some products. These products require the matrix topology to be changed while I'm testing them.
Is there any way to do this programmatically ? 
Opening/closing NISE session might be solution (even if I would prefer not to close it), but I can't find an option string xorking to change the topology...
Any ideas ?
thanks !
Solved!
Go to Solution.

zyl7,
Unfortunately there is no way to change the topology on the fly with NI Switch Executive. A better method would be to have two NISE Virtual Devices, one for the 4x32 2 wire configuration, and one for the 8x16 2 wire configuration. You would close out the NISE session from VirtualDevice1, and open a session to VirtualDevice2 that references the same hardware. Of course, you would need to make sure that the external connections are connected properly, but this should change the topology for you.
Note: Closing the NISE session for VirtualDevice1 and Opening the NISE session for VirtualDevice2 will reset the switch module and cause all previous connections to open.
Hope that this helps!
Frank,
National Instruments
Staff Software Project Engineer

Similar Messages

  • Programmat​ically changing the TCP/IP address of Windows Vista / 7 / 8

    Hi there!
    I'm pretty new to LabVIEW (started 2 months ago) and still have a long way ahead of me, so please forgive me if anything that I ask is too basic.
    I'm trying to change the IP properties of the PC via LabVIEW for some bigger software I'm working on.
    I can easily do it in Windows XP using the System Exec function to call cmd.exe and then use netsh commands, as previously explained for example here:
    https://forums.ni.com/t5/LabVIEW/Programmatically-​changing-the-IP-address-of-Win-XP/m-p/410533/highl​...
    https://forums.ni.com/t5/LabVIEW/Change-IP-number-​and-Subnet-mask-with-LabView/m-p/407536/highlight/​...
    http://forums.ni.com/t5/LabVIEW/How-to-change-the-​TCP-IP-settings-of-the-LAN-connection-from-LV/m-p/​...
    http://forums.ni.com/t5/LabVIEW/Change-the-compute​r-IP-address-in-LabVIEW/m-p/167481?query.id=108803​... ...
    But then, since I want to run my software in Windows 7 (& by extension to any Windows OS), I have a problem: netsh asks for elevated rights.
    So, the next problem is: how do I run cmd.exe (or any other programm?, by extension) as administrator (from LabVIEW)?. Note that I'm using an account with admin rights. But I would prefer not having to disable the User Account Control configuration, and I don't want to force the user to any interaction (clicking in pop-ups, or right-clicking in anything), I want it to be as automatized as possible.
    I did a bit of research and couldn't find anyway to do it, neither any command to run with cmd, so the two similar solutions that came to my mind are very rudimentary and kind of dirty:
    Use DLLs to make LabVIEW press the keys necessary to open cmd running as admin via key shortcuts (using a variation of https://decibel.ni.com/content/docs/DOC-29563 and the key shortcuts from here: http://www.howtogeek.com/howto/windows-vista/run-a​-command-as-administrator-from-the-windows-vista-r​...). Here, I open the Window menu (with LWIN), properly writes "cmd", and then uses CTRL+SHIFT+ENTER ok... but then the User Account Control appears and LabView keeps doing the commands (I want ALT+Y or LEFT & then ENTER)... without affecting to the UAC! If I make LabVIEW wait a bit and manually close the UAC I succesfully have the command prompt... but LabVIEW is still incapable of write the text that I'm giving it to him (the netsh commands). LabVIEW runs the software, but it's like the UAC & the command prompt are running in a higher? level and are not affected by LV. If I do the same over a .txt I succesfuly have the intended text. Any ideas about this?
    Create a link to cmd.exe and change the properties to "Run as administrator", then use System Exec to call the link, expecting to open a command prompt with elevated rights, and then write the netsh commands either with DLLs (that might not work according to my first solution) or using the "standard input" of System Exec? (not sure if this is possible). But then System Exec gives me an error (code 2) when trying to execute the .lnk and so the command prompt does not open. The error code stands for "Error 2 occurred at an unidentified location. Possible reason(s): LabVIEW: Memory is full." Any idea about how to solve this?
    The conclusion is that I'm stuck with two possible solutions none of them working.
    Maybe there's a more simple solution that I didn't think about?
    Solutions to these problems?
    Any different proposals?
    Thanks in advance for any tip or help!
    Note: I titled the thread as Windows Vista, 7 & 8 since I assume all of them asks for admin rights when changing IPs. In case there are other people with the same problem, altough right now I'm only using XP & 7.
    Alejandro Asensio, CLAD

    First question: Why do you have to change OS properties via a custom application? I know such requirements can exist (sigh...) but nevertheless it seems a little bit weird to me ;-)
    OK, now an idea:
    Run cmd.exe via task scheduler. Here is a how to do it: http://maximumpcguides.com/windows-vista/run-a-pro​gram-with-administrative-privileges-without-uac-pr​...

  • Programmat​ically change the modified date of a folder

    Is there a way to programmatically change the last modified date of a folder?  The OpenG file info VI doesn't seem to work for a folder.
    Jim
    LV 2013
    Solved!
    Go to Solution.

    Please don't take this as criticism.  Often users will post in multiple locations and get varying levels of help from each place they posted.  This makes for a fragmented discussion where one group of individuals aren't collaborating with a separate group of individuals who are working on the same problem.  Posting in both places is fine, but I think what helps is having a link from one post to the other, so that individuals in one group can see the discussion taking place in the other.  This helps avoiding suggesting the same solution twice, and help come up with solutions neither group has come up with yet.
    At first glance the two posts looked similar enough that I thought this would be the case where the two groups can at least see the discussion taking place elsewhere.  If the two posts aren't related at all then I apologize for providing the link between them.
    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.

  • Programmat​ically change case structure range

    I think I already know the answer to this, but I'm going to ask anyway. In the attached image, is it possible to programmatically change the range of numbers the case uses?
    Tay
    Solved!
    Go to Solution.
    Attachments:
    case structure.png ‏3 KB

    To use a property node on a case selector, you need to have a reference to it.  There are several ways to open the reference, depending on where the object you want to reference is located.
    EASY - If the case selector is not inside another structure and has a unique name, use Open VI Object Reference with the name of the case selector as the input.  The owner is the block diagram reference and the object class is a case selector.
    FAIRLY EASY - If the case selector is inside another structure or structures and all structures and the case selector have names unique to their diagrams, open the structures from outside to inside as in case 1.  After you open the structure reference, get a reference to the appropriate diagram and repeat until you get to the final case selector.
    HARDER - Case selector has a unique name, but is buried in a container which does not.  Use the Traverse method to find all case selectors, then use the Label property of each to find the right one.
    HARDEST - Case selector does not have a unique name.  Use the Traverse method to find all case selectors, then find the one you want by the frame labels.
    The take-home message from this is that your life is much easier if you give your containers unique names.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Can you programmat​ically change a picture control frame/bord​er

    In a platform neutral manner can I programmatically change a picture control frame/border
    Solved!
    Go to Solution.

    You can make it look that way using many differnt methods.
    The simplest is to make the border transparent and put a boolean behind the picture. Size the boolean so it looks like it is the border of the picture. Change the color of the boolean and you are on you way.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Programmat​ically change the IAK on the fieldpoint controller​.

    Inside a g-based program.

    Rascal,
    If you are referring to changing the IAK file programmatically on the host see the following Knowledge Base:
    http://digital.ni.com/public.nsf/websearch/AD7E2B9​7C60086B886256DDE006FBED2?OpenDocument
    Changing the item names that are downloaded on to the controller is not supported, but here is a possible solution (untested):
    1. Download the item names to your controller.
    2. FTP to the controller and then change the name of the following file: ftp:///NI-RT/SYSTEM/fpbank.ini. This is the file that holds the I/O modules names.
    3. Repeat the previous two steps until you download several different sets of item names to the controller.
    4. When you want to switch which configuration you are using just use the file I/O VIs to ch
    ange the name of the item name file to fpbank.ini.
    5. You may have to restart the controller before the new item names are valid.
    As I said this is completely untested and unsupported, but a possible solution to want it seems you want to do.
    On a side note you should try to be a little less harsh to people who are just trying to help you out.
    Ames
    Applications Engineering
    National Instruments

  • Programmat​ically change Results Active Configurat​ion

    I'm using TestStand 2012 SP1.  I'd like to be able to configure the Active Configuration for results in the process model.  A station running our sequential model would set the Sequential Reporting configuration as the active configuaration while a station running a Batch Model would set the Batch Reporting as the active configuration.  Furthermore, if a station can do both, the application run would select the proper process model and it would then select the proper reporting configuration.
    I've got configurations setup but need to know how to set the active configuration.  I don't want this on a  per sequence basis, but rather at the process model level so it is run once and done.  This would allow for developers to modify their configuration but still have the Batch or Sequential Reporting selected depending on what they are working on.
    Thanks.

    You are right about the ModelSupport.seq version of the callback being used. You could:
    1. Modify the callback in ModelSupport.seq (or the call to it). You could determine what model you are being called from with something like:
         Find(RunState.Execution.GetModelSequenceFile().Pat​h, "SequentialModel.seq", 0, True) != -1
    2. Use StationCallbacks.seq. When I tested this, I was having trouble getting it to call the callback, but when I restarted the editor, it started working. Not sure if you need to restart after editing the stationcallbacks file (you shouldn't need to), but try that if you have trouble and please let me know if that was the issue.
    3. As the first step in each model, you could load the configuration file, change the activeConfiguration, and resave the file, but (1) or (2) seem a bit less heavy handed to me.

  • HT2513 my iCal calendar that I created with the color green keeps changing to purple.  no matter how many times I change it to green, it turns it back to purple.  Of course this only happens with iCloud and not "from my Mac".  Any ideas?

    my iCal calendar that I created with the color green keeps changing to purple.  no matter how many times I change it to green, it turns it back to purple.  Of course this only happens with iCloud and not "from my Mac".  Any ideas on how to correct this?  This seems like a trivial error, but it's super annoying.

    I called Apple and they said that they know about this problem.  It's a problem with iCloud which their Engineers know about.  (there was a new iCloud release, hence...)  No ETA for a fix yet.  I asked that this be escalated so Engineering doesn't put it at the bottom of their fix list.  I talked to a Senior Advisor and mentioned to them to have QA check their regression tests as this has happened before to me (the problem just didn't take this long to resolve).  I like to use green too for important stuff, so I've resorted to creating a new calendar using the normal calendar green for events going forward.  They could have picked another color besides green to have this problem with and I wouldn't have been so upset.  ;-)

  • Minimum current for pxi-2529

    Hi All!I have the PXI-2529 Matrix, and I am planning to use it  in this way: I have a set of resistive sensors connected via matrix switchers to of DVMs  (see picture).I need some times (like 1-100 times per day) to change these connections. Here is the question: one of matrix parameters is minimum current and it is 10uA. I would like to understand what is the reason for this parameter? (is it leakage or something else), and is it mean that matrix will not work if DVM internal resistance will be enough big, and current throw matrix switchers will be less than 10uA?  
    Solved!
    Go to Solution.

    Hi! All! Sorry for long silence, it was time for holiday
    John S, aNItaB, Than You for answer and recomendations, I will think about 2530 and Digital Multimeters (In fact I have to use one our DVM, but in future I will need some other DVM). 
     After your answers I was still confused, I have not enough understand - what is the minimum current? And I have started my own investigation: I have made some experiments: I have serial connected amperemeter, load (10 kOhm) and with help several (from 1 to 10) 2529 switches I have connected power supply. I change voltage of power supply and measured current. So there is no any problem to pass current 10uA, and smaller like 1 uA. 
    After I star investigate the AGQ210A4H (it is relay used in Matrix) datasheet  (http://www.panasonic-electric-works.com/catalogues/downloads/relays/ds_61008_0000_en_gq.pdf) and some relay technical information from  AGQ210A4H manufacturer (Panasonic) http://www.panasonic-electric-works.com/peweu/en/downloads/ds_x61_en_relay_technical_information.pdf. Because probably this minimum current parameter has been take from relay datasheet.
    And it is said that  AGQ210A4H have a Min. switching capacity: 10μA 10 mV DC. And there is some explain about Minimum switching capability This value is a guideline as to the lowest possible level at which it will be possible for a low level load to allow switching.
    But this explanation only adds some confusion, because, what is the reason for minimum limitation of load? Because if we have a low load, the main idea, that its voltage can be enough big for compare with thermal EMF, and current will be limited with resistive of relays and resistors of connected circuits in case voltage source using is all scheme.
    After that I try to find "Min. switching capacity relay" in Google. And I have found this: http://answers.google.com/answers/threadview/id/519904.html Most interesting answer (it is similar to John S answer) - "...The current required to remove the oxide layer and establish a metal to metal contact and hence an electrical connection is also described as a wetting current..."  
    So here is the questions: 
    Is it meaning that minimum current specified in 2529 specification it is “wetting current” or sealing current (like here: http://en.wikipedia.org/wiki/Wetting_current)?  
    And what is the consequence of long using relay for connect DMM like voltmeter (over minimum current pass through the switchers)?
    Is it mean that after some years of such matrix using conductive oxide layer become enough big and I will lose the connection?
    Is this you try to explain me in the first post?
    Thank You!
    Message Edited by RangerOne on 01-04-2010 05:19 PM
    Message Edited by RangerOne on 01-04-2010 05:20 PM

  • How to make my applicatio​n programmat​ically switch between English and Russian

    Greetings from Colorado...
    My application needs to be switchable between English and Russian.  Future languages to add are Spanish and Chinese.  The user selects a language
    from a control before starting the program and then the program changes the Captions, Boolean Texts, Graph Labels, and Enum Type Strings to the
    chosen language.  For Russian, this requires a different set of characters.  I have made substantial progress by:
    Control Panels>Region and Language>Keyboards and Languages>Change Keyboards added Russian>Keyboard>Russian on my development
    computer.
    In the LabVIEW.ini file, I added UseUnicode=TRUE (thanks to a suggestion found in this forum)
    Made property nodes for controls and used properties such as Interpret As Unicode (True for Russian, False for English), Text, Font Name, Font Size, etc.
    I have used fonts Arial and Arial CYR for Russian and MS Sans Serif for English
    Set the keyboard for Russian and enter Cyrillic characters into text constants that are set for Arial or Arial CYR font.  Sometimes one works and
    sometimes the other works.  As long as I set the font name in the property node the same way the text went into the text constant, it generally
    works.  I wish I could understand why one works sometimes and the other works other times!
    I have had trouble with the Boolean Text going off-center when changing fonts and languages and it seems that by setting the Lock Text In Center
    property to False and then True again, it seems to work.  Often changing Boolean texts between short and long texts causes some of the long text
    to be non-displayed; I have remedied this by explicitly setting the width of the Boolean text in a property node.
    Often, the Russian text appears as gibberish with strange right-angle characters, :s, =s, and tiny numbers.  I have been able to remedy this on my
    development computer by ensuring that the text constant on the block diagram has the same size as the caption is supposed to have.  This
    is not necessary for normal programming in English, but it seems to help here.  But it doesn't always solve the problem.
    Sometimes the English text appears as Chinese gibberish in an Enum Type selection list or in a graph label.  On my development computer,
    it seems that making the text the last property to change helps here.
    By changing the sequences of assignments to a single property node with a long list of properties, I have been able to make some of these
    controls to switch between languages without gibberish showing up.
    A few hours ago, I had the Russian strings in the Enum Type control working, except that when selecting from the available items, only the first
    word of the Russian string was displayed.  Two of the items start with the same word, so the user can't distinguish them.  
    At that time the English strings were appearing as Chinese gibberish while the list during the selection process displayed in English.  As soon
    as I changed the selection, future attempts to change the selection gave Chinese gibberish during the selection process, too.  But this was only
    a problem in the executable version; the source-code version worked fine.
    In an attempt to get rid of the Chinese gibberish, I made new constants and retyped the items into them.  This worked!  But then, the Russian
    stopped working and gave gibberish angles and tiny numbers, even though I didn't touch any of the code that sets the properties in Russian mode.
    After trying a few sequences of setting the properties for the graph X label on page 2 of my tab control, this label started working correctly for both
    languages.  But the text of that label comes through on page 1 of the tab control, partly obscured by other controls on that page.  After the
    program runs a few more seconds, these shadows disappear.
    Most times I restart LabVIEW, I get an error message saying there was a crash due to fontmgr.cpp, line 7494.  But there actually wasn't a crash.
    My computer has Windows 7 64-bit.  Deployment Computer has Windows 7 32-bit.  LabVIEW version is 8.5.  
    I have probably 50 or 100 more controls and indicators to change to language programmability and figuring out all this stuff for each one is
    terribly time-consuming and there is no assurance that all of them will ever work.  
    At this point, I'm hoping that I am on an entirely wrong path and someone will send me a clue to get me on a path that is more predictable.
    Thanks in advance to all who post ideas!
    Cheers
    Halden 

    Hi All,
    I've made a lot of progress on this translation, but it's been really hard.  There are lots of weird things going on that must be logical because they're in a computer, but I can't figure out what the logic is.  When changing a font on a caption using the front panel, it sometimes changes the font on the caption and sometimes doesn't although the indicator always indicates the new font.  Removing the first character of the unicode font string being sent to the caption seems to help...huh?  Anyway, tabs still can't change language programmatically, and niether can ring controls (some kinds will take the new list of strings, but when selecting, they only display the first word of the string!).  Boolean text can be reprogrammed, but only if the boolean text is set to be the same for both true and false states.  When reprogramming captions on a non-displayed page of a multi-page tab-controlled user interface, the new text appears on the current page until I change pages back and forth.  What a pain!
    Sooo, NI....does LabVIEW 2011 have support for unicode fonts?  Or, is there anything else in the new control style that will support programmatic language changing?
    Halden 

  • ICal changing home calendar color on its own

    I use a MacBook Pro laptop running OSX 10.7.5. I have iCal on my laptop and iPhone and back up to iCloud. My calendars have been running flawlessly for several years. Today, all of a sudden and without my doing anything, the color of my home calendar changed from red (which it has been for at least two years) to blue. Reminders changed from blue (where they have been for some time) to orange. All other calendars stayed their correct colors.
    I changed the colors back to their original colors, and within 10 minutes they had changed back again.
    I quit iCal, restarted my computer, and changed the colors again when I got iCal back up. Within a few minutes they were back (to blue for home and orange for reminders). It's not a big deal, but just annoying. Why would this happen?

    I have the same problem. It is really frustrating. I use iCal in a small office with 5 people. How can we make time management if everybody has the same colour. I found not solution in the Internet as well as on Apple Support. If somebody has an answer. Please let me know.

  • Why does iCal change Location?  Can it be stopped?

    I'm using iCal v8.0 (2026), and VERY frustrated that it changes the location field on it's own, OMITTING important information.  WHY?  HOW CAN IT BE STOPPED FROM THIS BEHAVIOR?
    Example:  I enter this into the location field:
    741 Gardenview Ct #203
    Encinitas CA 92024
    And iCal changes it to this (out of my sight, after closing the detail window):
    741 Gardenview Ct
    Encinitas CA 92024
    OK, you might ask why I care.  Because when I get to the address, I need to know the suite number to go to.  What if the building is massive, with hundreds of suites.  I knew the suite number when I created the iCal entry.  So my workaround is to put the suite number into the name of the event.  But that's so awkward, silly and WRONG.
    Does anyone at Apple know about this, or care?
    Please help!

    Oops, I didn't notice.  iCal has changed names, and now is called Calendar.  I have Calendar 8.0 and am running Yosemite, OS X 10.10.1

  • PXI-2529 RF Switch

    The PXI-2529 is a 4to1 RF mux. It is made up of 5 SMA's, Four inputs and one COMMON output.
    My question is "Can the input be on the COMMON SMA connector and the output be the other four SMA's? In other words, can this switch be operated as a demux?
    If the switch is used as a demux, will it still have the same RF characteristics?
    Thank you. 

    Hey R,
    The PXI-2529 is a high density matrix, but yes, you can use our RF muxes (PXI-254x, PXI-255x, PXI-259x) as 'demux' modules.  Note that RF multiplexers with termination (2597, 2545, 2555) are only terminated on the channel side, so you will not be able to terminate the COM channel internal to the module; you can simply terminate one of the output channels and then hook COM to that channel if you need to be able to terminate the COM path.  Have a great day!
    -John Sullivan
    Analog Engineer

  • ICal mysteriously no longer syncs with my iPhone 3gs via iTunes sync

    My iCal mysteriously no longer syncs with my iPhone 3gs via iTunes sync. It worked great until about a month ago. I've made over 300 Calendar changes to my iPhone 3gs' Calendar, but not a single item has synced back to my iCal on my iMac, when I sync my iTunes (which I do almost daily). In addition, I've created some items on my iCal, as a test, and none of them sync onto my iPhone 3gs.
    What gives? Ideas? Suggestions?
    Thanks for your help!

    Well, I was able to manually sync my iPhone to my iCal one time, but haven't been able to get it to sync Calendar info since then. It was moderately successful, so I could export an iCal backup file. However, I ended up with about 200 MORE duplicate items on my iPhone, and what's weird is that many of these duplicates do NOT have any "edit" functionality! So I a, stuck with them being on the day they are at right now. Grrrrrr

  • Driver Setup for PXI 2569 and PXI 2529 in Switch executive

    Hi,
    What sould be tha "Driver Setup" for PXI 2569 and PXI 2529 in Switch executive under 'Driver Session"
    Regards!!!
    Vineet Shukla

    Hi Vineet,
    You do not need to insert anything under Driver Setup.  Anytime you are using NI switches, you can simply click Configure NI Switches when creating a NI Switch Executive Virtual Device to configure the topology settings of those switches.
    Just so you know, you can insert information under Driver Setup, and then you wouldn't have to use the Configure NI Switches wizard.  More detail on what to insert under Driver Setup can be found in the following KnowledgeBase:
    How Do I Create a Virtual Switch and Use it in my Application?
    http://digital.ni.com/public.nsf/websearch/A1F0D6A3357E14B386256E4B0071FDA2?OpenDocument 
    In short, you would type "Topology:" followed by the topology name such as "2569/100-SPST" or "2529/2-Wire 4x32 Matrix".
    Let me know if you have further questions or if this does not resolve your issue!
    Chad Erickson
    Switch Product Support Engineer
    NI - USA

Maybe you are looking for