Jump to content

ned

Members
  • Posts

    571
  • Joined

  • Last visited

  • Days Won

    14

Community Answers

  1. ned's post in Bad behavior with tree control was marked as the answer   
    If you turn on execution highlighting, you can see what happens here. You have an item selected in the tree control, based on typing in the combobox. Then, you click on a different item in the tree. That click enqueues two events: 1) a value change event for the combobox, and 2) a value change event for the tree. They execute in that order. The value change event for the combobox sets the selected tree item to the item that corresponds to the combobox value. Then, the tree control value change event is executed. The NewVal is the value of the tree when the event occurred (when you clicked on the tree), but the terminal value is the value set through the property node in the combobox value changed event.
  2. ned's post in get email address from network user name was marked as the answer   
    In case you want it, here's that VB code translated into LabVIEW (2012) so you don't need a separate DLL:

     
    EmailFromUserName.vi
  3. ned's post in read from spreadsheet file wrong! was marked as the answer   
    I'm guessing you have a different decimal separator than what the VI expects, for example you're using a '.' in your file but your operating system is set to use the European ','
  4. ned's post in Which style TABLE can support the direct input and selective input? was marked as the answer   
    If you want to do this using a table, here's some sample code that shows one way you can do it. As Hooovahh mentioned, it uses a table indicator, and controls that are moved on top of the table for each cell to make it appear that the table is editable. http://forums.ni.com/t5/LabVIEW/array-of-cluster/m-p/1822451#M625032
  5. ned's post in What method should I use for transfer the latest value without polling? was marked as the answer   
    Blocking and determinism don't really go together. What are you trying to achieve here? Do you want the deterministic loop to wait until it receives a new value (at which point it won't be deterministic anymore), or do you want that loop to run at the same rate consistently regardless of whether there is new data? If the latter, one approach might be a functional global variable, with the "Skip Subroutine if Busy" option set (and add a boolean output that confirms the data is good before you use it, in case it is skipped).
  6. ned's post in DLL call over LAN was marked as the answer   
    When you say "local path" - local to which machine? You can only run a VI on the machine on which that VI is located. When you open a connection to remote machine, you can then load a VI that's on the remote disk, not your local disk. When you run that VI, it runs on the remote computer. VI Server doesn't transfer VIs over the network; it only sets up the inputs, starts execution, and retrieves the outputs.
     
    Try including the VI in the compiled application. A static VI reference is a good way to do this. It will cause the VI to load in memory along with the application. You can then refer to that VI by name, rather than through a path. Wire a string (NOT a path) containing the VI name in place of the path to the VI.
     
    If you have a firewall on the server side, it will block connections to VI Server unless you specifically allow them.
     
    It might help to upload your application's INI file, along with your code.
  7. ned's post in Edit text file and save it as a new text file using LV was marked as the answer   
    You will need to provide a more detailed explanation of your problem in order for anyone to help you. It would also be good if you provide a sample text file that you are trying to read, and an example of the changes you want to make. Probably you will want to start with the Read from Spreadsheet File function, then modify the string array as desired, and finally write it back out (overwriting the old file) using Write to Spreadsheet File.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.