Visa resource control loses value set during config and saved to step properties in TestStand

I'm using a Visa resource control to set the instrument handle in my VI (edit sub-step) and it gets saved into a step property of a custom step I've built at edit time. At run time the control value is intermittantly changed to "temp 0" value and I don't understand why. I have LabVIEW 7.1, TestStand 3.0

Hi kphite,
Are you using the Refnum to Session.vi and Session to Refnum.vi?
You would use the Refnum to Session.vi to convert your Visa session value to a U32. Then you can pass this back to TestStand.
Going back to LabView you use the Session to Refnum.vi to convert a U32 back to the Visa session.
Regards
Ray Farmer
Regards
Ray Farmer

Similar Messages

  • Using VISA Resource control with Windows 7 64-bit

    Hi.
    My company recently upgraded our laptops, and I'm now working on Windows 7 64-bit rather than Windows XP 32-bit.  I reinstalled LabVIEW 2009 Base Package, trusting that the Windows 7 64-bit OS would be able to handle LabVIEW 2009 32-bit without problems.  But when trying to run our test system, the VISA Resource control doesn't work.
    We use it to get a list of the available COM (RS232) ports on the computer.  But now the list comes up blank.  The only option that comes up in the list, is the text "Refresh".  But nothing happens when I press it.  Is this a bug in LabVIEW?  I've installed the latest patch I found, so now I'm running LabVIEW v9.0f3 (32-bit).
    Thanks alot for any and all assistance!
    Solved!
    Go to Solution.

    Sorry for not replying to you earlier.  I've been busy on other projects.
    I'm not sure what you refer to with MAX, but I'm able to access the com ports using other tools/loggers.  So it's not an issue with Windows 7 itself.  But it seems logical that the problem would have something to do with running 32-bit drivers on a 64-bit OS.  Referring to this list from NI (http://digital.ni.com/public.nsf/allkb/71E9408E6DEAD76C8625760B006B6F98), I'm downloading the 64-bit installer now.
    But if I understand it correctly, you cannot run applications from a 64-bit Application Builder on a 32-bit OS.  So basically you need the Application Builder installed on both a 32-bit and 64-bit OS to have all bases covered.  But in the FAQ, it's asked if it's possible to have both 32-bit and 64-bit LabVIEW 2009 installed on the same 64-bit OS.  Why would this be wanted?  If you cannot use the 32-bit Application Builder, and you cannot trust that the 32-bit LabVIEW runs successfully (i.e. driver issues etc.), why would you want to have a 32-bit installation on a 64-bit OS?

  • Why does a motion control unit constantly fail during config

    Why does a drive fail during config.... I am trying to control a machine using faulhaber motors (5 of them) with faulhaber controls, one drive fails during config (fatally fails) and it is not wired any different to any of the others... even with only 24v supply, it dies... Blue screen and restart of pc... the others all worked perfectly, with no fault. The process we are using for the troublesome drive is exactly the same... We are stuck, can anyone please help?

    thank you, but faulhaber are all on holiday, and I am really struggling..... tis only one unit and only when it is positioned in one place... checked all electrical connections, no shorts, no loose wires, even fails when just power and serial connected.... so not even motor problem.....

  • Wrt1900ac stuck during config and reset to default

    Hi guys, just bough tthe wrt1900ac router. 
    i am pretty savvy with routers etc, i found this ANNOYING bug and wanted to see if i am the only one...
    While configuring the router to my needs (new hostname, ip, mac address filter etc etc) sometimes ESPECIALLY when trying to add a DHCP reservation the router simply (get stuck) and the only way to bring it back to life is power it off and on again...
    but each time i do so it resets itself to the default values (system restore) even tho i never pushed the reset button i only power cycled it...
    i started doing a config backup after each setting i do and each time it crashes i go back to the original 192.168.1.1 address and restore my config to bring it back to the address i chose (10.2.9.254). 
    anyone else had this issue? i am on the latest firmware, just got the router today....
    this is a VERY BAD bug.... 

    PC 3rd Party Security Software Configurations
    Turn off all anti virus and firewall programs on PC while testing. 3rd party firewalls are not generally needed when using routers as they are effective on blocking malicious inbound traffic.
    Turn off all devices accept for one wired LAN PC while testing.
    PC Web Browser Configurations
    What browser are you using?
    Try Opera or FF? If IE 8, 9, 10 or 11, set compatibility mode and test again.
    Disable any security browser Add-ons like No Script and Ad-Block or configure them to allow All Pages when connected to the router.
    Clear all browser caches.
    Be sure to log into the Admin account on the router.
    Try turning off these features in Chrome:
    Top right corner, little bars for options > Settings > Settings (on left) > Show advanced settings.
    Uncheck these:
    Use a web service to help resolve navigation errors
    Use a prediction service to help complete searches and URLs typed in the address bar
    Predict network actions to improve page load performance
    Enable phishing and malware protection
    I recommend trying this:
    To safely update FW, 
    1. Save router config to file first using IE or FF with all security add-ons disabled.
    2. Factory reset the router with all other devices disconnected or turned OFF accept for 1 wired PC.
    3. Update the FW using IE or FF.
    4. Factory reset the router and then set up from scratch first and test with out loading the saved config from file. Check to see if any problems are fixed before loading the saved config from file. You can configure the router with out being connected to the ISP modem initially.

  • Make diffrence between values set by user and others by binding

    Hello, I'm working with comboboxes. Selected Value is sometime set by user and somtimes set by bindings. I have to launch actions only when the selected value is set by user. Is there any possible way to do it? Thank a lot.

    If the value selected is dependent from the value chosen by user and depending on other data at once
    This sounds like you have one variable representing two distinct things; but maybe your requirements somehow necessitate this.
    Here's what I meant. I have a background thread (using a Timeline) which changes the combo box randomly every two seconds. (This is a mockup of your requirement of it depending on another value.) The output to the console happens only if the user changes the combo box manually.
    import java.util.Random;
    import javafx.animation.Animation;
    import javafx.animation.KeyFrame;
    import javafx.animation.Timeline;
    import javafx.application.Application;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.ComboBox;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    public class ComboBoxUpdateTest extends Application {
        @Override
        public void start(Stage primaryStage) {
            final String[] values = { "One", "Two", "Three", "Four" };
            final StringProperty value = new SimpleStringProperty();
            final ComboBox<String> combo = new ComboBox<>();
            combo.getItems().addAll(values);
            value.addListener(new ChangeListener<String>() {
                @Override
                public void changed(ObservableValue<? extends String> observable,
                        String oldValue, String newValue) {
                    combo.setValue(newValue);
            combo.valueProperty().addListener(new ChangeListener<String>() {
                @Override
                public void changed(ObservableValue<? extends String> observable,
                        String oldValue, String newValue) {
                    if (!newValue.equals(value.get())) {
                        System.out.printf("User changed combo box value from %s to %s%n", oldValue, newValue);
            // Randomly change value every 2 seconds:
            final Random rng = new Random();
            Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(2),
                    new EventHandler<ActionEvent>() {
                        @Override
                        public void handle(ActionEvent event) {
                            value.set(values[rng.nextInt(values.length)]);
            timeline.setCycleCount(Animation.INDEFINITE);
            timeline.play();
            StackPane root = new StackPane();
            root.getChildren().add(combo);
            primaryStage.setScene(new Scene(root, 300, 200));
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);

  • What parameters to be set during installation and DB creation

    i am going to create 10g/ 2003 server database and
    migrate from 8i / 2000 server ( 15 gb) running in archive log mode.
    what parameter i have to set and check
    ( SGA,PGA FLASH_ REC ,performance tuning parameters etc) during installation and database creation.
    santhanam.

    I know there are huge amount of docs out there but I collected these links in real upgrade tasks/experience...
    [Oracle® Database Upgrade Guide 10g Release 2 (10.2)|http://download.oracle.com/docs/cd/B19306_01/server.102/b14238/toc.htm]
    [Oracle Metalink: Complete checklist for manual upgrades to 10gR2  Note:316889.1|https://metalink.oracle.com/CSP/main/article?cmd=show&type=NOT&id=316889.1]
    [Oracle Metalink: Rule Based Optimizer is to be Desupported in Oracle10g  Doc ID: 189702.1|https://metalink.oracle.com/CSP/main/article?cmd=show&type=NOT&id=189702.1]
    [Oracle Metalink: Database Upgrade Companion|https://metalink.oracle.com/cgi-bin/cr/getfile.cgi?p_attid=466181.1:upgrade_guide1]
    [Oracle Metalink: Managing Rollback/Undo Segments in AUM (Automatic Undo Management) Doc ID: 135090.1|https://metalink.oracle.com/CSP/main/article?cmd=show&type=NOT&id=135090.1]
    [Oracle Metalink: Managing CBO Stats during an upgrade to 10g or 11g Doc ID: 465787.1|https://metalink.oracle.com/CSP/main/article?cmd=show&type=NOT&id=465787.1]
    [Oracle Metalink: Complete Upgrade Checklist for Manual Upgrades from 8.X / 9.0.1 to Oracle9iR2 (9.2.0) Doc ID: 159657.1|https://metalink.oracle.com/CSP/main/article?cmd=show&type=NOT&id=159657.1]
    [Oracle Metalink: Instructions to Upgrade Context on 8.0.6 to either 8.1.7 interMedia Text or 9.2 Oracle Text upon database Migration from 8.0.6 Doc ID: 209544.1|https://metalink.oracle.com/CSP/main/article?cmd=show&type=NOT&id=209544.1#Migration%20Plan%20for%208.1.7%20Using%20interMedia%20to%209.2]
    because I would consider upgrading...
    Edited by: Kecskemethy on Oct 2, 2009 2:19 AM

  • Creating 2 custome dependent value sets for party_number and customer_numbe

    Hi,
    I want to create 2 custom value sets XX_PARTY_NUMBER and XX_CUSTOMER_NUMBER
    When i select the value for Party_number from XX_PARTY_NUMBER,
    the corresponding customer_number should populate from XX_CUSTOMER_NUMBER
    This is what i tried
    1ST VALUE SET
    VALUE_SET_NAME -- XX_PARTY_NUMBER
    APPLICATION ---RECEIVABLES
    TABLE HZ_PARTIES
    VALUE-- PARTY_NUMBER
    MEANING PARTY_NAME
    ID-- PARTY_ID
    WHERE_CLAUSE -- ORDER BY PARTY_ID ASC
    2ND VALUE SET
    VALUE_SET_NAME
    XX_CUSTOMER_NUMBER
    APPLICATION -- RECEIVABLES
    TABLE --- RA_CUSTOMERS
    VALUE -- CUSTOMER_NAME
    MEANING -- CUSTOMER_NUMBER
    ID ---
    WHERE_CLAUSE-- PARTY_ID IN :$FLEX$.XX_PARTY_NUMBER
    I'm not getting it correctly.
    Can you help me?

    Hello Friends,
    I am new to Oracle Apps,i am finding difficult in writing the query to get the following details -
    Customer Name,
    Customer Number,
    Bill_to_address,
    Ship_to_address
    Kindly share if you have any query related to this.
    Thanks In Advance!
    Ramya Nomula

  • Different values beetween front page and saved data

    Hello,
    I have problems to saved data correctly. I acquire data with Labview 6.0 and a counter/timer card. These data appear on my front page. But when I save them in a table file, their format is modified, rounded.
    For exemple: on my front page values are 20.675 , 21.012 and in my saved file these values are 20.750 and 21.000, even if I checked all the numbers format in the diagram, and declare them in extended precision.
    Where is my mistake ?
    Thank you for your help

    Hello shadok,
    that's strange :-)
    Try this simple example. If this works, then something with your data is wrong...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Test_Save.vi ‏12 KB

  • Value set during onload() method not reflected on page

    Hi,
    I am using JDeveloper 11.1 release on a project that was migrated from 10g. The original project used ADF and JSF to build the application. Now since I have to continue the original framework, I cannot use taskflow for this project. Like a previous module I used onLoad() method to preset some of the form values which are bound to the backing bean bean1. However the page only picks the default values of the instance variables.Here is the code.The scope is request.
    [code]
    public class Bean1 extends OnPageLoadBackingBeanBase{
    private int value1;
    private String value2;
    // getter setter for these two.
    public void onPageLoad() {
         // based on some condition
         setValue1(3);
         setValue2("String");
    JSF page uses trinidad tags
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    <trh:cellFormat ><tr:outputText value="#{backing_Bean1.value1}"/></trh:cellFormat>
    <trh:cellFormat ><tr:outputText value="#{backing_Bean1.value2}"/></trh:cellFormat>
    [/code]
    Both the values in the form show their default states.
    I don't want to make the page sessionScope since I have seen issues with performance in the past. Please help.
    Thanks,

    Hi Frank,
    Thanks for replying. Yes. I have followed step 1 and 2.
    Step1 : public class Bean1 extends OnPageLoadBackingBeanBase{
    // where OnPageLoadBackingBeanBase implements PagePhaseListener
    Step 2:
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.64.93" id="Bean1PageDef"
                    Package="services"
                    ControllerClass="view.backing.services.Bean1">
    I can see that it runs through onPageLoad method, because Sops get printed here.
    public void onPageLoad() {
         // based on some condition
         setValue1(3);
         setValue2("String");
    What I have seen in my old code is we used to put something like this in the onPageLoad method.
                    FacesContext context = FacesContext.getCurrentInstance();
                    ValueBinding vb = context .getApplication().createValueBinding("#{backing_Bean1}");
                    ((Bean1) vb.getValue(context )).setValue1(25);
    Is this correct?
    Can you explain this :
    "       Also, since this class has been written for 10.1.3, there is a new property on the f:view tag: afterMethod, beforeMethod which      could also be used for a page to listen for the before render phase. Just create a managed bean reference for the before method     and look for RenderResponse to execute your code     "
    Do you have a sample I can follow?
    Thanks

  • Master control attribute value discrepency between Master and child org.

    Hi Guru,
    We are facing a strange issue in Track install Base Attribute values. There are some 60K item having discrepency in the value of the this attribute between master and child.
    We are wondering how it happens as this attribute is master controlled one and we never changed this attribute control and kept as Master controlled. The master value is true
    If you guys experience this issue, please let us know the solution that you had applied to fix this issue.
    regards
    venkat

    Try executing the vo1 query before setting the bind variable for vo2, then execute the vo2 query (if that's what you want to do).

  • Control Waveform Graph - Set Lower Limit and Autoscale Upper Limit

    In a waveform graph is their a way to set the lower graph Y limit at zero and then have it autoscale the maximum Y limit as a percentage (150% for example) of the maximum Y graph value ?
    Direction to examples or a starting point to read up on would be great !
    Thanks,
    Joe
    Ireland
    Solved!
    Go to Solution.

    Turn off autoscale and set the max with a property node based on the array max of the data.
    LabVIEW Champion . Do more with less code and in less time .

  • Control/Default values in Service Notifications and Service Orders

    Hi all,
    When in transaction IW52 and IW32 I know you can maintain a set of default values for when you are either creating a Service Notificaiton and/or a Service Order.
    My scenario is as follows:-
    User 1 has a set of default values and it contains Work Centre A.  User 1 then creates a Service Notification.
    User 2 has a set of default values and it contains Work Centre B.  User 2 then reviews the Service Notification created by User 1 and wishes to create a Service Order.
    When User 2 creates the Service Order, the default value for the Work Centre is using User 1's Work Centre (Work centre A) and not their own Work Centre of Work Centre B?
    What is stopping User 2 picking up their own Work Centre of Work Centre B when they want to create a Service Order from a Service Notification?

    Gary,
    The order takes its data from the notification (which got it from USER1's defaults).
    What you need to do is change the notification work centre to that of USER2's preferred default value.
    There is no standard setting for this. However, all is not lost. It may be possible by misuing one of the order user-exits
    PeteA

  • Visa read object difference parity setting for PC and TPC2012 device

    Hello,
     we found some difference between application running in PC and runing in TPC2012 device.
    We tested modbus communication via RS485 (9600b/s, 8bits, parity even) between PLC(master) and TPC2012 (slave). We used Visa read object and set parity to Even via property node. From the PLC we sent request to device and in our application we only read the data from PLC and displayed it (8bytes) on sreen.
    If we tested the application on PC everything worked fine. But if we compiled application and ran it in TPC2012 device  the data was different (for example if I sent request from PLC to slave 05 03 00 01 00 01 crc crc on the TCP I saw 00 03 00 01 00 01 crc crc. The  crc on TPC wasn't equal to crc on PLC.
    We found that problem was in VISA read setiing for read data in TPC device. If we set parity to SPACE (instead of EVEN)  then we read data correctly.
    Modbus - Parity set for VISA read object:
    Master PLC (even) - PC (even) -> visa read - data are equal
    Master PLC (even) - TPC (even) -> visa read - data aren't equal
    Master PLC (even) - TPC (space)-> visa read - data are equal 
    PC: Win XP SP2, LabView 8.5 with LabView TP module 8.5.
    TPC2012: WinCE 5.0, NI visa 4.2, NI TPC Service 1.0.
    Best regards,
    Pavel Rucka.

    I just found out that the VI for the currentmeasurement with the keithley 6517a has the same error but still works fine. Now I also tried to adjust the serial data bit and parity settings via the VISA configure serial port function but still no improvements.

  • My system was re-set during repairs and I have lost my Firefox bookmarks. Are these stored anywhere on the system? I did a full backup of documents and programme files before repair, but can't find any bookmark file.

    I did not do backups of the bookmarks regularly, since I thought these would be saved somewhere. However, I can't find any bookmark files on my backed-up system.

    Thanks - now I can see an applications folder, and have found a .default file, hope this is the one. Should I now follow these instructiosn to restore my profile, or just go to organise bookmarks and import the default file?
    Copying files between profile folders
    Note: Firefox must be closed down while copying files between profile folders.
    1. Open your profile folder:
    * (Firefox 3.0 and 3.5): See How to find your profile
    1. (Firefox 3.6): At the top of the Firefox windowOn the menu bar, click on the Help menu and select Troubleshooting Information.... The Troubleshooting Information tab will open.
    2. Under Application Basics, click on Open Containing FolderShow in Finder.
    2. From the menu at the top of the Firefox windowbar, select FileFirefox and then select the ExitQuit FirefoxQuit menu item.
    3. Right-clickHold down the Ctrl key while you click on a file you want to copy and choose Copy.
    4. Open the new Firefox profile folder.
    5. Right-clickHold down the Ctrl key while you click inside the profile folder and choose Paste Item.
    Repeat steps 2-5 for each file you wish to transfer over to your new profile folder.
    While copying your personal data from an old Firefox profile to a new Firefox profile, it is possible that you could copy over the file that is causing the problem you are trying to get rid of! The more files you copy over, the greater the chance of this happening. It is therefore recommended that:

  • User exit during creation and saving of Produciton order

    Hi folks,
    I need to append a row in the material component of transaction code COR1. This needs to be triggerd when an order is created and saved in COR1. Please help me out...........
    thanks in advance

    Hi Team
    Below mentioned requirement , in which user exit i have to put below logic while creaion and change of sales order?
    u2022 The logic for the user exit to explode should consider the following assumptions and validations
    o Customer master to have the entry at KNVV-KVGR1
    o Material master to have the entry at MVKE
    o UoM in the Sales order item (VBAP- VRKME) should be = Pallets PAL or tonnes (TES)
    o Should have more than one line item or number of line items with UoM PAL or tonnes TES should be > 1
    for example :-->
    Product A with Scales mentioned below
    Product A Quantity / Scale UoM Price(£)
    0-10 PAL/TES 20
    11- 20 PAL/TES 10
    21- 30 PAL/TES 5
    31-40 PAL/TES 2.5
    >41 PAL/TES
    Product B with Scales mentioned below
    Product B Quantity / Scale UoM Price(£)
    0-15 PAL/TES 25
    16-20 PAL/TES 20
    21- 30 PAL/TES 15
    31-40 PAL/TES 10
    41 PAL/TES 5
    u2022 Product A (qty 10PAL) + Product B (qty 15 pal) ordered in a single order with 2 line items.
    u2022 The expected results should be
    o Product A qty 10 + B qty 15 added = 25Pal
    o The system user exit should add the total number of pallets on the order line items and point towards the respective scales, so in this example prices against each line item should be the respective price against 25 Pal = 5£ for product A per pal and £15 for product B.
    Thanks in Advance.
    Puneet.

Maybe you are looking for

  • How to read a file in another location using Java ?

    Hi all, i suppose the below code reads my file 'ridata.dat' when it is in the same folder as my java class file. How can i read it from a different location? ---------------------------------------------------------------FileRead.java----------------

  • No role for business system defined in SXMS_CONF_ITEMS

    Hi Experts. I have the following problem. We were set up the XI in our company and now we are trying to configure and run it propertly. We had some problems so far and now there is the next one: I configured the simple scenario FILE-XI-FILE but it do

  • Currently updating Apple TV, but stuck in Step 1 of 2.

    I was updating Apple TV, but it has stop on step 1 of 2.  However, it says not to unplug Apple TV while updating.  Can I restart it somehow? 

  • Flash builder burrito as eclipse plug-in

    is there such a release planned during the beta period?

  • Eclipse and WebLogic Ant Tasks

    In WL_HOME/server/lib/ant/ is an ant.jar. It has a "defaults.properties" containing all of the ant taskdefs. I tried to extract that so that my build.xml could use them but it keeps complaining about weblogic.ant.taskdefs.perforce.P4Changes cannot be