Multitasking not working while calling DLL

This is my problem:
I have LV DLL based driver, every function in this driver is
reentrant, every DLL call is reentrant.
I want to communicate with number if instruments via this driver.
So I programatically clone the VI which communicates with instrument.
When I run all cloned VIs in parallel to communicate with all
instruments, the DLL calls are executed sequentialy.
Why there are not able to dynamically generate new threads ?

Greg McKaskle wrote in message news:<[email protected]>...
> > I have LV DLL based driver, every function in this driver is
> > reentrant, every DLL call is reentrant.
> > I want to communicate with number if instruments via this driver.
> > So I programatically clone the VI which communicates with instrument.
> >
> > When I run all cloned VIs in parallel to communicate with all
> > instruments, the DLL calls are executed sequentialy.
> >
> > Why there are not able to dynamically generate new threads ?
>
> It sounds like you have most of the correct settings, but let me review
> them anyway. First, make sure that threading is on in the
> Tools>>Options on the Execution page. It defaults to on, but sometimes
> gets turned off for compatibility with ActiveX or other nonthread
> friendly programs.
>
> Second, you say that your DLL calls are reentrant. If that means that
> the Call Library Function nodes have their checkbox set to show that the
> call can be made reentrantly, and making their color yellow instead of
> orange, then step two is taken care of. Otherwise make this change.
> You also mention that you cloned VIs. If you are using the same VI in
> more than one place on the diagram, they default to making a critical
> section -- allowing only one caller at a time. If you want to allow
> reentrant execution, this is set in VI Properties.
>
> Third, which I think is what is going wrong in your case, you need to
> have enough threads or execution systems to run your VI. You ask why LV
> doesn't generate dynamic threads. The answer is that LV preallocates
> threads that the VI needs to run and schedules nodes on those threads
> according to dataflow. Creating and destroying threads is actually
> quite expensive on most OSes, so that is not the mechanism LV uses.
>
> Here are several solutions for your system. Each VI and subVI can be
> set to run in a particular execution system and at a particular priority
> using the VI Properties>>Execution page. On a single processor computer
> each execution system priority cell defaults to having one thread. On a
> dual processor it defaults to having two, a quad defaults to four. In
> most cases this ends up being sufficient to keep the processors busy
> without causing excessive thread swaps.
>
> In the case where your threads are being consumed by a DLL call and
> therefore cannot multitask with the other dataflow nodes, you can either
> set your VIs to run in the different execution systems, or you can make
> the Standard execution system have more threads.
>
> To set the execution system of a VI, use the VI Properties. To change
> the threads per execution system, open the
> vi.lib/utilities/sysinfo.llb/threadcfg.vi or something very close to
> that name. This VI shows the threads allocated per cell, and hitting
> the config button at the bottom lets you change it. Note that as of LV6
> these numbers are the maximum limit allocated by LV and it doesn't
> allocate the threads in an execution cell until a VI is loaded that
> needs that system/priority.
>
> Now that I've told you how to do it, I'd recommend doing a very quick
> experiment with the execution system settings to see if there is any
> advantage to having multiple threads active. If the various threads are
> sleeping/waiting for hardware, this may indeed allow other threads to
> make progress, but if they are doing a spin-lock or heavy computation,
> there really isn't any benefit.
>
> Greg McKaskle
Dear Greg,
Thank you for your answer. I checked all the setting and I am sure
that I have these settings correct as you wrote. I tried the VI for
changing allocation of the threads, but the number of threads is too
small for me.
If I am right LV maximum thread number is number of preffered
execution system multiplied available priorities (App.Note 114), what
happened and how in threadconfig.vi is clear for you only (this vi is
locked, by the way number of locked vi's increases with LV version
number :-( - why this? )
I have from 50 to 200 points with same instrument on every point. So I
need up to 200 parallely running tasks for communicate with these
instruments via DLL based instrument driver, in every parallel task is
unique instrument session, but calling different functions from the
same DLL. Now I am not able to do it in LabView, only way is to use
LabVIEW native driver, but in this case I loose advantages of IVI
driver. Do you have any idea how to use IVI driver in 200 parallel
tasks?
Best regards
Jiri

Similar Messages

  • Iphone4 speakers not working while calling!!

    Hi
    Can somebody help me?
    My Iphone4 speakers not working while calling only and they work elswhere!!
    I tried to reset the devise with sleep and home buttens but nothing changed?!
    Thx

    Hi
    Can somebody help me?
    My Iphone4 speakers not working while calling only and they work elswhere!!
    I tried to reset the devise with sleep and home buttens but nothing changed?!
    Thx

  • HT1665 i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings if gets any cal

    Hi folks,
    i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings normally if gets any call.
    Can any one help me in this regard??

    Try to reset the phone by holding the sleep and home button for about 10sec, until the Apple logo comes back again. You will not lose data by resetting, but it can cure some glitches after installing new software or apps.

  • On call sound volume is not working while using ha...

    The volume control does not work on call while using hands free on my Lumia 800..is that a known issue?

    Hi,
    this is a JDeveloper and ADF forum, not an OA framework forum. We don't have the "OAGlobalButtonBean" class and thus wont be able to help
    Frank

  • Iphone 6 plus fingerprint is not working while charging

    My iphone 6 plus fingerprint scan is not working while charging. Is this normal?
    I tried my iphone 5s and it works just fine even while charging.

    I think I got an answer to my own question
    If you're using generic lightning cable (non-original lighting cable), the fingerprint scan doesn't work while charging.
    I just find it weird as my iphone 5s works even if i'm not using the original lightning cable though.

  • I am having trouble with my speakers not working while online in particular on windows.My audio works when playing audio files

    I am having trouble with my speakers not working while online particular on facebook. My audio works when playing audio files.

    Hi,
    Did it happen all the time or sometime?
    Please check online browser status:
    Click Volume icon in the taskbar, click Mixer link button as below:
    If it's fine, follow this guide to run troubleshooter to detect and fix the issue:
    Tips for fixing common sound problems
    http://windows.microsoft.com/en-in/windows/tips-fixing-common-sound-problems#tips-fixing-common-sound-problems=windows-7
    Meanwhile, this similar thread also could be referred:
    https://social.technet.microsoft.com/forums/ie/en-US/a4a1cfe5-93a5-4c0b-9bf6-f7db0304f2ba/no-sound-on-youtube-or-any-other-webpage
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Hello I am using Ipad 4 and its charger is not working while I was using it few days before and it was working properly now it says that the cable does not support this Ipad Please Help me out.

    Hello I am using Ipad 4 and its charger is not working while I was using it few days before and it was working properly now it says that the cable does not support this Ipad Please Help me out.

    Try a reset:
    - Hold the home button and sleep/wake button down at the same time. When the Apple logo appears release both buttons then try and charge again.
    If issue persists try:
    - Another known working cable
    - Check the charging port for any damage or debris
    - You could also use a dry soft bristle toothbrush and gently brush it on the port to clean it of any debris that could be in there

  • 1.call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.

    Hi. please solve my problem.
    .call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.3.playback music is not hearing by second partner during the call.4.i cant select ringing ton from saving tons.
    thank you in advance.

    Hi Ersin,
    Exception 1 would seem to be FORMATTING_ERROR, which suggests something in the design of the Smartform.  However, that doesn't fit with the form being generated from a report, but only erroring when called from a function module.  I can think of no reason why the different calling method would be a factor.
    When FORMATTING_ERROR is raise it should also set a message ID and number, are you able to determine what they are?
    Regards,
    Nick

  • The microphone of my iphone is not working on call but when i use viber it is working

    The microphone of my iphone is not working on calls but when i use viber it is working

    Hello there, qasmicomputers.
    The following Knowledge Base article provides some great troubleshooting steps for your issue:
    iPhone: Microphone issues
    http://support.apple.com/kb/ts5183
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Microphone not working while using handset

    microphone not working while using handset
    But it is working when loud speaker is On
    Y
    Wat to do??
    Kindly revert with your comments

     Repair the phone with PCC and report back  PC Companion (PCC)  Bridge (for Mac)   Alternatives on How to backup Xperias http://talk.sonymobile.com/thread/36355  

  • Hp split x2 touchscreen not working while un-docking

    hello hp support, i've recently bought a hp split x2 13-110dx. my touchscreen stops working whenever i detach the screen (tablet) from the keyboard (docking station). if i try to safely remove "Docking Station", first nothing happens and then after about 10 seconds all controls (touchscreen and touchpad) othen the keyboard itself stops responding. a reset allways solves this problem but that means that now i allways have to reset after every undocking. also, if the tablet is working fine, and i dock the tablet, again the touckscreen stops responding (again, reset required) i have done a hard (full) shutdown.i have installed all microsoft updates (i am running win8, not 8.1). what to do?sincerely,matan leilien

    Hi  ,
    Thank you for visiting the HP Forums! A great place where you can find solutions for your issues, with help from the community!
    I came across your post about the Notebook, and wanted to assist you! I have looked into your issue about your HP Split x2 Touchscreen and issues with the touchscreen not working while removed from the dock. Here is a document to troubleshoot the TouchScreen. The section you need is the TouchScreen responds inaccurately.
    Here is a link to the HP Support Assistant if you need it. Just download and run the application and it will help with the software and drivers on your system that need updating. Hope this helps. Thanks.

  • Iphone 5c clock does not work while asleep

    done hard reset updated on and off set automatically time but it works while the device is in use

    iphone 5c clock does not work while asleep
    I have to ask how you know... does it show the right time before you go to sleep? When you wake up?

  • My autofill does not work while using Safari. Have checked both Safari and Apple settings.

    My Autofill does not work while using Safari. I have checked both my Safari settings and my Apple settings but don't know what else to do.

    Hi Eustace....yes, I did reset Safari but it didn't help. I'm running Mac OS X Lion 10.7.5...which might be the problem...my Safari is Version 6.1.1.

  • Soundtrack Pro, with Logic Studio. app will not work, while Garage Band is present on my iMac?

    Still new to Logic Pro. Got the Soundtrack Pro when i bought the Logic Studio. am i to understand that this app will not work, while Garage Band is present on my iMac?
    if this is true, i'd welcome any suggestions.  do i have to delete GarageBand on current machine which has Logic Pro?
    appreciate any help
    thanks,

    My MacPro w/ OSX 10.6.8 runs GarageBand, SoundtrackPro and Logic 9 (Express) without issues.
    Everything was installed fresh - ie no overwrite OS upgrades and no app version overwrite upgrades.
    Just so we are clear - an UPGRADE would be from OSX 5 to 6 or from Logic 8 to 9 and involves a purchase. UPDATES are those decimal increments - 10.6.7 to 10.6.8  or Logic 9.1.3 to 9.1.6 that are free.
    Sometimes the sequence of installs can make a difference.
    Good luck,
    x

  • Java script is not working while coming back to the page.

    Hi Experts,
    I am working in jdev 11.1.1.3.0 with ADF BC.
    I am callling javascript in my jsff, while this javascrip is invoking file download method. this java script i am inovking from another button action, because in some case i need to invoke popup and some case i need to invoke file download for this i have taken one button in that button i am invoking these 2 based on some condition. everything is working fine except if i move another jsff and come back to this jsff then the file download is not happening.
    can any one tell me what is the issue here.
    java script:
    function customHandler(event) {
    var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1")
    var actionEvent = new AdfActionEvent(exportCmd);
    actionEvent.noResponseExpected();
    actionEvent.queue();
    java bean:
    if(downloadFile!=null){
    System.out.println("invoking downloads...............................");
    erks.addScript(context, "customHandler();");
    } if (requestClause != null){
    System.out.println("invoke popup");
    executeSactionCheckVO(requestClause);
    ADFUtils.invokePopup(this.getP2().getClientId(FacesContext.getCurrentInstance()));
    Here my bean is in backing bean scope.
    can any one help what may be the issue here. or if you can tell me how to call file download method from backing that can be great help full to me.
    Edited by: user5802014 on Aug 27, 2010 1:52 PM

    Hi:
    So it's the "erks.addScript(context, "customHandler();");" may not work properly the next time coming back from another jsff.
    And very likely the statement of: var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1") in your javascript command gave you error. Are you sure that "pt1:pt_resion0:1:cb1" is valid all the time no matter how the page is rendered?
    Please mark my answer as 'Helpful' if it helps.
    Thanks,
    Alex

Maybe you are looking for

  • Goods Receipt Value line item wise

    Hi Experts, My client wants show Goods Receipt Value line item wise at the time of GR entries. He wants show GR Value before saving the GR document. Please advise me how it is possible. Thanks in advance, Chandhu

  • Vibrate / Silent function has a mind of it's own!

    Hi guys and gals, OK so I've signed up as I've just discovered a fault with my iPhone3 3GS, done a bit of googling and found others have had the same problem, wanted to see what you guys thought of it. I bought the phone August 2009 brand new. After

  • Cannot create a new site while a VD/code works in Default site. IIS 7.5 Windows 2008r2 64 bit system

    We are moving from CF8 to CF11, windows 2003 to windows 2008 r2 64bit, IIS 6 to IIS 7.5. When I have my code as a VD or placed in the wwwroot, in the Default website, the site works OK but when I create a new site pointing to the code,placing in a di

  • Best quality audio option for Ipod classic

    Hello to everyone, I got a 160 Ipod classic as a present and I dont have previous experience. I am choosing the best way to import the CD collection and came to this 3 choices, after doing some research in the web -AAC at 320. I have a trained ear an

  • 2LIS_02_HDR

    hi Im doing new BW Implementation to one of client.Im trying to open the 2LIS_02_HDR in LBWE in R/3SourceSystem(ECC6.0). But it is asking for the request number. why it is asking for that one . Pls tell me how can i do this i will assing the points k