Solenoid causing crash LabVIEW?

Hello

I use LabVIEW 8.6 with a NEITHER-9481, relay module 4 channels (among others) to control a solenoid that opens and closes a hydraulic circuit. Relay module controls a 24V DC solenoid power supply.

The solenoid valve opens and hydraulic works. After reaching a condition, the solenoid valve closes in LabVIEW, closing the hydraulic circuit. A few seconds later, the computer restarts.  To try to address this problem, a diode has been built, parallel to the electrovalve to protect the return what EMF generated by the magnetic field collapsing in the solenoid circuit.  This reduced the problem but has not solved.

Can someone suggest remedies? The back EMF pulse would be the reason for the computer itself reset? Or could there be another reason?

Any help would be greatly appreciated.

Thank you very much.

John

John,

I would think the back EMF would be the prime suspect.  Make sure that the damper diode that you installed is as close as possible the coil of the relay.  This will maximize its effect.

The next issue to watch, it's how the power supply 24V to the valve is wired regarding the rest of your DAQ hardware.  Primarily concerned about ground loops and bounce on the ground.  Can you describe the rest of the installation, and how things are wired in a little more detail?  Any other inductive loads in the setup?

Tags: NI Software

Similar Questions

  • BUG: Date/Time Format string with %D in the format string crashes LabVIEW

    Do %D in the format string 'Format string DateTime' blocks LabVIEW 2009 SP1, as shown in this code snippet.  Should I use instead of %D %d but an incorrect format string should not crash LabVIEW.

    Fixed in 2010.

  • TCP opened briefly crashes LabVIEW

    Hello LabVIEW forum! Long time no see. I have been away doing other things but LabVIEW... I am back.

    Background:

    I'm working on a project where I need to make a TCP connection on a Windows 7 computer. The Windows machine will intentionally restart for each test. When it starts, I need make a TCP connection to a server that starts automatically on the Windows computer and send commands. While it is booting, I try to connect, get an error, try again, etc., until the connection is established.

    The problem:

    This computer name is not resolved by the DNS or the hosts file. If I try to connect using a host name and host name cannot be resolved, LabVIEW will freeze for a few seconds. If I click on the Red Quit button, I get the error not responding. He will eventually recover and gives me an error 54. The time-out period is not relevant in this situation. No matter how long or how short I put it in, it always crashes LabVIEW for about three to five seconds. If I try to connect by IP address instead, so I don't see this problem. If the machine is off, I just get a time-out error but LabVIEW does not freeze.

    I can't post code, but try this: write a VI with an infinite while loop and an indicator connected to the Terminal i and place a delay of 100 ms in it. That and note that the number increments. Now, create and run a second VI with the TCP inside open and use a machine name that does not exist. What I see is that the number in the first VI leave increment. I'm using LabVIEW 2014 32-bit on Windows 7 Ultimate 64 bit. First, open a console and try the ping command on the name that does not exist, you are trying to connect to and verify that it prints an ip number. Some providers Internet will solve all non-existent host names to an IP address they have for their benefit. If this is the case then you will not be able to reproduce this bug.

    I have a workaround (putting an entry in my hosts file), but I thought I would mention this possible bug. In addition, it gives me the opportunity to say hi to all my old friends on my favorite Ant! (the list is long but you know who you are)

    LabVIEW called Winsock for all network operations. Most of the Winsock operation is synchronous. This isn't a big problem for most code LabVIEW LabVIEW is multithreaded and performs the nodes in some thread the current VI is to. However, some features require access to a global data space and are protected by other means. It can be a global mutex and sometimes it is also solved by forcing the node to run always in the interface of LabVIEW user thread that also runs the message windows and Winsock loop hang in this message loop to do its own internal synchronous pseudo operations.

    IP address control is something you can try. It can also block because of the internal Winsock hanging in the application message loop, but maybe it will not be so that you can work around the problem. There is no way for a normal application using the Winsock API in order to avoid delays in internal Winsock for synchronous functions, and the resolutino address API supports asynchronous really not with variants.

  • DLL crashes LabView 2013 Pro, but good to EXE

    Hello

    I started having a problem older "degenerate." I had a previous post about a dll which plays a role of interface between a program running under Windows and LabView. The details are here:

    http://forums.NI.com/T5/LabVIEW/installed-program-no-Comm-with-driver/m-p/2659765/highlight/true#M79...

    Note that this isn't a double post, I just mentioned my recent problem there, when he was not that common.

    (http://forums.ni.com/t5/LabVIEW/installed-program-no-comm-with-driver/m-p/2662503/highlight/true#M79...

    Today - unknown reason - after a win system restart I can not run my development environment LabView code. When I run the main VI, it blocks all of the LabView environment during the first call of dll. This problem we had before also, but the 2nd of the 3rd test he ran OK. Today, I tried like 30 times, too many system restart. The native software spectroscope works very well too.

    Strange, if I run the exe to build, everything works fine. The problem appears only when I run LabVIEW. There is no error code, only a window appeared the first time, as I can send the error report to NOR. I can dig into some logs tomorrow at the lab, I just need to know where I can get.

    It seems that someone has also experienced similar behavior with external dll call:

    http://forums.NI.com/T5/LabVIEW/problem-DLL-crashes-LabVIEW/m-p/2562667/highlight/true#M773565

    "In the application resulting (Exe), it seems to work very well."

    What is the difference between when the dll is built in the exe file, and when it is executed from the LabView dev environment?

    Thanks for any idea and help!

    (if nothing helps, I just re - build the exe after changes to the program, but it slows down some coding)

    The last time, we have no comments from the company that created this dll, I'll try to contact again...)

    Hello

    you said that you have read the discussion in the following link:

    http://forums.NI.com/T5/LabVIEW/problem-DLL-crashes-LabVIEW/m-p/2562667/highlight/true#M773565

    Are you facing exactly the same problem?

    If Yes, then there is not much we can do. LV is an access contradication with your included DLL unless you have access to its source. You do not experience these problems with the exe since that only works on the run-time engine while the LV environment executes the code in a different way (why LV reserve this special memory on which your DLL is also trying to access.

  • Last updated on Windows 7 cause "Crash Dump" on my computer.

    Last updated on Windows 7 cause "Crash Dump" on my computer. Watch journal update KB2264107 and KB2454826 will not settle. I do a system restore to get back. I tried the "auto update" three times.


    KB2454826 was fired shortly after its initial release, January 11, 2011. Revised (for example, fixed) versions of KB2454826 have been re-published February 8, 2011.

    NB: KB2454826 is an update Important/recommended, it's always an option, not the security update (from this edition). That being said, we now know that KB2454826 is a prerequisite for the update for IE9. As it will probably be a prerequisite update for SP1 of Win7, too, you probably don't want to hide.

    KB2264107 is an option, not the security update. Feel free to hide it.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • right click on windows Explorer causes crash! Sometimes when I try to empty the trash, it also blocks? I use windows 7?

    right click on windows Explorer causes crash!  Sometimes when I try to empty the trash, it also blocks?  I use windows 7?

    Right-click accidents are caused by third-party shell extensions. To identify the culprit, you must use a utility like ShellExView and disable context menus not Microsoft managers one by one (or disable items in a batch) and observe.

    ShellExView - Manager of Windows Shell extensions:
    http://www.NirSoft.NET/utils/shexview.html

    And instructions are here (see "Method 2")
    http://WindowsXP.MVPs.org/slowrightclick.htm

    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • Access violation on EIP - causing Crash

    I have a small VI who call the two APIs from a DLL. When I press on the register, the FI_Register_wrapper() is called, and when I press "Registration", FI_get_handle_by_name_wrapper() is called.  Two calls works perfectly. But when I close the the LabVIEW VI crashes. It gives an access to the error of the EIP violation. Help, please. I also included my VI.

    skariaroy wrote:

    We checked the library to find anywhere that the dll corrupts the memmory. We have tried several times using several tools and could not find any place where the dll corrupts the labview memmory. If the dll is perfect. It is not possible to write the things of all DLLs in LabVIEW. We have to code in C++, since we already have the dll.

    The fact that it crashes is enough evidence that your assertion that your DLL is perfect is not true! It's as simple as that!

    skariaroy wrote:

    CameraServices * cs = new CameraServices (name);
    Return FI_OK;

    reffrering the above code belonging to a dll. If I come back from service before allocating a memmory of type CameraServices *, not crash the program. Education CameraServices * cs = new CameraServices (name). makes the application crash. It is just a memmory allowance. Why LabVIEW even cares it?

    LabVIIEW only cares memory allocation! This is memory allocated your DLL and LabVIEW is happy to let this memory alone. No doubt well, what happens is something to this appeal does not behave properly and is damaging the memory that it does not have touch! It could be that the name parameter is something that you think it should be, and that therefore not spend you wrongly LabVIEW to your DLL, or it could be as simple as a bug in the constructor of this class. Or something added recognition as a pilot of the incompatibilities in the lower level components of your CameraServices class.

    An additional note: the code you write he will flee the CameraService object whenever you call this function. Which will not cause LabVIEW to plant well (not quickly at least until missing memory).

    I can assure you with certainty of 120%: this is not benevolent LabVIEW that you create an object of type CameraClass in your code, but it's something in the code that you have written or in code you call who misbehaves. And unfortunately your observation is not sufficient to identify the cause certainly. Leaving further appeal may seem to solve the problem, but the reality is that the bug can be somewhere completely elsewhere in your code, but leaving far who call the provision of memory is also rearranged and your bug will damage the other memory not as an essential element for LabVIEW. He can always down sooner or later.

    And it is not for lack of LabVIEW that you don't have to worry about these troubles when programming in LabVIEW. But you are programming in C (++) now, and that comes with its own and many more unpleasant questions!

  • Plugging / unplugging headset causes crash

    Hello

    Here's a strange, and I would like to know if anyone else has seen this...

    I have a pair of bose quiet comfort 20. They work very well on mac, including the remote control. But when I unplug them, their e-mail client crashes often. Earlier, I plugged in, and the screen went black and said the system crashed. Mentioned something about kernel panic, but did not write in the exact message.

    This is the first 'real' crash he caused.

    Any thoughts on what could be causing this - and better yet - how it can be avoided

    Running El Capitan on 13 "rMBP early 2015, to date with all updates

    Thank you

    Henrik

    Hello henrikcm,

    I understand that you received a kernel panic when using your MacBook Pro and seem to occur when you disconnected the headphones. I'm not sure if it's related but back on how to look this up and how to fix it.

    I would like to start by looking at system information to look over what was the kernel panic. To access it, hold down the Option key and click the menu drop-down  > information system... and then click logs. Take a look at the link below on how to get there.

    OS X: about system information and System Profiler
    https://support.Apple.com/en-us/HT203001

    Now in regards to this diagnosis, it may take some time. You want to look over the next article. It's long, but gives you a few options of troubleshooting according to the if this is hardware or software related.

    OS x: when your computer spontaneously restarts or displays "your computer restarted because of a problem."
    https://support.Apple.com/en-us/HT200553

    Take care

  • GetDefaultPrinters (WinAPI call) crashes Labview

    Hi all

    For several reasons, I need to use the windows API to get the default printer. I know labview activex solutions, but those are not universal.

    See attached VI. The winapi call blocking labview quite regularly. It works very well and correctly returns the default printer. However, some time later, a few seconds or a few surgeries later, he will break always labview. Why? I tried to change to "Run in the user interface thread" instead of any thread, but neither seems to help...

    To get it to crash immediately, try to close the VI. This seems to do every time. Access violations...

    He solved.

    It's the definition according to msdn:

    BOOL GetDefaultPrinter(
      _In_     LPTSTR pszBuffer,
      _Inout_  LPDWORD pcchBuffer
    );
    

    This buffer is large enough. Although I had assigned more sufficient in the CLN itself, I had to select "minimum size" for the pszBuffer to be pcchBuffer. Which solves the fracas. Don't know why it worked...

  • Sharing of Variable crashing LabVIEW

    It's just one of those projects that has a wall of brick in each round so far. Two computers running LV2009. Computer A hosted data write sharing Variable. Computer B shared reading Variable data hosts. Reading data is linked to write data. Everything worked fine, and then yesterday afternoon, I don't think I changed anything on the shared variable, I start my VI on the computer B and LV crashes. The VI begins to run before the first performance for reading data, and then poof, everything open in LV disappears. Since then the problem is reproducible 100 percent.

    Here's what I know:

    1. an error indicator hooked to reading data watch-1950679034 (shared Variable has no value) for about a second before the accident. Everything stops execution as soon as the warning.

    2. writing of data is a single editor, but it is also sometimes read in VI it is written in. It is not read when the accident occurred. I can however perform playback on computer A without incident.

    3. don't know if this is related, but if I open the VI on computer B and then open the project, I am not able to drag data reading of the project on the block diagram. I also cannot perform operations on the shared Variable (as right-clicking, ignore the timestamp). I have to close the VI and reopen the project. In retrospect, this problem might have started when I opened the VI without opening the project.

    I'm torn between abandoning the shared Variables and try to understand it. I would definetely prefer to use the Variable shared, mainly because I need a buffering. I guess I can put other things buffer. Don't know if I can remote access to a queue, or...?

    I was able to reproduce the crash that you see with extreme simplicity VI in LabVIEW 2009.  This looks like a bug in LabVIEW, so I'll check if there is any of this behavior already.

  • Ricoh device driver computer causing Crash

    My vaio from sony with vista operating system crashes about once a day. It blocks especially when I watch a video online. Reports of problems in Windows which is driver camera Ricoh that causes accidents. I click on the link http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01068945 but HP offers no solution. Yes, I also have my computer up to date. Help!

    Hello Riddler65,

    If the camera is not visible in the Device Manager, I would recommend that you contact the manufacturer of the camera so that they can help you with the removal of the driver and software.

    Best regards

    Matthew_Ha

  • rdprt4.dll program causing Crash

    I hope someone can help me with this. I use a program called BTS11. The program works fine until I try to print how it crashes with the error message below. I spoke with the manufacturer of this program and they can only advise that the fault is a windows one with the remote procedure call runtime. I uninstalled .NET framework 4.0 and version 4.5 installed and then uninstalled and installed 4.5.2 none of versions resolved the problem. I hope someone can point me in the right direction because I am running out of ideas.

    NB this program actually uses the word to make his impression so I guess the rpcrt4 has something to do with it talk to Word for printing

    Thank you very much

    Gavin

    Signature of the problem:

    Problem event name: APPCRASH

    Application name: BTS11.exe

    Application version: 1.5.0.14

    Application timestamp: 53077616

    Fault Module name: RPCRT4.dll

    Fault Module Version: 6.1.7601.17514

    Timestamp of Module error: 4ce7b9a2

    Exception code: c0000005

    Exception offset: 00095149

    OS version: 6.1.7601.2.1.0.256.48

    Locale ID: 2057

    Additional information 1: e141

    More information 2: e14129f5d4cac0937ba211c6199e289f

    Additional information 3: 177ff

    Additional information 4: 177ff31303a1c0f685a2864fc797b2cc

    Read our privacy statement online:

    http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    If the online privacy statement is not available, please read our offline privacy statement:

    C:\Windows\system32\en-US\erofflps.txt

    There is a third party module that can be the cause of the accident and it's the sstbars2.ocx:

    WARNING: Unable to verify timestamp for msvbvm60.dll
    ERROR: Module load completed but symbols can be loaded for msvbvm60.dll
    WARNING: Unable to verify timestamp for sstbars2.ocx
    ERROR: Module load completed but symbols can be loaded for sstbars2.ocx
    Probably caused by: BTS11.exe (bts11 + 81bb2b

    Sstbars2.ocx can be an element of the ActiveToolBars more so if more ActiveToolBars is installed can you uninstall ActiveToolBars more and see if the error resolves.

    Otherwise the sstbars2.ocx in the C:\Windows\System32 folder and rename it to sstbars2.old and sign out and then sign back in again.

  • trying to open the LR print module causes crash

    Whenever I try to open the library print module it causes LR to crash. This has only just begun, it was OK so far. I tried dumping LR Plist file and running back but no luck.

    MacBook, OSX 10.7.5, Lightroom 5.7.

    Have you tried to reinstall the printer driver and software from the manufacturing site.

    Kind regards

    ~ Mohit

  • Keylight causing crash in AE CC 2015 (13.6.1)

    Hi all

    I use the version more to day after effects cc, 13.6.1

    When using keylight that my computer crashes immediately when I'm scrolling on the images, sampling the color key by holding down the alt key. A text box comes up saying, "Adobe after effects CC 2015.1 has stopped working" he search a few seconds for a solution but can not find anything and I have to click a button to close the program. Generally, this happens after I AE were move for a few minutes and have sampled colors and played around with the cutting of white and black.

    I'm 10, Professional 64-bit Windows

    Intel i7 5930 k

    ZOTAC geforce gtx 760

    32 GB of ram

    Samsung ssd 250 GB to run windows programs and 10

    Samsung 500 GB ssd for cache

    External LaCie 1 tb for project files and sequences

    This is the error log:

    Log name: Application

    Source: Application error

    Date: 20/01/2016-17:24:21

    Event ID: 1000

    Task category: (100)

    Level: error

    Keywords: Classic

    User: n/a

    Computer: Computer DESK-JHK3RCA

    Description:

    Name of the failing application: AfterFX.exe, version: 13.6.1.6, time stamp: 0x566a97aa

    Name of the failed module: EMUL.dll, version: 13.6.1.6, time stamp: 0x566a7d1b

    Exception code: 0xc0000005

    Offset: 0x000000000001973d

    ID of the process failed: 0x47c

    Start time of application vulnerabilities: 0x01d153d0d3712a12

    The failing application path: C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\AfterFX.exe

    Path of the failing module: C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\EMUL.dll

    Report ID: 12eeea1b-f448-413e-a0e7-e7e08b40634b

    Faulting full name of the package:

    ID of the failed package-parent application:

    The event XML:

    " < event xmlns =" http://schemas.Microsoft.com/win/2004/08/events/event "> "

    <>System

    < name of the provider = 'Error of Application' / >

    < qualifiers EventID = '0' > 1000 < / EventID >

    < niv.2 > < / level >

    < task > 100 < / task >

    < Keywords > 0 x 80000000000000 < / keywords >

    < TimeCreated SystemTime = "" 2016-01 - 20 T 22: 24:21.008971500Z "/ >"

    < EventRecordID > 1913 < / EventRecordID >

    Application of < channel > < / Channel >

    < computer > computer OFFICE-JHK3RCA < / computer >

    < security / >

    < / system >

    < EventData >

    AfterFX.exe < data > < / data >

    < data > 13.6.1.6 < / data >

    < data > 566a97aa < / data >

    EMUL.dll < data > < / data >

    < data > 13.6.1.6 < / data >

    < data > 566a7d1b < / data >

    c0000005 < data > < / data >

    < data > 000000000001973d < / data >

    < data > 47 < / data >

    < data > 01d153d0d3712a12 < / data >

    < data > C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\AfterFX.exe < / data >

    < data > C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\EMUL.dll < / data >

    < data > 12eeea1b-f448-413E-a0e7-e7e08b40634b < / data >

    < data >

    < / data >

    < data >

    < / data >

    < / EventData >

    < / event >

    the film is 4 k, coming straight out of the camera as .mov files. I tried to go to 2014 CC, but the same thing happens. I deleted the program and ran the creative cloud cleaning tool, re downloaded the program, but always the same crash when using keylight. I have a feeling it has to do with maybe my drivers, I ran an updated driver check via windows and he said that all were aware but I went and manually checked drivers and some were not up-to-date.

    It's my first computer build, im just come to PC to apple so it's very new. I'd appreciate any help!

    -Zander

    I hope to change the driver for your GPU will help. I don't know enough about the internals of the AE to read your crash log in sufficient detail to identify the problem.

    Let me explain why I suggested an appropriate intermediate format transcoding.

    IPB is a h.264 codec in a mov wrapper that uses two-way interframe compression.

    What does that mean? Well, it means that not all frames are kept intact. Instead, a single key frame by every half second or so is left in its entirety. For all other frames between keyframes, the right compression system maintains visible changes and uses keyframes preceding and following to guess what are the missing data. (This is also how data operation Mosh, incidentally. You can remove some keyframes or use the data of other videos to smoosh your video movement in things really glitchy and cool, but that's neither here nor there.)

    Interas IPB image compression is problematic for software like AE. After effects, flame, Fusion Nuke - they are all pixel based image editing applications that Act a lot like Photoshop. They calculate the values of each pixel in each image, came with a new pixel and then read the pixels. More importantly, AE and all other pixels based compositing apps still work internally with completely uncompressed pixel data. IPB has only all the data, all the fifteen images or more (depending on your pace). That means that when you move your current time to a specific point in time, AE must watch several frames in both directions (bidirectional) to try to rebuild the image of the picture.

    Recent versions of AE have greatly improved in the way they treat interframe compression, but there are still a few issues. Transcoding a uncompressed (or intrapicture compressed) codec allows to eliminate a part of the treatment (and thread) overhead that can cause problems.

    I usually use Adobe Media Encoder to do transcoding I need to do.

  • Updated October 2014 CC causes crash when importing OBJ.

    I tried to import a file (created in c4dr16, registered as a .obj file) OBJ AE CC 2014 to be used with Trapcode Form plugin. without fail, it causes AE crash when importing.

    I tried going through the menu import by dragging the file into the prj with the same results - crash.

    Connection to all media via the network of servers uptairs.

    Black trash

    OS 10.9.4

    is it me?

    specs.jpg

    You will need to take up with the red giant / Trapcode. That being said, C4D outputs simply crappy OBJ files. Download Blender, open your file in there and export it again as an OBJ file much better.

    Mylenium

Maybe you are looking for