SIGTERM and other signals in LabVIEW

Hello Everybody
I was wondering wether somebody figured out some nice trick to handle unexpected events in LabVIEW like in Linux: signals.
Actually I am not so interested in handling the exceptions, but rather to have a tool to communicate between vis (processes).
The exsample for this could be a vi running in subpannel in parralel with other vi controlled by user. For user demand other vi needs to be placed into the subpannel and executed.
In this example it would be nice to have some "signal" handling procedure, where the running vi will handle the SIGTERM signal and will close itself letting another vi to use subpannel.
I know that I can use a vi server to set some controls of the running vi and in this way tell it to
stop.
But I was wondering if somebody though about something else, something more embeded into the core of LV.
I am sorry if I am not clear of what I want, but maybe somebody will understand .
thanks in advance.
Pawel

I dont want to reduce the signals. I want to capture ctrl-c event, and perform some close activities and then exit.
I can use the wrapper script to capture the signal but from there I cant access the class which I want to access.
Is this possible? If yes, could you pl send some sample code.
In the IBM url -
http://www-106.ibm.com/developerworks/java/library/i-signalhandling/
I tried to execute the code, but could not.

Similar Messages

  • 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

  • How to generate BPSK and QPSK signals with Labview and ARBS?

    Has anyone used Labview to program a Wavetek 75 or equiv Arbitrary Waveform Generator to produce BPSK and/or QPSK signals.

    You can use Modulation Toolkit 2.0 for LabVIEW to generate PSK signals (including BPSK and QPSK) using common PSK configuration parameters.
    http://sine.ni.com/apps/we/nioc.vp?lang=US&cid=128​55
    You can use resampling tools present in Modulation Toolkit if you need to resample the generated data to a different sample rate for your third party AWG.
    In addition, Modulation Toolkit integrates seamlessly with NI's high-speed signal sources, including the NI 5421 for PXI:
    http://sine.ni.com/apps/we/nioc.vp?cid=12472〈=US

  • My TV is mounted on a wall so I can't connect the Apple TV device. Is it possible to connect to an HD Cable Box and send signal to TV that way? Other problem is that Box only has one HDMI socket .. Help!

    My TV is mounted on a wall so I can't connect the Apple TV device. Is it possible to connect to an HD Cable Box and send signal to TV that way? Other problem is that Box only has one HDMI socket so would also have to use a splitter. Tried Apple Support but couldn't offer a solution. I can't be the only person with this issue surely?
    Help!

    No, unless you are using a home theatre system already, your only option is to connect to the TV.

  • N8 poor signal reception and other hardware issues...

    I have always been a Nokia fan . I started with Nokia 6600, then N70, then N82 and now a Nokia N8.
    However, I am facing the worst experience with N8 reception issues.
    The problems faced are as under :
    1) Poor Signal Reception Issues - Signal strength is weak and is constantly fluctuating compared to other Nokia Phones. At my workplace, if Nokia N82 displays 5 bars, N8 would display only 1 or 2 bars.
    2) Phone freezes many times. Whenever an Alarm is enabled, phone freezed much more.
    3) Purple Tint in the display. Nokia Service Centre says that its normal but according to me, they are just ignoring this issue. 
    4) Vibration is weak : I often do not realize when the phone is vibrating in my pocket !! 
    Upcoming Symbian Anna will just improve the user interface but will not be able to solve these hardware issues.
    If Nokia plans a hardware update facility for N8 users wherein they can fix the signal reception issues and increase the RAM to 1 GB atleast, I would retain this phone for few years.  
    But, now, I intend to switch to Samsung Galaxy S II. 
    Your views solicited.
    Regards
    MODERATOR'S NOTE: This post has been edited as we do not allow the discussion of speculations concerning products or services which have not been officially announced by Nokia.

    sats_24 wrote:
    I have always been a Nokia fan . I started with Nokia 6600, then N70, then N82 and now a Nokia N8.
    However, I am facing the worst experience with N8 reception issues.
    The problems faced are as under :
    1) Poor Signal Reception Issues - Signal strength is weak and is constantly fluctuating compared to other Nokia Phones. At my workplace, if Nokia N82 displays 5 bars, N8 would display only 1 or 2 bars.
    2) Phone freezes many times. Whenever an Alarm is enabled, phone freezed much more.
    3) Purple Tint in the display. Nokia Service Centre says that its normal but according to me, they are just ignoring this issue. 
    4) Vibration is weak : I often do not realize when the phone is vibrating in my pocket !! 
    Upcoming Symbian Anna will just improve the user interface but will not be able to solve these hardware issues.
    If Nokia plans a hardware update facility for N8 users wherein they can fix the signal reception issues and increase the RAM to 1 GB atleast, I would retain this phone for few years.  
    But, now, I intend to switch to Samsung Galaxy S II. 
    Your views solicited.
    Regards
    MODERATOR'S NOTE: This post has been edited as we do not allow the discussion of speculations concerning products or services which have not been officially announced by Nokia.
    I am agree with poor signal issue with nokia N8. I have two cell with one is N8 and other one is N26 with nearly 4.5 year old but at same place Nokia N8 showing very poor quality of network signal compared to N26. So for same network provider with two different cell with same manufacture how can drastic different that is also investing nearly RS.22000!
    Please resolve the issue ASAP.
    Regards,
    Praful

  • Storing carriage return and other special characters in a TestStand variable and passing to LabVIEW

    I am using TestStand step to call a LabVIEW VI that writes commands to a serial device.  The device expects a carriage return at the end of the command.  I can create a constant string in TestStand with the carriage return, e.g., "ATA\x0D" and pass that to a LabVIEW string control which shows ATA\r and the VI works properly.
    To provide consistency and flexibility in my code, I want to store the terminator character(s) in a TestStand variable.  However, when I try to use an expression to create the command string, i.e. "ATA" + "Locals.Terminator", where Locals.Terminator is set to "\x0D", my LabVIEW VI string control shows "ATA\\x0D" which doesn't work.  And when I try Locals.Terminator set to "\r", the LabVIEW string control shows "ATA\\r" which doesn't work either.
    Is there a way to store special characters in a TestStand variable and pass them to LabVIEW as special characters?  I saw in another post that if you edit the TestStand variable by pressing Cntl-Enter, it will store  the newline \n properly and it can be sent to LabVIEW - that works for me as well for \n.  But  I need to send a carriage return.
    I've attached my test sequence and the corresponding LabVIEW VI with a string control.
    Hans
    Attachments:
    Special Chars.seq ‏27 KB
    String Passing.vi ‏13 KB

    Hi Hans, 
    Thanks for your detailed explanation and examples.  In TestStand, change the String parameter's String Type to Binary String instead of ASCII.  Then it will pass the desired value.
    Cheers,
    David Goldberg
    National Instruments
    Software R&D

  • I meet a lot of 3G signal when a call signal disappears 3G! I read the manuals and anything I find the problem! I do so with other brands and other cell does not, the same goes when I receive a call!

    I meet a lot of 3G signal when a call signal disappears 3G! I read the manuals and anything I find the problem! I do so with other brands and other cell does not, the same goes when I receive a call!

    Who is your carrier?  Are you actually on 3G?
    Do you have 3G turned on or off?  Settings > General > Network > Enable 3G

  • Large applications - Labview and other programming languages

    Hello Labview Users,
    as the forum saw this very interesting thread about large applications programmed in Labview
    (see: http://sine.ni.com/niforum/niforum?requireLogin=False&forumDU=http://forums.ni.com/ni/board/message?... ) I would like to ask the community about their experiences with Labview applications in combination with other programming languages.
    In advance: I have several years of experience in programming Labview applications starting from quick-and-dirty solutions which had to run within few hours and complex test solutions. I saw Labview growing and becoming better with the released versions and lot of things I missed in former times got implemented in the meantime. Actually I have to develop a complexe ATE solution with numerous equipment to control and numerous data to be captured and archived. Despite the Verison 8 I still feel still some drawbacks of the LV concept which let me hestitate to setup the solution completly in Labview:
    1) It is alway hard to re-use code of complex applications since it is not possible to do some kind of global search an replace of functions
    variables etc. It nearly impossible to re-use approved code structures (e.g a state machine) if the "inner part" is changing more the a little bit.
    2) If the application requires a certain flexibility (e.g. exchangeable test equipment of varying vendors) this is hard to implement since you have to define a lot of parameters through your hierarchy if you dont want use global variables which slow down your application and hide
    the code functionality.
    3) Despite modern PCs the look and feel of LV applications appears somewhat slow compared to other applications. For complex user interfaces the polling methode generates a lot of complex code. (I dont have expierence with the event-structure).
    Now my questions:
    Do you have experience of implemention of complex solutions dividingthe code modules using Labview and other languages? Which other
    languages did you use? Why did you use these languages (speed, flexibility of text based code, available library functions)? Did you found out this to improve your development time and code maintainibility?
    (I concider a solution where I do the single tests with Labview-VIs but delegate all the test sequencing and data collection stuff written in PERL which allows really very compact code)
    I'm curious what your experiences are.
    rainercats

    Given that you're asking these questions in a forum for LabVIEW users the opinions given are going to be somewhat slanted towards the general like of LabVIEW. I've been working with LabVIEW for a long time, ever since 2.something on a Mac. I've written numerous large-scale applications as well as "mundane" instrument drivers. As you've noted you're experienced with LabVIEW, so you know some of its strengths and weaknesses.
    To address your specific questions:
    (1) Yes, that has always been a limitation in LabVIEW, but I don't believe it is an overriding one to choose C over LabVIEW. Putnam provided one workaround for the search and replace of VIs. Once you've programmed in LabVIEW long enough you get used to doing it this way. Is it clumsy? Yes. As for the re-use of code structures, that's not entirely true. You can create a "template" VI (a regular VI, not a .vit) that contains the code you want to re-use and place in your palette with the "Merge VI" option set. That way you can select it from your functions palette, plop it down on your diagram, and you get the "template" VI's diagram placed right into your new VI.
    (2) This is not something that is specific to LabVIEW, as this exists with any programming language. It's not the language that limits you here, it's how you've designed your code. In a language like C++ you would go with classes. You can do the same thing in LabVIEW. IVI is another option (though not preferred by me).
    (3) As Putnam mentioned, you should be using the event structure.
    Other thoughts:
    The biggest strength I see with LabVIEW is that each VI is a miniature program, which allows development and debugging of functions a snap. With a language like C you have to write another program to call that function in order to debug it. The biggest weakness? I would say user interface. Yes, even with the event structure. Don't get me wrong, the event structure has vastly improved the way user interfaces and event handling in general are done with LabVIEW, but it simply doesn't hold muster to a program written in C or VB. ActiveX anyone? LabVIEW still doesn't do ActiveX properly in terms of actually getting the controls to work. Programming ActiveX controls is just plain aggravating what with all the property nodes taking up so much diagram space.
    It certainly makes sense to use the best tools available to you to get the job done. In my recent projects I had to write software to run automated tests on some products my company made. The test modules were written in LabVIEW. The tests executive was a proprietary engine driven by a SQL Server database. I had to write a "wrapper" DLL that interfaced between the LabVIEW code and the executive since the executive hadn't been designed to call LabVIEW DLLs directly. This allowed us to use LabVIEW as the preferred language for developing the test modules and let the guys who were fiddling with the test executive do their bit. Of course, TestStand's premise is basically that.

  • Cannot connect to Net, have done for last 12 months no problem, I have other apple products that are connecting to the same hub happily. The hub is seen and the signal is strong, it just doesn't connect. I have reset the network settings with no joy.

    cannot connect to Net, have done for last 12 months no problem, I have other apple products that are connecting to the same hub happily. The hub is seen and the signal is strong, it just doesn't connect. I have reset the network settings with no joy. Any help much appreciated?

    Try restarting your WiFi router by removing power to it for 30 seconds.

  • How to Communicat​e data between two applicatio​n (One in labview and other in C)

    Dear all i have two independent application running on same PC. One a C program & a Labview application.
    C program will pass some parameters to Labview application and waits for responce back from Labview.
    Labview should wait for data from C Program and when it gets that, it should process it and should return it back to C program....
    How a program can be made in labview to receive a data form Other appliaction
    I am using Labview 7.1.
    Abhimaniu

    This kind of communication works the best when the LabVIEW code is compiled into a DLL.
    In C you could call the DLL and the DLL would return the calculated values.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • LabVIEW 2009 causes CAD and other dongle programs to fail

    Hi all,
    I have just had a customer say that our LabVIEW 2009 application has stopped their CAD and other software with dongles from working.
    Apparently it is due LabVIEW sharing the same (security?) port as something.  They mentioned there was a LabVIEW patch?
    They have been forced to remove our application.
    What do we do?
    Thanks.

    Battler,
    I did some looking into that Article you linked and found out  that a few things have changed for LabVIEW 2009. For instance, I can not find those registry keys on my computer that the document suggests to change. Instead, Have you customer create the following directory:
    For Windows XP: C:\Documents and Settings\All Users\Application Data\National Instruments\Logos
    For Windows Vista: C:\ProgramData\National Instruments\Logos
    In that directory have them make a file called Logos.ini. In that file have them place the following:
    [logos]
    Global.DisableLogos=True
    Global.DisableLogosXT=False 
    This will disable the old logos service and make sure the new LogosXT service is running. This may be the LabVIEW 2009 equivalent fix of that document you sent me as it seems that the Logos service is what the USB Dongles are conflicting with.
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • I am trying to detect signal peaks (derivatives of the peaks both +ve and -ve peaks). simultaneously 2 peaks detectors are running, 1 for +ve and other for -ve peaks.

    i am trying to detect signal peaks (derivatives of the peaks both +ve and -ve peaks). simultaneously 2 peaks detectors are running, 1 for +ve and other for -ve peaks. when a peaks get detected it would trigger a pulse of approx 1 sec duration and at the same time it would disable the other peak detector for 1 sec time duration. after the time period, again both the peak detectors would be enabled. i have been able to detect both peaks but still not able to control the detectors block the way mentioned before.
    the code and the data are attached.
    Attachments:
    eog peak detection.vi ‏192 KB

    I'm not suggesting any of this as a model, and your needs are different than mine.
    1) Go to Preferences -> Audio.  Under "Default Audio Tracks", Set "Mono Media: Mono".  Set "Stereo Media: Mono"  (Choices from the pull-down for both are Use File, Mono, Stereo, 5.1, Adaptive)
    You can change these, but I don't. I am using both mono and stereo tracks. I set up a custom sequence with the particular combination of stereo and mono tracks I want.
    2) Set audio for clips by selecting all clips and going to Modify Clip -> Audio Channels Tab.  Under "Number of Audio Tracks" there should be a "1".  Under Channel Format it should read "Stereo".
    I am not sending the audio to anyone else to edit further. I am doing a final stereo mix. If camera one is set up to record 2 mikes as a stereo track, then I leave that unchanged and put it onto a stereo track. If camera two is set up to record one mike onto channel 1 as ambient sound and channel 2 is a mono feed from a sound board, then I modify those clips as Preset Mono, 2 audio tracks, Channel format Mono, and that puts the left source channel (or whichever I choose) onto Audio track 1, channel 1 (of one), and right source channel onto audio track 2, channel 1.
    4) Delete all the existing audio tracks in the sequence and replace them all with mono tracks, so all tracks in the sequence are mono.
    I modify the tracks while creating the sequence, and ultimately use a custom sequence.
    Under my Effects Controls panel there is only Channel Volume, and nowhere to adjust the pan.
    I'm using the mixer, not the effects control panel.

  • Using excel to generate signal in labview

    Hi there
    I am having a trouble in generating a signal in labview using excel and then plotting it as waveform.
    In excel file, I have 2199 rows and 9 columns with time in second and I want to plot time against other columns except column 1. In rows, I have text in first one.
    Any help much appreciated.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Data File Modified.xlsx ‏554 KB

    smercurio_fc wrote:
    You haven't shown us any code, so we don't know which columns you're using. However, you should be aware that Excel and LabVIEW use different epochs: https://decibel.ni.com/content/docs/DOC-8733.
    Thanks smercurio the link appears to be broken so anyone who tries just remove the "." at the end.
    The best solution is the one you find it by yourself

  • How to make PWM signals In Labview 7.1

    How to make PWM signals In Labview 7.1, Could someone give me .vi for examples. Thank you.

    There is a shipping example that shows PWM if you have installed
    NI-DAQmx.  You can open the example through Help >> Find
    Examples >> Hardware Input and Output >> DAQmx >>
    Control >> General PWM-Counter Output VI.
    Good luck!
    Micaela N
    National Instruments

  • Want to input interference signal in labview + perform bandpass filtering/demodulation

    Hello to whom it may concern,
    I have a fiber-based OCT system linked to a Tektronix TDS 2024B digital oscilloscope, with which is showing the interference fringes of the low-coherence lightsource. The signal is linked to the computer using the NI DAQ Board USB-6251. I want to input the fringes using Labview and not only that, but to perform a high-pass filter command, along with an active full-wave rectifier and a lowpass filter to see the group velocity of the interference pulse. Now I am new to using Labview so this question be a little elementary, however I am struggling here. Any helps are greatly appreciated.

    Hello!
    Basically  you will need to measure a signal in LabVIEW and then perform some processing on it. First I suggest, if you haven’t, getting familiar to LabVIEW and DAQmx that are basically what you will use for acquisition. For processing, you might find useful some toolkits we have for filters and signal processing. I’m linking information on these subjects, if you wish, you can download them in evaluation mode and take a look at the examples on how to use those functions.
    NI LabVIEW Digital Filter Design Toolkit
    NI LabVIEW Advanced Signal Processing Toolkit
    Getting Started with NI-DAQmx
    Getting Started with LabVIEW
    Regards,
    Alina M

Maybe you are looking for

  • Creation of new movement type and transaction code

    Hi As per my business requirement i want to create new movement type 911 in  1M and how to assign to transaction code MIGO and if possible can some body can guide me with configuration. With regards G Narendra kumar

  • Link to a file in a drop down menu

    Hello I have about 30 Pdfs to upload to my website, instead of just listing them I wanted to use a drop menu. I have worked out how to create the menu, but I don't know how to make the items active. So that when you click on them a PDF automatically

  • What Are You Playing Right Now Thread

    Hey guys! Let's start a good conversation! Thread topic is very simple which is... What Are You Playing Right Now? > Give a short overview about the game you are playing or is hooked right now. > Give your recommendations to other members (good and b

  • How to create a control with two terminals?

    Hi there! I need to create a control that has got to terminal in the diagram window. The terminal must not be connected to each other by wire but the both must respond to the control instruction the same way. Is that possible to be done? Thanks Tiano

  • App-V Server : Changing Package Name through Powershell.

    Hi, Is it possible to change the package name through powershell ? Here is the sequence i tried which didn't work...  $package=Get-AppvServerPackage -PackageID ""  $package.name="<new name>"  Set-AppvServerPackage -AppvServerPackage $package And also