LabVIEW blocking QT signals?

I have a LabVIEW 8.6 program that is using a DLL written in QT; the DLL listens to a TCP port for incoming messages and updates some internal data.  My LabVIEW program calls into the DLL occasionally to read the internal data.  The DLL works perfectly (i.e., receives data from the TCP port) with another QT program.  However, it does not work at all with my LabVIEW program.
I've attached a debugger to the DLL and can see calls from LabVIEW going into it -- my function for getting the internal data is being called and I can step through it.  The code that gets the data from the TCP is never called though; it looks like the signal for incoming data on the TCP port is never triggered. 
I know this sounds like a QT issue but the DLL works perfectly with another QT program.  Unfortunately, it fails miserably with LabVIEW.  
One theory:
   - The event loop is not running when LabVIEW calls the DLL
      - In the QT DLL's run() function, I call socket->waitForDisconnected(). Perhaps the DLL is not processing incoming events because the event loop is not running?  If I call exec() to start the event loop, LabVIEW crashes (LabVIEW 8.6 Development System has encountered a problem and needs to close."):
   AppName: labview.exe     AppVer: 8.6.0.4001     ModName: qtcored4.dll
   ModVer: 4.5.1.0     Offset: 001af21a
      -  Perhaps when I call the DLL from another QT program, that program's event loop is allowing for the TCP signal to be seen by the DLL.  Unfortunately, kicking off the event loop in the DLL takes down LabVIEW.
Any thoughts on how to keep signals running in the DLL when LabVIEW is the calling program?
(Cross-posted on  http://stackoverflow.com/questions/1267804/labview-blocking-qt-signals)

Hi,
calling a dll in LabVIEW can be tricky. Qt is based on C++ and LabVIEW do not like C++. A dll written in C++ needs to be redefined in how calling conventions must be. There is some App. notes you should read. Please search for them here or at lavag.org.
Regards.

Similar Messages

  • LabVIEW caught fatal signal - Segmentation fault

    Hi,
    I've just obtained the Linux version of LabVIEW 7.0 from my University for academic use on my home PC, and I am having some difficulty getting the program to run. I've installed all of the "labview70-*.rpm" files into "/opt" using the "bin/INSTALL.norpm" from the CD (I am running Gentoo and don't have RPM support).
    When I try to run the program (cd /opt/lv70, ./labview), I get the splash screen, which says "Init temp resources file" in the bottom right corner. This stays on screen for about a minute, during which time, my RAM usage gradually goes very high, followed by my SWAP usage when the available RAM runs out (256MB RAM, 500MB SWAP). This happens regardless of whether I'm logged in as a normal user or as r
    oot.
    The splash screen eventually disappears and the following message is printed at the terminal:
    LabVIEW caught fatal signal
    7.0 - Received SIGSEGV
    Reason: address not mapped to object
    Attempt to reference address: 0x70126d74
    Segmentation fault
    I have checked the FAQs and knowledge base but can't seem to find anything that sounds similar to what is happening on my machine.
    My system is as follows:
    Athlon 1800+ XP
    256MB RAM
    Gentoo Linux 2.4.22-r2
    500MB SWAP partition
    24GB free space on hard disk
    Cheers,
    Martin

    Hey Martin,
    This is a new one for me. Try replaying your INSTALL and bin/INSTALL.norpm files with the one's that I've attached. They work well on my Debian machine (no rpm). That way you can run "./INSTALL" instead of INSTALL.norpm (which was only meant to be a helper app, not a primary method for installation.)
    As you probably know, reproducing a gentoo issue may be difficult because of the extreme customization. Is there anything uncommon that you might be doing? (using a locale other than C or POSIX, using a different threading library, etc.)
    Duffey
    Attachments:
    INSTALL ‏22 KB
    INSTALL.norpm ‏2 KB

  • LabVIEW caught fatal signal

    I am running the LabVIEW HTTP-server on a Linux server. When the traffic is to high LabVIEW crashes and I get the following error:
    LabVIEW caught fatal signal
    6.0.2Received SIGSEGV
    Reason: address not mapped to object
    Attempt to reference address: 0x0
    See LabVIEW_Failure_Log.txt for more information.
    The LabVIEW_Failure_Log.txt looks like this:
    #Date: Mon, Feb 18, 2002 02:48:30 PM
    #Desc: LabVIEW caught fatal signal
    6.0.2Received SIGSEGV
    Reason: address not mapped to object
    Attempt to reference address: 0x0
    #RCS: unspecified
    #OSName: Linux
    #OSVers: 2.4.16
    #AppName: labview
    #AppKind: FDS
    0x40257840 - __libc_sigaction() + 0x1f0
    0x083f2fbc - Exec() + 0x280
    0x082a7fb5 - ExecWrapper__FPv() + 0x41
    0x4021aeca - pthread
    _detach() + 0x562
    0x402fe3ca - __clone() + 0x3a
    Anyone knows what this means and how this can be fixed?

    I am getting a similar error with LV70 Linux when
    trying to start it in a WRQ window. Is there
    an answer to the question?
    LabVIEW caught fatal signal
    - Received SIGSEGV
    Reason: address not mapped to object
    Attempt to reference address: 0x50f
    Segmentation fault
    thanks,
    Dave
    Fermilab

  • LabVIEW caught fatal signal, reason unknown

    hi, I have installed Labview 7 on Fedora Core 5 and it rans well untill yesterday, when I start labview, after the welcome picture, nothing more.
    So I typed the command ``labview" at the shell prompt. Then the shell response me:
    [root@silver ~]# labview
    LabVIEW caught fatal signal
    7.0 - Received SIGSEGV
    Reason: unknown
    Attempt to reference address: 0x0
    Segmentation fault
    I am very puzzled, coz it worked well before yesterday. All what I do is installed the ATI Radeon driver program onto my computer.
    Can any one help me?
    thx
    Forrest Sheng Bao, Ph.D.
    Assistant Professor, Dept. of Electrical & Computer Engineering
    University of Akron, Akron, OH, USA
    https://sites.google.com/site/forrestbao/

    This problem is reproductible, my application crashs every time after
    40-48h running, .
    -- It looks like you have the 7.1.1 maintenance release installed and
    I am assuming that you have seen this <a
    href="http://digital.ni.com/public.nsf/websearch/A2D53C8E0D88380B86256EBD00..."
    target="_blank">KnowledgeBase</a>&nbsp;about similar installation
    errors.&nbsp; However, this KnowledgeBase also offers some steps for a
    workaround.. have you tried these?--
    Yes, I tried it. We have this problem at beginning and we correct it
    but it is not the same one because without this realease you can't
    launch Labview. And my application run without problem during 40-48h.
    Have you heard about any function not supported by Labview under Linux
    environment ? It may help me to go on debugging.

  • FPGA CRIO LabView - Why No Signal or Low signal?

    I'm programming LabView 8.2/RealTime 8.2 on a CRIO-9002 equipt with a 9102 chassis. I have a some 4-20mA modules, +-10v modules and last but MOST IMPORTANTLY a 9233 +-5v module.
    I've programmed the FPGA and realtime and have been able to acquire and scale appropriatly for all modules except the 9233. The 9233 is hooked up to a VibraMetrics 7002 accerlometer. (http://www.vibrametrics.com/downloads/specsheets/M​odel%207002.pdf)
    When run and an acceleration is applied I only see very low voltage on my display. Why is my 9233 is being unresponsive?
    Test run at 3.5 Gvms of acceleration: (please excuse the mess)
    Once again, the power spectrum should not be showing levels so low.
    Thanks for your help in advance,
    Craig

    Have you checked the signal level from the accelerometer with any other measurement devices to verify that the 9233 is measuring incorrectly?  Is the voltage/current excitation for the accelerometer correct?  I am assuming you are using the binary to nominal VI for converting the binary data to the real voltage.  Make sure you are using the correct module type for the conversion. 
    I am attempting to use the binary to nominal VI on the values I see on your front panel, but things are not adding up.  I used the 4th LSB Weight and Offset (656368 and -6548405)and the 4th 9233 unscaled Binary value (-7261) and converted it with the Binary to Nominal VI for the 9233 and got 0.00178252 for a nominal value while your VI appears to display 0.0067847.  I'm not sure what you are doing different than me.
    The low valued power spectrum makes sense because the analog input values are low.  If we fix the analog input issue, the spectrum should take care of itself.
    Without seeing your code or setup, these suggestions are obviously hypothetical.  Your screenshots show the FPGA code ok, but we have no idea how you are handling data on the host side.  In the future I would avoid embedding giant screen shots in your post, attachments are just fine.  Embedded screen shots are more effective if they only contain a small snippet of code.
    Cheers,
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • How to power a motor using labview DAQ output signal

    The power from labview is not enough to move a decent-sized motor (works with tiny one). Is there any electrical component/device that I can use to sort of increase it (something in between output from labview and the motor)?
    Thanks

    LabView is a software and does not supply any physical signals. To generate physical signals you need an interface board, NI has plenty of them which can be controlled via LabView. Anyhow, as you mentioned, digital i/o interfaces can handle currents in the mA range only. I think the best way to control motors via LabView and an interface board is using an additional relay driver board. Since relay contacts only switch power and do not supply any power you will need an external power supply matching the voltage and current specs of the motor.

  • How can I make Microsoft Wireless Intellemouse Explorer 2.0 horizontally scroll my LabVIEW block diagrams using the tilting wheel?

    I bought this expensive mouse in high hopes that I could use the tilt wheel left/right to scroll horizontally, but it does not do it! Vertical scrolling works great. LabVIEW 7.0. Please help! I'm tired of going to the horizontal scroll bar on my block diagrams!

    This doesn't exactly answer your question, but if you use the auto tool, press and hold and you get the Scrolling Tool. That will let you drag the diagram or panel around quickly.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Labview driver for signal generator can not find DLL

    The labview driver "age82xx.zip" I downloaded from NI website can not find DLL "age82xx_32.dll". There is no this dll file in the zip file. Please help me. The labview version is 7.0. The instrument is Agilent E8254A. Thanks!

    On the download page, there is a link under "Require Third-Party Installation(s)". This is explained at the top of NI's page. Clicking on the link will take you to Agilent's web site where you will have to select the 'Signal Generators' link to get the E82xxA driver.

  • How LabVIEW get interrupt signal from microcontroller

    Hello,
    I try to write a LabVIEW program to test PC Oscilloscope using microcontroller and parallel port.
    The program will triger the microcontroller and wait for the interrupt signal from the microcontroller.
    Then read the data and show the display.
    I defined my ECP port as bi-directional and IRQ enable.
    The problem I faced in here is how to get interrupt service in LabVIEW 5.1 without DAQ board.
    My computer's IRQ is 07 and I would like to control interrupt service by using parallel port.
    Thanks in advanced.
    Best Regards,
    HMU

    Hi,
    I was very interested looking for possible answers to your question - no feedback from other people - o.k.
    I think, that I have some experience with LabVIEW and
    the use of printerport on different operating systems (Win9x,WinNT,W2k). But I would solve your problem with
    polling of that "filtered" bit on printerport. If some- body has a better idea - let me know. If you have questions about interfacing @ printerport - please write to: [email protected]
    Regards
    wha

  • Question about labview block diagram

    Hi all,
    I'm working on labview with fieldpoint modules. Why can't I connect the FieldPoint IO Point Constant directly to the FP Read (Polymorphic)? It says "I connected 2 terminals of different types". But somehow I found some manuals on NI which said these 2 items could actually be connected. I use Labview 7.1.
    Regards,
    Nicky
    Solved!
    Go to Solution.

    That Fieldpoint Icon looks different from the one I'm used to seeing.  Unfortunately, my PC that has 7.1 on it isn't running anymore, so I can't check that far back.
    The error tells you something about what it is looking for (cluster of 2 elements).  Turn on context help for the Fieldpoint function.  Delete the broken wire and right click on the connector input and select Create Constant.  With either of those, you should be able to find out some information as to what is required in that "cluster of 2 elements".
    Here is what mine looks like.  I am curious to know where you got your Fieldpoint function from.  Is it from an older version of LabVIEW than 7.1?
    What version of Windows are you using?  The font that is showing up on your block diagram looks oddly blocky.
    Message Edited by Ravens Fan on 05-10-2010 03:56 PM
    Attachments:
    Example_VI_BD.png ‏10 KB

  • DLL connect in LabView to control Signal Measure Unit

    Hi,
    I have a SMU from mb-Technologies, which ius supplied with software environment.I'm LabView beginner and need yours help.
    I have driver from mb-Technologies and i don't now how i access it.At the start I just want to start SOURCE 1 address with function RESET!
    Can you help me to solve that problem.I will uploaded the necessary data so you can see it.aslo LabView driver with Software-Interface.
    Thanks a lot of for yours help!
    Best Regards,Mirza
    Attachments:
    mbInterface.pdf ‏299 KB
    SMU_Driver.zip ‏63 KB

    Hallo grba,
    warum fragst du nicht einfach weiter im LabVIEWForum.de?
    Crosspost: This has been discussed in the German LabVIEWForum before.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • HP OfficeJet Blocks WiFi Signal

    I have an HP Officejet 6500 Wireless. I recently purchased my own modem from Netgear which I use with my Netgear router. My internet works great on all devices, laptops, desktops, iPhones, and iPads. However, when I turn on my HP  printer and connect to the WiFi, my internet becomes blocked and I cannot print nor can I access anything via the internet.
    I must restart my router and turn off my printer to get my internet working again. I am assuming there is some kind of MAC or IP address conflict but I am just not smart enough in these areas to figure it out.
    Any assitance with this would be greatly appreciated. Thank you in advance for anyone who can help me with this. 

    Welcome to Apple Support Communities.
    If you're comfortable going 'under the hood', this thread originally started in November 2010 contains a minor tweak to OS X that might work for you:
    https://discussions.apple.com/thread/2658720?threadID=2658720&tstart=0
    It allows devices on iOS 4.2 or newer to print to shared wired and wireless printers as long as the Mac is on and awake.

  • Generating 0 and 1 signal using labview Daq card

    Hello,
    I’m working on a Project on the On/Off control of a pneumatic cylinder via a 5/2 solenoid valve.
    On State: Valve  O/P  1 pushes cylinder  İ/P 1
                     Value  O/P vents air.
    Off State: Valve O/P 2 pushes cylinder  İ/P 2
                       Value O/P 1 vents air.
    By this way we aim to move the clinder forward and back.
    We use Labview 9.0. I did not work on pneumatic system before,
    I will be happy if you could help me about  2 points.
    1)      How can we  enable the On/Off switching  between the 2  O/P’s  of the solenoid ?
    2)      How can we enable the timing between On and Off States. ( On: 0-5 seconds Off: 0-5 seconds )
    Do we need special code for Standard labview blocks will be OK ?     
    Thanks a lot.

    The digital out are a great place to start, however they are signal lines which means they don't drive a lot of current (~1mA). If your device isn't setup to accept digital signals you may have to use an external transistor to step up your amperage. See the link on here to get started 
    Labview can provide all the timing you need. I would search through the shipping examples (Help >> Find Examples) for digital output examples, there should be a bunch and one will probably work for you with just a little modification.
    Jesse Dennis
    Design Engineer
    Erdos Miller

  • Where can i find labview signal express DAQ assistant at?

    Hi, i need help
    Q1) where can i locate Labview signal express DAQ assistant at?
    Q2) Is Labview signal express functions same as Labview 8.6 ?

    LabVIEW Signal Express and LabVIEW are two different products.
    If you are talking about the DAQ Assistant, then you need to have the latest DAQmx driver installed and you should be able to find in the Measurement I/O palette on the LabVIEW Block Diagram.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Where can I found hardware to get analog signal from VCR and work with labview and then sample this signal in very high frequency?

    I am trying to build a Digital Video Recorder using Labview. The problem is that I found that Labview sample the signal in the order of milisecond. I wanted it to be in the order of microseconds. Also I am looking for a cheap Hardware solution if it is possible

    Your question does not make a lot of sense to me, so I will just point out a few things.
    1. The PCI-1411 works well with VCR signals. It has a BNC connector as well as a S-Video connector. The price is under $1000, so it is fairly reasonable. The amount of time you save getting it to work with LabVIEW is worth any extra cost.
    2. The PCI-1411 is sampling three colors at 30 frames per second, with an image resolution of 640x480. This is the best resolution you are likely to get from a VCR signal. The sampling rate for each byte in the image is about 28 MB/sec. This is in the microsecond range that you are looking for, I think. If you are only interested in the raw signal instead of the image, you could look at the high speed digitizing boards NI sell
    s that acquire at higher rates.
    If this information isn't really what you were looking for, perhaps you could clarify your question.
    Bruce
    Bruce Ammons
    Ammons Engineering

Maybe you are looking for