ActiveX communicat​ion loss

I am running an 8.5vi, which controls a stepper motor using activX commands via a Phidget's card. Whenever any changes, however trivial, are made to the vi communication is lost, presumably due to something that happens when the vi is recompiled. The new and old vi's both work on other machines. This is presumably a problem with the computer and not labview so possibly not appropriate for the forum but I was wondering if anybody out there had experienced anything similar or had any ideas.
Stephen
Solved!
Go to Solution.

Hey Stephen,
I'm sorry to hear you're still having this problem.  Have you tried reinstalling the driver of the card? It could be that the DLL is corrupt.  
There is also a slim chance that LabVIEW did not install properly.  It might be an idea to reinstall it.  
Let me know how you get on with this problem.  
Regards,
Dominic Walker
Cardiff University
Electrical and Electronic Engineering Student

Similar Messages

  • LabVIEW - Activex Internet Explorer Communicat​ion - Question

    Hi
    I have a code which can generate a URL(https:\\.....) to talk to a
    server. The server in turn sends my code a response. I've used ActiveX
    to enable the communication over a secure network.When I make a change
    in the URL I send to the server, I expect a different response. However
    there is a delay in reading that response. If I use the same URL in the
    web browser I get the correct message. Looks like ActiveX is caching
    the data. Has anyone faced this problem before and what might be a
    potential solution ? Thanks for your help.
    Thanks
    Kudos always welcome for helpful posts

    Attached is a snapshot of my program. I think activex might be
    cacheing. but i am not sure which component. probably the one which
    tries to navigate the IE - that's my best guess. Let me know if you
    have suggestions.
    Thanks
    Kudos always welcome for helpful posts
    Attachments:
    program.jpg ‏891 KB

  • D110a loss of communicat​ion on 1 computer in a network

    I have a home network with 2 destops and a laptop. There is one desktop that doesn't work all the time with the printer. I've unistalled and reinstalled  the software several times but nothing seems to work. Yesterday I did that process again.  I got a install fail at the very end of the process. I cycled power and the printer worked for awhile. I can go to the address printed in the network info and it says the printer is conected and is fine. I can print a test page from the web page.I'm assuming the problem is with my desktop. By the way it's runnig Win 7 32 bit. The other desktop is also runnig Win 7 32 bit.The laptop is Win XP SP3.
    I'm lost as what to do next. All my computers are regularly updated by Windows Update.

    Hello
    Thank you Aaron for your quick anwser.
    I have forgotten to say that the CFP module is the only device who is connected on our network.
    In fact we have only one PC connected to a CFP.
    So if we disconnect it ,we have nothing and of course our ping request get no response.
    If the connection is on of course the ping request get a response.
    I can just tell that this PC was used to communicate wither former FP modules and maybe there is
    something wrong or out to date with its iak configuration.
    We will carry out some others tests in order to find an explanation to our problems.
    Of course i will be very pleased to get some others advices form experts.
    Thank you for your help
    Regards
    Jean-François

  • I have problem with communicat​ion bethween 2 computers

    hello
    i have problem with communication bethween 2 computers
    On the firs computer i have installed OPC server from unitronics . In this case i communicate with my lookout process.
    On the second computer i have installed only lookout. 
    This 2 computers are connected with a VPN whireless .
    The second computer command the device from the first . 
    My problem is : After 10-14 hours comunications bethween computers is blocked . If i restart the first computer comunication begin to work.
    How to solve this problem , i don't want to restart every 10 hours the first computer
    Thanks in advice  

    1) Are you able to verifiy that the VPN connection is still active at the time of the loss of data? There may be a timeout in the VPN system.
    2) Is there any time out n the OPC server?
    3) Is there sufficiient memory on the first computer?
    Robert Hill
    Technology and Security Advisor

  • Labview data communicat​ion c borland builder ram memory

    I have data generated by labview and I want it send to borland c++ builder as variable. but I dont want use the hardrive. how can I communicate with C++. the communication must be fast.
    greeting paul

    There are two ways to do this:
    1.Pass the data value or pointer of the data that generated by LabVIEW vi to your c code using "call library function"
    2. Have your C code to call LabVIEW using LabVIEW activeX server and get the data from the vi.
    You can find examples in NI website, search for key words like "call external routine in LabViEW" or "call LabVIEW in C"
    Irene
    [email protected]
    www.hytekautomation.com

  • Interproce​ss Communicat​ion C++ - LabView

    Hi,
    I have a C++ *.exe file wich is grabbing images with a Matrox framegrabber. This program ist startet via "system exec" from LabView. I want to do a kind of time measurement with this program so i need the exact time when the grabbing of frame starts. At the moment I dont know how long the *.exe file needs to initialize the framegrabber (something about 500-1000ms).
    My idea is to start a continous grabbing but start saving the images when another command via LabView will be send to the C++ application. But I don't know how to send this command! It should be a kind of a "wait until key pressed" controlled by LabView. Maybe a global bolean or something like that.
    I hope somebody can help me!
    (programming with LabView 7.0 and Visual C++ 2003.NET)

    Hi,
    What
    you are looking for is called an “inter-application communication”.
    There
    are several options to realize it. LabVIEW supports TCP/IP, ActiveX or UDP to
    communicate with another application.  So
    it’s not as simple as using a “global Boolean”
    as you mentioned.
    I advise you, to use the LabVIEW
    examples which shipped with the NI example finder to get some programs as
    reference. Search for keywords like TCP/IP, ActiveX and UDP.
    Attached
    you’ll find a link to a knowledgebase.
    Hope this helps.
    How Do I Use LabVIEW to Communicate with Other
    Applications?
    http://digital.ni.com/public.nsf/allkb/B3959ED76D5​5A9E586256965004D8092?OpenDocument
    Regards,
    Ulrich
    AE NICER

  • It's better or necessary open and close communicat​ion with instrument every loop?

    I must communicate with my instrument, but I must change its value, for example temperature, every loop. See the Figure to understand:
    I think that it is better if I open communication with my instrument out of while loop so I many operation: if I put Open VISA in While loop I open VISA session every loop, instead I think it is not intelligent. Can I open VISA SESSION out of the while loop or it is an error for EXCELLENT LABVIEW VI and I must open and close VISA SESSION every times I must talk (and set) with instrument? What is the better way?
    Message Edited by Michelle1892773 on 02-22-2010 02:00 PM

    Something like this?
    I do have to say, i don't know what is happening in the false case of yours, but if nothing happens with the 100 that is wired to the shift register, once you enter the true case, the value in the shift register will always be great than "i". You might as well do what I have done then. However, if something does happen with that number in your false case, then keep it the way you have it.
    That being said, why is the condition there to see if it has looped 100 times before doing the visa write??
    Message Edited by for(imstuck) on 02-22-2010 04:45 PM
    Message Edited by for(imstuck) on 02-22-2010 04:46 PM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    visa.PNG ‏13 KB

  • How to implement Modbus Ethernet communicat​ion in Lookout, if we want to simulate the PC as PLC ?

    Problem Description :
    Dear Sir,
    We are doing a project where we are using Lookout with
    Front end Modicon PLC. The communication is by
    Ethernet, using Modbus.
    Since the installation is at a distant place, we wanted
    to use another PC (running Lookout) to simulate the
    PLC. For this, we tried to communicate
    a: the server Lookout PC running Modbus Ethernet mode of
    Modbus object as Master
    b: with another PC (for simulating the PLC) running
    Modbus Slave
    We did not get any communication. (we have given the
    details of what we have done, at the end of this email)
    We also tried connecting the above 2 PC's as
    a: the server Lookout PC running Modbus Serial mode of
    Modbus object as Master
    b: with another PC (for simulating the PLC) running
    Modbus Slave object
    Again we did not get any communication.
    If instead of PC (b) we connect the Modbus simulator to
    PC (a), there is no problem in communicating
    Please let us know how to go about establishing the
    communication between 2 PC's using Modbus serial,
    and Modbus Ethernet. A detailed step by step procedure
    would help us a lot.
    Thanking you
    Warm Regards
    Raja Mahbubani
    Procedure of our trial with ethernet.
    This is what we have done in detail.
    On PC A:
    We created an object (Pot) and connected it to
    the modbus data member of the modbus object say 40001. In the
    properties of the modbus object we selected modbus ethernet mode
    of communication and in the IP address field we wrote the IP
    address of the machine B to which we are trying to communicate
    i.e. 152.63.50.2.
    On PC B: we tried the following two methods
    Trial 1 : We created a modbus slave object and
    inserted an expression for the same data memeber to which the
    object was connected hoping to get the value of the pot of machine
    A on machine B.
    Trial 2 : We created a modbus object on machine B and we wrote
    the IP address of machine A and inserted an expression for the
    same datamemeber to which the object was connected hoping to get
    the value of the pot of machine A on machine B.
    NI Software : Lookout
    Version : 4.0.1 or 4.5
    OS : Windows 98
    NI Hardware : N/A
    Drivers : N/A
    Other Hardware/Instruments : N/A
    CPU : Pentium
    RAM : 64
    Vendor : S-Tech
    Customer Information :
    Raja Mahbubani
    Theta Controls
    IN
    [email protected]
    Ph: (+91) 20 4222556/7

    The ModbusSlave which comes with Lookout currently supports only Serial communication. So, you cannot use Ethernet between your two PCs. At least not with Modbus Master-Slave setup (if you must speak Ethernet between the two PCs, IPASCII object lets you do that, but then you'll need to implement your own protocol).
    Since all you want to do is simulate a Modbus PLC on a PC, you can use the Serial mode of communication for now. And later on just modify the Object in your Server Lookout to use the Ethernet mode.
    For setting up a Serial Modbus Slave, use a null-modem cable between the two PCs (lines 2 and 3 are swapped). On your PC 'B,' create the Modbus Slave object with the right COM port for that PC. And on your PC 'A' create the regular Modbus Object as if you w
    ere connecting to the Modbus Simulator box. The only difference here is the cable. The simulator box uses a straight-through cable whereas the Slave needs a null-modem cable.
    Hope this helps.
    Rgds,
    Khalid

  • 6500a e710 a-f - Scanner Communicat​ion Error Windows 8.1

    We have been experiencing issues with scanning whilst connected via USB, using the HP Scan software. The software returns an error message saying scanner communication cannot be established, half way through scanning. Then HPScan.exe fails to load again. The printer just says “scanning cancelled” on its display.
    This is only effecting one model of PC and that is a HP 8300 Ultra-Slim PC.
    We are running Windows 8.1 64 bit from an image install. However, I have tested this with a fresh Windows 8.1 retail installation and get the same problem.
    We have tried various actions to fix this:
     - Various accounts, admin accounts, domain admin accounts, local accounts etc.
     - Uninstall and reinstall. Basic and Full driver packages including the latest versions
     - Removed all other HP software from PC including registry keys
    - Used built in Windows 8 scan software with basic driver
     - All USB ports tested including 2.0, 3.0 and powered / non-powered
     - Replaced cables
     - Re-isntalled USB bus drivers for 8300
     - Followed the print/scan doctor which shows a driver error - scandriver unable to communicate with product
     - Run HPScan in compatibility mode for 7/XP
     - Updated firmware on printer
     - Installed latest Windows Updates
     - Checked WIA service and dependencies are running
     - Semi and Full factory resets on Printer
     - Shell hardware detection service set to manual
     - We have replaced the printer for an affected user - same issue
     - Also replaced PC for an affected user - same issue.
     - Updated PC BIOS
    I have tested connecting the printer to the router with a network cable and then installing printer as a networked device rather than USB and then the hpscan.exe works. So this is only an issue with USB (though it wouldnt be practical to try and talk 200+ users through networking their printer).
    As you can see, we have tried almost everything. Interestingly we havent been able to replicate this issue in one of our main offices - despite collecting the same PC and Printer from an estate and bringing it back to an office.
    We have also sent out a working PC and Printer combo to an affected estate office and it has not worked there.
    Our Estate Offices connected via an ADSL Router and "My Documents" are re-directed to a network location. Could a failure in accessing this network location cause the problems? I have tested connectivity to network store from PC and it accesses the files fine.
    Any solutions would be greatly received, I have spoken to HP After Sales support but not received an working solution yet.

    Greetings, @Scammell29
    I have read through your post and have very ideas left for you, as you've tried quite the load of troubleshooting!
    I am thinking the issue could be power related, so try a power reset and plug the printer in directly to the wall outlet. Avoid power bars, surge protectors, etc. Just a direct plug in to the wall to test the power. Afterwards, see if you still receive the communication error.
    If the issue continues, next try a disk cleanup, the instructions are included in this guide: A 'No Computer Detected' or 'Connection Error' Message Displays during Scanning for HP Officejet 650...
    If the error still persists, perform a Clean Boot and restart the PC and then disable the Firewall and Anti-Virus scanners.
    Please let me know the results!
    Good luck
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Serial communicat​ion does not work in an executable​.

    I have created a vi that communicates with a serial device. It works fine on the computer that it was creatd on. I then created an application and then built an installer to put it on another machine. The second machine does not have LV 2009 on it. Once installed on the machine the vi does not work. When it runs on the computer with LV 2009 the the com port control is a pull down, and it lists all comports on the computer and then you select the one you want to connect with. The computer that the vi is installed on does not list the available com ports. This leads me to believe that there is no serial comms support in the installable version. What do I do now?? I noticed that you can add "Additional Installers" when you build the installer and one of them is NI-Serial 3.4. I try to add this and a message said that it had to get, so I didn't use it thinking it was more than I needed and that standard com port driver would be included. Am I wrong here or am I missing something else?? All help is greatly appreciated.
    [email protected]
    Solved!
    Go to Solution.

    claudio.rossi wrote:
    Hi  at all!!
    I'm new in NI forum.
    I have one similar problem. My VI communicate with external device on serial port. The VI work very well, but when I create executable (.exe) file with Labview application builder (on Labview 2010) the .exe don't use serial port!!! The executable run perfectly (nothing error or warning by the application builder), but the serial data on selected COM port  isn't send!!! Also on the PC where I developed the VI!!!
    What do you mean by your last sentence?  Are you trying to say that you can't run your executable even on the same computer on which you developed the application?  If so, was LabVIEW open when you tried to run it?  Try quitting LabVIEW; if you had previously run your VI and didn't close the serial port, LabVIEW might have kept it open, which would prevent the executable from accessing it.  If the executable won't run on the development machine it's unlikely to be resolved by installing VISA since you need that installed for the VI to work properly in the development environment.  Do you have any error handling in your code that would indicate if an error occurred after trying to write to the serial port (an indicator on the front panel, or a call to Simple Error Handler)?

  • Problem with serial communicat​ion PLEASE HELP

    Hello everybody !
    I'd like to ask You for some feedback on my wierdo problem that I got with my program.
    I have built a device that detects changes in magnetic field. It is used for detecting vehicles passing it on a highway. Generally the main components communicate with each other by RS-485 protocol, but I would like to connect the device to a PC. To do so I am using a RS-232 protocol (I have a RS485=RS232 hardware converter).
    Now, I made the program (even two), which generally works, BUT some wierd things are going on sometimes; it happens that I have a problem to get a communication (after that, resetting the device by un-powering it helps, sometimes I have to restart the PC as well) but overall it happens quite not so often. The project itself is for passing one of my subject on the university - so I have to run the whole thing over there, here comes another problem : the program did not work on all of the bunch of PC's that are there. Same thing happens on my notebook. The effect of 'non working' is : I am recieving same data packet that is beeing sent... BTW : notebook does not have a RS232 port and I am using a USB-RS232 calbe converter (to count it out from the reason of problems I have checked it on my main PC and it works almost fine - almost because ocasionally I am getting the same sympthomps as I mentioned before ).
    Other problem is, when it works, that I am loosing communication for couple of hundreds of miliseconds and then it comes back to normal (i can see it on the osciloscope).
    I alredy looked for some answears here and there, and I found some suggestions about using 'buffer cleaning method', unfortunatelly I kinda do not know how to do it, and might that help anyways ?
    I also thought about using VISA drivers, but I am having trouble with it as well - the damn thing just does not work.
    My very bling guess is that everyting that I am expierencing is about using the communication protocol and seting it right. I am attaching both of the programs, PLEASE anyone pretty pretty help I totally ran out of ideas and knowledge and day after day I am turning it on and off on my PC and notebook hoping some miracle will occour ... 
    Many many thanks in advance !
      Best regards
                    Tom
    P.S. the program is very unfinished (man things are just put in), the main thing I am struggling now is getting, and setting the communication protocol right.
    Attachments:
    detektor_3_2.vi ‏141 KB

    The biggest problem I see is in the sequence:
    Write out a string.
    Wait 50 mSec.
    Ask how many bytes have been received.
    Read that many bytes.
    Can you guarantee that the data can make a round trip in 50 mSec?
    You should know that the SERIAL PORT WRITE completes NOT when the data has been sent out the port, but when it has been BUFFERED for sending. In other words it returns and starts the timer BEFORE it is actually sent.
    Also, given that there are 232 -> 485 --> USB conversions involved in both directions, I would bet that you are sometimes not allowing enough time for the data to get back.
    If you can control the protocol of what gets sent back, I would change your receiving logic. I think you should check for a carriage return or some other delimiter, and not react until you get that character (or until a reasonable timeout expires).
    In other words, try synchronizing the two ends. Something like:
    N = Get # bytes at port
    Read N bytes from port (flush any characters waiting).
    Write out command string.
    TimeLimit = NOW + 1000 mSec (or whatever)
    S = ''; (Working string)
    repeat
    N = #Bytes at Port
    If N > 0
    S = S + Read N Bytes
    Found = Search String for Delimiter
    until Found or (Now > TimeLimit)
    If Found, parse string S
    You are also re-initializing the port (SERIAL PORT INIT) every time thru the outer loop - that's unnecessary.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • MAX communicat​ion hangs after Standby Mode(with GPIB PCMCIA)

    I have a IBM Laptop with MAX 2.2 and a GPIB PCMCIA Card installed. After booting the computer I can communicate with GPIB instruments without problems. After I get the Laptop out of a Standby Mode, MAX can not make any connection to GPIB devices; when I scan for Instruments it hangs as well.
    The troubleshooting wizard tells me: one or more GPIB interfaces failed.
    Does anyone have the same problems or solutions ?

    On the NI-488.2 2.0 download page it is mentioned that that driver does not support standby mode. No such mention is made on the download page for NI-488.2 version 1.7 (which I need to use for my PCMCIA-GPIB interface), although the 1.7 release shows very much the same problem: After stand-by, communication with the GPIB port is no longer possible.
    The Visual Basic example tool for preventing stand-by may help those users who are familiar with VB, but it does not help me.
    Frankly - what I'd like to see is an improved NI-488.2 version that does support stand-by. Does NI consider providing such an upgrade/patch?

  • Intensity plot and MSnode-win​dow communicat​ion

    Two questions:
    1) Is there an intensity plot function that can be called from the mathscript window to display 2D arrays (such as a grayscale image), similar to the matlab function "image" or "imagesc"? The only options I saw were to display a 2D array on a 3D plot. Yes, I know the intensity plot is available in the variable display window, but I would really prefer a command-line option.
    2) When I wire a variable to a matlab script node and run the VI, that variable becomes available in the matlab command-line window. I find this very convenient. Is it possible to do this (or something like this) with the mathscript node and window? I know I can communicate between the node and window with globals, but I have to go through the trouble of defining globals, and this only works if I create a project for my VI, which is just far too much overhead.
    thanks.

    Hello,
    In response to your first question, we currently do not have such a function.  However, such functionality is on the roadmap for a future release.  As for the second question, each MathScript node is currently sandboxed -- that is, it has its own variable space.  This was done so that there is no variable collision between different MathScript nodes.  We will be improving the interaction between the MathScript node and the MathScript Window in the future and your suggestion is one idea we are considering.  It would most likely be an option on the node and not enabled by default to prevent any variable collisions.
    You do not need to create a project in order to use globals to share data between the MathScript node and the MathScript Window.  However, the MathScript node and the MathScript Window need to be in the same application instance.  Thus, if you are already using projects, make sure you launch the MathScript Window from the same project in which your VI is located.  If you are using the default application context (no projects open), then you should be able to share a variable "a" between a MathScript node and the MathScript Window by typing in each:
    global a
    Grant M.
    Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

  • TCP communicat​ion temporaril​y dies

    Hi There
    Im using TCP to communicate between my ARM processor and PC. However, the communication sporadically dies for 3 to 4 seconds and then resumes, as shown in the Task Manager Networking (attachment 1) . This happens with the simplest of test programs, as shown in the attachments, and no delays or sequences seemed to solve the issue. 
    After some duration the communication dies completely with error code 66.
    What is causing the delays in communication and is there a fix for this?
    Attachments:
    simple TCP failure.jpg ‏527 KB
    Simple Server - ARM.jpg ‏72 KB
    Simple Client - PC.jpg ‏74 KB

    Hey,
    What kind of delay did you add into the VI?  it sounds like a pretty classic case of reading and writing TCP too fast.  You may want to take a look at this article: http://digital.ni.com/public.nsf/allkb/4CB799F36D0​EA56A862576200064B2F9?OpenDocument
    Regards,
    Eric L.
    Applications Engineer
    National Instruments

  • Usb communicat​ion

    Hello,
    I wonder if it is possible to communicate with a microcontroller and a computer using usb. De controller had the usb function on board. I just wonder if it is posible with labview to show the data transmitted over the usb port.
    Can someone tell something about it?
    Tnx for helping me

    VISA manual
    Instrument control Tutorial
    Instrument Control with the USB Hardware Bus
    You could have found this info by searching the NI website.
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

Maybe you are looking for