How could I do a thread with Labview?

I'm doing a VI with inside a calling to a SubVI. How could the Top-level VI works meanwhile the subVI is working? The top-level VI has to work like a thread because it takes measures from the serial port calling a C DLL, so when I call the SubVI it has to take measures continuously (the VI shows a graph of the measures).
Thanks in advice
Davide

If you go to the VI Properties, under the Execution menu selection there is a pop-up for setting the Preferred Execution System. This is as close as you can specifying a thread in LV.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • How can I record a video with LAbview?

    Hi,
    I have a question: How can I record a video with labview?
    I have a camera (AXIS 221) connected via rj45 on PC. I see the video of the camera in a browser.
    And I would to acquire the video in labview.
    Could someone help me?
    Thanks
    Raf

    Unfortunately I haven't any experience with this camera. Iguess, you should install API, then crete new VI, place ActiveX container (palette Container->ActiveX) on the Front Panel, then right mouse click, then choose Insert ActiveX object..., then found you camera object and select it and press OK. Then you probably can see image from the on the front panel. Also probably you will be able to get image data in array (how easy is it - depends from the camera API).
    If you able to see image from camera in the Internet Explorer, then another method - you can put Microsoft Web Browser as ActiveX object, then you should also see the image. Disadvantage of this method - you will be not able to get image data.
    Andrey.

  • How do i run two threads with different sleep times?

    How do i run two threads with different sleep times?
    Ive got thread A and thread B, they both update a jpanel.
    They both start when i press the start button.
    However thread A updates every 250ms and thread B updates every 1000ms. i cant just run them both at 250ms becuase this will mess it up.
    So for every four runs of thread A i want thread b to only be run once
    Does anyone know how to do this?
    Thanks, Ant...

    ok, ive done it but now i cant stop it!
    ive added buttons to start and stop, the start button works but the stop button doesnt. why doesnt "t.stop();" work?
        public void run() {
            while(t == Thread.currentThread()) {
                System.out.println("No " + t.getName());
                if (t.getName().equals("1")){
                    try {
                        t.sleep(1000); // in milliseconds
                    } catch (InterruptedException e) {}
                } else{
                    try {
                        t.sleep(250); // in milliseconds
                    } catch (InterruptedException e) {}
        }

  • How can i use multi threading in labview?

    i want to run a Digital storage oscilloscope and an energ ratio meter simultaneously using labview. i am using GPIB interfacing and windows XP. how can i do this using multi threading. Bot the instruments shd run and give data at the same time.

    You can't do this - at least not with a single GPIB board. It has nothing to do with threading or LabVIEW. There can only be one talker at a time over the bus. Depending on the instruments, you could probably set them up to take measurements simultaneously but you have to sequentially poll them to get the data.

  • How to compile COM 1 data with LabVIEW?

      I have a device connected to my COM 1 port. How do I input data with that into labVIEW? The program that comes with it is really elementary, it only shows me the data that the comes straight from the device, no analysis.  Its like labVIEW and MAX dont recognize the device, but my device manager says its connected and works fine. How do i input that data and compile it with labVIEW?

    Much better
    MAX will not detect instruments connected to a com port. The reason is that there is no standard for serial instruments (unlike GPIB). You should only have your com port listed in MAX. If the instrument is listed in your device manager, then it sounds like the driver you got with the instrument is a little weird. It may be that the driver software has taken control over one of your serial ports. Normally, all you would have to do is use the serial functions on the Instrument I/O palette. However, if the instrument driver has taken control of the com port, you won't be able to do this because the OS will only allow one process access to the port at any one time. You can test this by trying to open a Hyperterminal session to the com port. If you can an error indicating that the port is in use, then that's the driver running in the background. You can uninstall the driver and everything should be okay. You could also try to use the driver as provided. I'm assuming it's a DLL. You could call the functions in the DLL with the LabVIEW Call Library Node function. You will need documentation from the vendor on the DLL in order for this to be done. It's probably simpler, though, just to use the LabVIEW serial functions. You would still need the command set/syntac from the instrument manufacturer in order to communicate with it.

  • How to make a Web Page with Labview?

    I have a Project: CONTROL A CAMERA OVER INTERNET (with Labview)
    i try to make a Web Page but it s very difficult for me.I have Labview 8.6 and Internet Toolkit.
    Why can i make a simple Web page?
    Why can i control the camera over Internet?
    Thanks...

    This thread is quite old but there is a new answer that might better suite your needs... So, for those who are looking for the answer, have a look at WebPager plugin for LabVIEW here: https://labicom.net/labdeveloper/WebPager/ . It will make much better job (in most cases) than Remote Panels and Web Services suggested above. The only difficulty I see in your request is a 'camera' word. With WebPager you'll be able to control it from the browser (without any plugins or similar things), but the video image itself will pose problems... Still, it can be tackled. 
    =========================
    Igor Titov, CLA
    WebPager - put LabVIEW front panels into the web page
    Labicom.net

  • How to calibrate analyseur HP 8753E with Labview??

    ghabri
    Envois : 1
    0 Compliments
    Driver instrument pour la calibration du HP8753E sous labview
    Driver instrument' for the calibration of HP8753E in labview
    Bonjour,
    Je suis entrain de développer une interface utilisateur sous labview 8,5 pour interfacer un analyseur de fréquence HP 8753E, j'ai pas pu trouver une solution (normalement avec les driver d'instrument) pour faire la calibration du l'analyseur (remarque la calibration peut se faire manuellement mais je doit le faire avec labview)
    j'espére que ma question est claire, merci de me répondre
    Cordialement
    Hello,
    I am currently developing a user interface in labview 8.5 to interface a frequency analyzer HP 8753E, I could not find a solution (normally with the instrument driver) to the calibration of the analyzer (note the calibration can be done manually but I must do with labview)
    I hope that my question is clear, thank you for answering me
    cordially

    duplicate post
    Please do not post the same question on multiple boards.

  • How to switch central frequency fastly with labview and USRP?

    Hello everybody,
             Recently I was making a frequency hopping receiver with labview and USRP N210 and SBX. The transmitter works on the 2.4G band, and it changes from one central frequency to another every 65536us. As I think, if I start receiving at the correct time, and  change the central frequency of the USRP every 65536us, I should be able to receive the data.
        But I find that, when usrp switch form one central frequency to a different one, it spends nearly 48ms and when it switch from one frequency to the same one, it only spends 3ms(I test the performance by modifying the niUSRP EX Rx Continuous Async Reconfig on the Fly.vi example). So if I want to follow the hopping sequency, I may can only receive 17ms data because I have to save time for switching central frequency. 
         My problem is that: why usrp changes central frequency so slow,  how can I make the process faster? If I want to follow the hopping sequency, can anybody give me some good advice? Thanks

    There is an attribute "LO Frequency" that you can use to lock down the frequency of the local oscillator.  Then, when you set the "Carrier Frequency" attribute, the difference between the carrier frequency value and the LO frequency value will be realized by frequency shift in the DSP in the FPGA.  Changing this "digital" frequency shift value is much faster, since you don't have to re-tune the local oscillator.
    Let's say you're sweeping from 2.44 GHz to 2.46 GHz.  Set the "LO Frequency" to 2.45 GHz then Commit.  Then, in your loop, program the "Carrier Frequency" attribute from 2.44 GHz to 2.46 GHz.  In the loop, it will only program the digital frequency shift, which will happen much faster.
    Another tip is to use the property node to program only the attributes you want to change, rather than the niUSRP Configure Signal.vi (which sets many at once).
    For more details, see the "Configuration:Advanced:LO Frequency Property" in the NI-USRP Help, and look at this example:
    <LabVIEW dir>\examples\instr\niUSRP\niUSRP EX Fine-Tune LO Frequency.vi

  • How can I control PIC programmer with LabVIEW

    I need to control a PIC Programmer (MPLAB PM3) with LabVIEW. How to do this?

    Hi Paul.
    I am working on a project that is using LabVIEW to communicate via serial communication with 4 programmers (Com 1, 2, 3, & 4). I am currently using the Microchip PM3 programmer DOS utility PM3CMD.exe to send/receive commands from the system exec.vi in LabVIEW. I am attempting to program simultaneously with 4 programmers, but the PM3 programmers are returning a database error if I try and communicate with more-than 2 programmers at a time. I noticed that you have some experience with some drivers from Microchip and using serial commands.
    Do you have any suggestions that may help me.
    Thanks.

  • How interface N5181A MXG signal generator with labview by using LAN Interface????????????

    hai every one ...i have a doubt how  to interface N5181A MXG signal Generator with Labview by using LAN Interface???? and
    how to find IP Address of N5181A MXG signal Generator????????
    when i connect instrument with labview it shows that no instrument connected and what are the requirements for LAN interfacing with that instruments in labview and please help me?????? 

    You can set the IP Address on the instrument.  You may need to be in the same subnet of your controlling computer, so you may need to set your computer's IP Address to something static.
    Use VISA.  It makes life easier if you decide to use another bus (like GPIB, USB, serial, etc).  In MAX, create a network session with the static IP address you set the instrument to and use that as the VISA Resource.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to open 8.0 vi with Labview 7.0

    i'm using LabVIEW 7.0
    how can i open a vi that was create with Labview 8.0?

    Hi locman,
    without downgrading it there is no way to open it with LabView 7.0. You can post it here and ask somebody if he can help you.
    Mike

  • How could I recorder my screen with Quick k time 7 pro with  OS X 10.8

    How could recorder Mac Screen with quick time 7 pro?

    QuickTime 7 does not exist in Mountain Lion. Not sure if you could even install it from the stand-alone installer. I can't look at the moment, but I believe QuickTime X in ML will do a screen capture.
    Just to note: If you had Quicktime Pro 7 installed when upgrading to either Lion or Mountain Lion, it was relocated to the Utilities folder. It can also be downloaded and installed in Mountain Lion, and it does function.
    It will also do screen recordings, but as others have pointed out Quicktime Player 10 will do it too.

  • How set parameters of AKD driver with LABVIEW ?

    Hi
         I  am looking a simple example to set or read paramaters of AKD driver with Labview .
    The AKD has ethernet communication and the control is analogue - AKD-P00306-NBAN-0000
    I want to use Labview to read the same paramerters like Kollmorgen WorkBench
    Thank you for  you help
    Solved!
    Go to Solution.

    Hi k-usa,
    We use Workbench to access these parameters, and unfortunately for many of them there isn't a way to access them in LabVIEW.  The manual for using the AKD with our C-Series modules (http://www.ni.com/pdf/manuals/375516b.pdf) specifies setting these parameters in Workbench for this reason.  I apologize that there isn't a way to access many of them in LabVIEW.
    Julian R.
    Applications Engineer
    National Instruments

  • How to print a 3D Graph with Labview 5.1?

    I would like know if i can print a 3D Graph with Labview 5.1.

    From NI knowledgebase: "LabVIEW 5.1 includes a 3D Graph control in the Full and Professional Development Systems. Visit the LabVIEW Product page for more information on ordering or upgrading to LabVIEW 5.1. The LabVIEW 5.1 Base package includes a demo version of the 3D Graph control."
    Hope this helps

  • "How to use an Appplicom card with Labview and a Seimens PLC"

    Hi, I am using an applicom card type PCI1500-PFB to communicate with a Seimens S7-300 CPU315-2DP plc. I am using this simply to display in a labview front panel the outputs of the plc and may in the future use switches on the front panel to control the inputs of the plc. How do I do the communication? I have setup the applicam card and have comms with the plc I think. I am trying to use data socket to communicate to the plc via the applicom card. Any suggestions?
    Thanks
    Tom

    There�s a fair bit of documentation on NI�s site regarding the Applicom card.
    The following doc does a pretty good job summarizing Applicom's PCCONF and PCINIT, and the use of ReadWait and WriteWait to ensure you�ve got communication with the between the PLC and the Applicom card:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/5913e03f551de3f786256a32005b4586?OpenDocument
    Since it doesn�t sound like you�re using the LV DSC module, you can stop reading once it gets into connecting to Lookout Objects.
    Once you�re sure you�ve got comm, you can do some quick tests in LabVIEW using front panel datasocket connections as shown on page 11-12 of the following:
    http://www.ni.com/pdf/manuals/323241a.pdf
    From there, it all depends on
    the complexity of your system. If simple, you could just stay with front panel connections, or you could move to programming with the Datasocket Read and Write functions.
    ... and if you get to the point that Datasocket is too slow and cumbersome, you might want to look at the LV DSC module:
    http://ni.com/labview/labviewdsc/what_is.htm?node=10418
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

Maybe you are looking for