Cant assign com port to resource name

I'm setting  up a vi that will be used on a target pc, where the com port available on the target  (com5) is different from the ones available on my development pc. I'm trying to create a constant or control at the input of my hardware vi that identifies the com port, but it won't let me assign com5, apparently because my development pc doesn't have com5 available. If I give it a selectable control that I can select at run time on the target, it defaults to a com port not available to the target and when launched it hangs up. How can I hardwire (make default) the resource name to a com that is unavailable on my dev. pc?

 Mark, please see attached screenshot of my vi. I tried what you suggested. The drop down constant that is wired to the CILXS vi is what pops up when I create control, so that is the text format I duplicated with the unwired string constant shown above it. Of course, when I tried to use it I deleted the drop down constant and wired in the string constant, and it didn't work. The error message says insufficient location information. Any other ideas?
Attachments:
com.JPG ‏79 KB

Similar Messages

  • Programmatically assign com port

    Hi
    I have an applicaton that uses USB-Serial adapters (Keyspan).  This system is in an open lab situation with multiple users and multiple laptops runing the LabVIEW program.  Each computer's registry assigns different comports to the Keysapn USB-Serial converter.  I've been able to query the registry and determine what com port Windows has assigned to Keyspan.
    How do I take this info and programmatically assign a com port or Visa resource name that LabVIEW is to open?  Is there some simple Visa property node for "Resource Name" that I am not finding or is this more difficult than my awareness?
    All of the laptop computers will be using Windows XP and LabVIEW 8.6 runtime engine.
    Thanks
    Glen

    You can take the com port name as a string and wire it into the VISA functions.  It will generate a coercion dot, but it will work.
    Message Edited by Ravens Fan on 03-16-2009 10:30 AM
    Attachments:
    Example_VI_BD.png ‏1 KB

  • Cisco 3640 cant configure voice-ports

    I've an cisco 3640 with a VWIC-2MFT-E1 network module. Can anybody tell me why i cant configure any voice-port? without able to configure voice-port, i cant assign any port for my "dial-peer voice xx pots". Anybody has any solution?
    what im trying to do is sending voice data traffic to 192.168.10.1
    controller E1 1/0
    framing NO-CRC4
    clock source line primary
    channel-group 0 timeslots 1-31
    interface Serial1/0:0
    bandwidth 2048
    ip address 192.168.10.2 255.255.255.252
    ip mtu 300
    encapsulation ppp
    no ip route-cache
    no fair-queue
    no cdp enable
    dial-peer voice 777 pots
    destination-pattern 77T
    no digit-strip
    direct-inward-dial
    forward-digits all

    I've only got this from my controller E1
    Vertigo(config-controller)#?
    Controller configuration commands:
      channel-group     Specify the timeslots to channel-group mapping for an
                        interface
      clock             Specify the clock source for a DS1 link
      default           Set a command to its defaults
      description       Controller specific description
      detect            Enable detection of loopback request
      exit              Exit from controller configuration mode
      framing           Specify the type of Framing on a E1 link
      guard-timer       Guard timer (0-20) for xcsp calls - timer duration and
                        accept/reject on expiry
      help              Description of the interactive help system
      line-termination  Specify the line termination for E1
      linecode          Specify the line encoding method for a E1 link
      loopback          Put the entire E1 line into loopback
      mode              Configure the controller mode
      no                Negate a command or set its defaults
      shutdown          Shut down a E1 link (send Blue Alarm)
      tdm-group         Configure DS0 group for TDM
    Do i need DSP for the voice-ports? Please guide me on what more module i need to get. Thanks!!
    https://supportforums.cisco.com/message/3022639;jsessionid=AF45FBC0DDB8636D70F9B526A367016F.node0

  • VISA resource name control: want to refresh list of COM ports programatically

    When the app is running, and you first click this control, it takes 2-5 seconds to respond and populate the list for the first time.
    Therefore, I want to auto populate the first time the application is loaded. Can I do this?
    Solved!
    Go to Solution.

    Hi,
    I'm joining in here since the thread addresses delay problems when using VISA resources.
    I would like to share my experience when using VISA on real-time targets.
    The hardware I use is a cRIO NI-9074 with two NI-9870 (4 x RS232 each) and one NI-9871 (4 x RS485). These modules are used in scan mode to avoid excessive port programming in FPGA.
    My first problem was that the twelve COM ports of the NI-9870/9871 modules did not show up in the list of available VISA resources when placing a VISA resource control on the front panel or a VISA resource constant on the block diagram. However, the workaround using "VISA Find Resources" seemed to work fine. When starting the real-time program from the development machine, the list was populated and by indexing the list I was able to use the port.
    BUT: When building an RT executable from this VI, deploying it to the RT target and setting it as startup, nothing happened. It took me some time to find out, that there has to be a significant delay (in my case about 10 s) before calling the VISA Find Resources function. Otherwise it will not give the correct output. By some reasons, the ports do not seem to be available when the RT startup application begins to run. I tried to play with the delay and found out that the resource list would be empty when calling the VISA Find Resources function almost immediately on startup, after a few seconds it would return the ports of the first NI-9870, after seven seconds the ports of two modules, and after about ten seconds all ports would be available.
    I would appreciate if somebody could tell me what happens since it was quite a pain in the ass to solve this issue.
    Best regards,
    Karsten

  • No coms ports in VISA resource name on VISA resource name VI but I can see COM4 it in my devise manager.

    I am trying to use a USB to RS232 device. I can see COM4 it in my devise manager but nothing in VISA resource name on VISA resource name, even when I hit refresh.
    Thanks
    Dan

    If you can see the device in Windows Device Manger, that is a good sign.  The next step is to recognize the device in Measurement & Automation Explorer, then ultimately LabVIEW.  The following two knowledge base articles should point you in the right direction:
    How Can I Communicate With a Device Using NI-VISA USB RAW Mode
    USBTMC and How Can I Communicate with My USB Instrument
    Regards,
    Alexander M,
    Applications Engineer
    National Instruments.

  • VISA get resource name doesn't return USB serial ports

    We built an application on a computer that had an onboard serial port - COM1.  We put the option to change the COM port in the application.  We installed the built application on a computer with no serial ports, but installed a USB to serial converter that registers as COM3.  LabView does not see this port, even with a test application to return only the VISA resource names. 
    We have verified that the port is good with another program (a Modbus simulator) and installed the latest VISA runtime v4.41 separately to no avail.
    Any suggestions at further troubleshooting would be extremely helpful.
    Joe T.
    Solved!
    Go to Solution.

    My main application still isn't working, but now the small test ones are.
    Here's what I did:
    1.  Update my LabView 8.5 with the latest VISA runtime - 4.4.  This updated the Installer as well.
    2.  Added the MAX Installer to the build.
    3.  Added  the NI-VISA Configuration Support to the build
    4.  Uninstalled the application and reinstalled it with the new install volume.
    When I run MAX, COM3 shows up.  It also shows up in the Get Resources test application.  The simple test Modbus write program works, too.  I have a sneaky feeling that COM1 may be hard-coded somewhere in the main application; our next task is to find where the communications breaks down in our code.  The bottom line seems to be a lack of experience with the Application Builder on our part.
    Thanks to all who contributed!
    Joe T.

  • Assign permissions to com port

    I am trying to get help or information on assigning permissions for com ports. I am getting communication read errors on software that we use to read meters. The com port is correct in device manager and for the particular software. Communication is good,
    as long as we are logged in as administrator. We have assigned admin rights to the software for the users, but it appears that the com port needs admin priviledges assigned. The software vendor recommended giving admin rights to the user over the entire machine.
    I would only do that as a last resort. Does anyone know how to assign permissions on com ports?

    Hi,
    If you don’t want to grant the administrator privileges for your users, I suggest you distribute the software via Group Policy.
    You may refer to: Permissions and rights have been removed from the Power Users group in Windows Vista
    http://support.microsoft.com/kb/2028493
    Also, if these COM ports are usb based, check the usb devices too.
    As I known, it is not possible to access Advanced screen or Advanced settings without the administrator rights. This issue is more related to hardwre device drivers, you'd better follow the device manufacturer's instructions. I think, you may give admin
    rights to the user over the entire machine as software vendor recommended.
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • Lab View is not detecting two com ports of system

    Hi,
       In my PC, three com ports are there COM1, COM4 and COM6. But when we create new visa resource name, lab view is detecting only COM1 port. I want to know is there any way to correct this.
    Regards
    Shivakumar Singh

    Hi,
    First of all check if the ports are visible in the NI MAX. If not, you can try to Create New Port by going into Measuremenmt & Automation Explorer. Assign the Port values accordingly. This can be done by right clicking on the Ports (Serial & Parallel) section of the Devices and Interfaces tree.
    Regards,
    Deepu.

  • Can two users share a COM port?

    I have a system services Labview executable that opens a VISA session on a COM port.
    But I also have a User Interface VI that needs to communicate with the device on same COM port.
    Is this possible?  Can I use a Shared Variable to keep the VISA Resource name and have multiple users (one at a time) communicate with the device?

    LabVIEW semaphores and all other LabVIEW objects like queues, notifiers, events, etc are not only process local objects only but even application context local only. While this makes no difference for built applications it is important inside the development environment as each LabVIEW project lives in its own application context (and tools started from the Tools menu run in yet another context). To do what you want to do, you need to implement some form of interapplication communication as Mark already mentioned. Or you can access named OS semaphores by calling OS APIs.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I write to multiple daisy-chained network serial addresses through a single COM port?

    I have a VI to write to 3 PI Mercury motor controllers using daisy chained RS232 connected via a Prolific USB-to-Serial adapter. I know that it is possible to talk to the individual controllers because the PI terminal that I have recognises the addresses of multiple controllers and designates them Device 1,2,3. The VISA resource name when configuring the port just comes up as COM5 most of time, with seemingly no way to specify an address on that COM port. Occasionally the VISA resource is ASRL5::INSTR and as this is disconnected and re-connected, this address moves up a number (e.g ASRL7::INSTR). Can anybody tell me how I can configure my serial communication to allow me to individually communicate with the different devices through a single COM port?

    What does the manual say about addressing? RS-232 is not multidrop, the resource name is correct, and there is no additional configuration needed. There would have be a specific write in order to address a certain controller.

  • HyperTerminal sees a COM port but VISA does not

    It should not be possible that HyperTerminal sees a COM port but VISA does not. Does anyone know why or have any ideas?
    Here's some more info: I wrote a LabView (LV) program and deployed it (via the Application Builder) to some of our production department's PCs (some Windows XP and some Windows 7). We use it to set up products we design and manufacture through our device's USB serial port. The USB port is actually a virtual COM port (VCP) - a USB to Serial converter or "bridge". We have a custom driver for our device and since each device's USB bridge chip is programmed with a different serial number, every time we connect a new device to the PC the installer runs and assigns a new COM port number. This is so our customers can use multiple devices on a PC. Fine. On one of our production PC's we were close to  COM900 ports (HyperTerminal sees only up to COM256) when suddenly Win7 would not allow any more. We were able to uninstall orphaned (non-present) COM ports from DeviceManager ("DM") by starting it from a command console (DOS window) with a special command-line switch, "set devmgr_show_nonpresent_devices=1" then "start devmgmt.msc" (I have this in a batch file). In DM View menu you can "Show hidden devices" and uninstall them as if they were connected. I've also tried uninstalling them the normal way when the device was actually connected. Either way, sometimes, not always, depending on the COM port number, after reusing that port number by installing a new device which picks up that old, freed-up number, LV VISA doesn't see it. In other words, when "Refresh" is clicked in the COM port VISA list box, any new devices installed should be and normally are seen. (Refresh is not needed if the application is started after the device's driver is installed. It is only need if the LV application is open with the new device is added.) However, HyperTerminal does see it and lists it in the Properties screen, the "Connect using..." list box. And the port works with HyperTerminal. (Of course we've tried rebooting after uninstalling and/or reinstalling the device, with the same results.)
    When I've spoken to the NI Applications Engineers in the past about serial port issues (not about this problem) they have confirmed that if HyperTerminal can see the port then NI VISA should also see it. This is crazy. I am posting this in hope that someone can shed some light on this problem.
    Thank you. -Ed

    Good catch. Yes, we're using the Silicon Labs CP2102 and have created a "custom driver" installation package. Our new PCBs have a factory-programmed chip, so the PC reuses that COM port (COM3 on that PC). The problem is when we we re-program the CP2102 (setIDs exe) with our PID, and device strings (including the S/N), the PC runs our installer and assigns the next COM port number. I was hoping that maybe it would go up to 64K or something! Anyway, it surpassed COM256 but we ran into this problem when almost up to COM900.)
    There is a registry entry for each SN device, which shows the assigned port. If we delete the key with regedit, the COM port database (don't know the file name) still has the port number. That's where Device Manager comes in. It seems to allow us to manually delete the ports, but it would take quite a while to delete 900. (I was trying to make a batch file for DevCon, but couldn't get it to see the HW ID of the devices in need of deletion.) So we tried manually deleting a few. After doing that Device Manager shows that Windows (and HyperTerminal) can reuse the port number when a new device (new SN) is installed, but, as you know from this post, VISA cannot see unless I manually add it in MAX.
    I can't see how it has anything to do with the Silicon Labs driver. I might have to delete ALL of MY devices, then uninstall the driver files, reboot, then reinstall, as you suggested with the SiLabs driver. However, I don't see how VISA will now see these changes. VISA must have it's own database. That's what I thought deleting the ports in MAX would clear out, like a fresh install, but apparently not.
    I've been through Silicon Labs' tech support on other issues and they've been able to help on some. I could run this by them.
    BTW, have you noticed that Silicon Labs' chip and driver, while faster than NI's own "bridge" or serial-USB converter (I returned it because at $100 it's performance was worse than a $20 converter you can buy in Staples), is substantially slower than a real serial port? For example, our device can transmit 250 readings per second (a 12 byte string). A real serial port used with my LabView program can keep up, i.e.., graph & tabulate at that rate, but with a VCP we only get about 70 RPS. Same code. Can't figure this one out. They say the've tested the driver to 900 KB claimed. We're using 115KB here. Anyway, the VCP driver makes it look like a COM port which LV thinks it is. Why is it slower than a real port when the USB should be able to work almost 10 times faster than I'm using it (up to 1024 bytes per mSec per the full-speed USB spec, which SiLabs claims they verified)?
    Anyway, I appreciate your help. Thanks! -Ed

  • Problem removing bluetooth stack / hidden devices / COM ports not released

    Hi
    Having problem completely removing Toshiba Bluetooth stack / hidden devices / com ports not released
    I uninstalled Toshiba BT s/w...
    But:
    1) Toshiba BT hidden devices still appear and I can not remove (get error)
    2) COM ports occupied by Toshiba BT not released (so they cannot be used by another BT stack) and still appear in registry
    ex: friendly name Toshiba BT Port (COM4) still in registry
    3) These unreleased com ports do NOT appear in device manager
    Thanks

    It seems that you still have some configurations which were not removed during the uninstallation.
    This means that the resources can not be release, because those are still necessary in case of a
    new installation of the stack.
    The first I would try is the following:
    - Install the latest Toshiba Bluetooth stack.
    - Uninstall it. Ensure that you answer all questions with "yes" ! This means also the one which asks if all configurations should be removed.
    - Reboot
    - Check again

  • COM port are not shown in my applicatio​n

    Hello,
    there is a reason why com ports are not shown on a Xp Embedded Touch Panel? 
    I have to communicate through a serial port in my application but com ports are not shown in Visa Resource Name control ...
    I have included all VISA related things in additional installer ...
    Solved!
    Go to Solution.

    Ok, i checked functionality of COM ports with a non-National Instruments programs and all it's working. Only Labview apps cannot see them.
    On another PC where the Labview app works if i look at installed Programs in NATIONAL INSTRUMENTS section i can see:
    NI VISA RUN TIME 5.1.0
    NI VISA 4.5 for Labview on Windows Mobile/CE
    On the machine where there the problem under National Instruments SW i can see only:
    NI system components
    but i've added in additional installer section of the app installer all VISA related stuff...

  • Serial COM Port to TCPIP

    I saw a lot of posts that deal with this, however: I have a test rack with 24 UUTs, each has a usb to Ethernet adapter.  I want to use each adapter to talk to the UUT with the same IP (can't changed it it's static).  I need to be able to go through a com port and communicate to a specific UUT, knowing that I am communicating through this specific com port, not any other of the 24.
    I saw a few virtual drivers, that seem to do this, but has anyone done anything of this nature before?  I know I can create a NI Visa resource in NI MAX but that doesn't help me, because I can't link a com port to that resource, can I?

    rsmrostov wrote:
    ‎You wrote that you have a USB-to-Ethernet adapter. Did you mean the TRIPP-LITE extender?
    yes
    That is simply a USB extender, no conversion to Ethernet. - obviously
    Then why did you describe it as a USB-to-ethernet adapter?
    rsmrostov wrote: 
    Does your device speak TCP-IP or serial? -TCP-IP
    Where is the USB-to-serial adapter, and what model is it? non, there's a driver that comes with the device, that must let you talk to TCP/IP 
    Is it integrated into the DUT? - most likely, not sure to be honest, as I am helping out one of the guys who plain just doesn't know.
    What can you tell us about the DUT? - Linux based device, has a fixed IP
    You showed us a screenshot of MAX, listing several COM ports. So, those COM ports somehow exist on your system. You also said that only one of them is connected to the DUT. If this is true, then the COM port must be created outside of the device (for example, a USB-to-serial adapter). However, if the device doesn't use serial communications, then it doesn't make any sense to have a USB-to-serial adapter at all, because there's no easy way to run TCP over serial.
    It sounds like you need to do some research on exactly how your DUT works, what types of connections it offers, and what protocol it uses. If you absolutely need to connect to multiple devices, each of which have the same IP address, I would recommend that you get a bunch of cheap home NAT (network address translation) devices, often seen as a home/office router (allows you to connect multiple computers to a single internet connection). Assign each one a unique IP address within the same subnet, plug them all into an ethernet hub or switch, and plug one DUT into each router. Configure the router's internet address to match the subnet of the DUT, and set each router to route all incoming connections to the IP of the DUT.

  • Ms Project 2013 report for resource name, tasks less than 100% complete within a date range I can set each time

    I have seen I can create a report for a resource name with a specified date range, and one that can show me for a resource name any incomplete tasks, but I want to do the following and cant work out how to state it in the report constructor:
    resource name equals - {I want to set a given resource in here}
    % complete is less than 100%
    start - date range is between [today -7 days] and [today +7 days]
    Please can someone show me how this is possible, I know it will be and it is me that has been defeated!!

    workspacedesign,
    Oops, my bad. I missed the point that the Name field for assignment rows will be the task name and that's not what you want. There is also a glitch in the date range filter. So, here's how to fix that.
    First, in the Resource Usage view, copy the Name field to Text1. Now select the resource line and do a fill down for all assignments under that resource. Do that for each resource. This could be automated with VBA, but for now, a manual setup should work
    fine.
    Second, instead of testing for the Name field in the filter, test for the Text1 field.
    Third, change the Finish test to be "less than or equal to".
    Now when you apply that filter, enter beginning date of your range and then the ending date of your range followed by the resource name. You should get the data you want.
    Unfortunately formulas in custom fields are not as flexible in Project as they are in Excel. For example, in Project a formula can only operate on data for that row. Further, even if you use the formula Today() +7 for your filter criteria, the first time
    the filter is used, Project will hard code today's date into the filter. The normal way around both of these shortcomings is to use VBA.
    Hope this helps.
    John

Maybe you are looking for