Method to check the VISA resources is ready for writing.

Dear Forum, I have a piece of equipment that I connect to LabView via serial. The companion of the Instrument is of course completely useless, which fails for inexplicable reasons, but everything works perfectly in hyperterminal.

When I try to adapt the example "basic series write and Read.vi" at my request, the implementation is very simple. However, it does not work despite working in hyperterminal. After a bit of investigation, I have determined that the problem is that after "VISA set up Serial Port" port is not * actually * available for writing quite yet, most likely because it is a very old computer.

By inserting a delay between the "VISA set up Serial Port" and the "VISA Write" I am able to get the program works as expected 100% of the time. However, it is a very bad solution, because this long delay can be totally useless and performance on the computer to an end user (which may be much better than this one). Especially because this piece of equipment has 8 analog inputs, 8 analog outputs, 4 relay, 20 outputs 24VDC, 8 DIOs and 3 ports RS232 passthrough so it communicates a lot of data.

Is there a function I can use to * guarantee * that the COM port is really ready for writing? If I could do this, then it can return almost immediately on a fast computer, while leaving enough time for computers slower finish opening the port. It may well be something that happens on the side of the pilot of the command windows open port.

It comes to LabView 8.20 running on a Windows XP in VirtualBox on Linux host. Please don't just tell me that I shouldn't use virtualized Windows, I am sure that this problem occurs for the disabled of old material as well as it is the only significant in terms of series API difference. The virtualized instance is only likely to be more slow material dealing with than it would be otherwise.

You can get information on the creation of an Instrument Driver Networkdriver.

If your instrument does not return an ID and you can not do a reset, then obviously your initialize function would not code for this. Having the code that defines the instrument on certain default configuration is common.

I don't know how this driver is intended to be used. Do you want that he NOR certified. The driver needs to be distributed outside of your company? It seems that the problem with your com port is unique to your pc and the installation program. How many times this would appear to other users?

Tags: NI Software

Similar Questions

  • drive not ready message "the drive is not ready for use check the a drive, etc.".

    as soon as I connect my camera to transfer the photo I get following message

    The drive is not ready for use: the door can be opened. Please check the a drive; and make sure that a disk is inserted and that the door is closed.

    I can't get rid of this meaasge if I have to cancel it reappears 10 seconds later it just won't close very boring

    Hello

    What is the number and the model of the computer?

    You have the computer floppy drive?

    Were there any changes made on the computer before the show?

    Follow the steps:

    Method 1:

    Remove all external devices connected to the computer such as printers, scanners and external USB hard drive and check if the problem persists.

    Method 2:

    Check the BIOS setting and also, I suggest you to update the BIOS. To update the BIOS, contact the manufacturer or the manufacturer of the access Web site.

    Note: Change (CMOS) BIOS/complementary metal oxide semiconductor settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

  • What file should open to check the WINS resource record syntax in the %windir%\system32\dns folder?

    What file should open to check the WINS resource record syntax in the %windir%\system32\dns folder?

    A moderator to move this thread Windows Networking and online Forum

    Hi, StuckFree,

    If you have encountered any errors:

    Error message

    http://msdn.Microsoft.com/en-us/library/ms855018.aspx

    Managing MS WINS servers

    http://www.Microsoft.com/resources/documentation/windowsnt/4/server/reskit/en-us/net/sur_dns.mspx?mfr=true

    Other questions should be posted to the Forum Microsoft TechNet Windows Server

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • Yahoo messinger does not start, he said: "the application failed to start because its side-by-side configuration is incorrect. Check the log of events applications for more details. » __

    Yahoo messinger does not start, he said: "the application failed to start because its side-by-side configuration is incorrect. Check the log of events applications for more details. »

    UM. I have no idea what that means, I never had that in my 20s I was using a computer.  Please help, someone!

    You can get the Chkdsk to run in the General Windows interface by following these instructions?

    Try running ChkDsk to check your drive for errors. Right click on your drive icon / properties / tools / error checking. Try first by checking do not each box (that it will run in read-only mode) to see if it reports any problems file or hard drive. If so, restart it by checking both boxes and restart to allow him to attempt to fix any problems found.

    Your command prompt Mode works without failure or a boot?

    Startup options (including safe mode)
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

    It works if you test with another user, you will need to create one to test with?

    System Restore and the System File Checker is able to fix anything?

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista (or 7)
    http://support.Microsoft.com/kb/936212/#appliesTo

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    How to analyze the entries in the log file generating the program Checker (SFC.exe) resources of Microsoft Windows in Windows Vista
    http://support.Microsoft.com/kb/928228#appliesTo

    Have you tested malware?  I see a lot of recommendations here for programs such as -

    Malwarebytes' Anti-Malware
    http://www.Malwarebytes.org/products/malwarebytes_free

    SuperAntispyware
    http://SUPERAntiSpyware.com/

  • When I opened e-mails. doc or pdf, this message appears: "the application failed to start because its side-by-side configuration is incorect. Check the log of events applications for more details. »

    Original title: side-by-side configuration is incorrect

    When I opened, try opening some emails. doc or pdf, this msg appears: "the application failed to start because its side-by-side configuration is incorect. Check the log of events applications for more details. »

    I'm going to log events, but how to solve the problem by putting the RIGHT configuration to?

    Thanks in advance

    Hello

    1. when the question is is produced?

    2. you remember of any change to your computer before the problem?

    3. are you using a 32-bit operating system or a 64-bit?

    Please visit: What are the information in the event logs? (Event Viewer)

    In the meantime, follow these steps and check if they help.

    Step 1:

    I suggest you install the Visual C ++ 2005 Sp1 Runtime and check if the problem persists:

    Microsoft Visual C++ 2005 SP1 Redistributable Package (x 86)

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=200b2fd9-AE1A-4a14-984d-389c36f85647&displaylang=en

    Step 2:

    If this does not resolve the issue, I would have you done SFC scan on your machine to check if the problem is related to missing or corrupted system files.
     
    Aziz Nadeem - Microsoft Support
    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Messenger: The application has failed to start because its side-by-side configuration is incorrect. Check the log of events applications for more details. How to fix?

    My Messenger was working normally, then I shut down my computer at lunch. In return, I turned it the Messenger wasn't working and this appeared:

    "The application failed to start because its side-by-side configuration is incorrect. Check the log of events applications for more details"

    Can someone help me to fix it? Thank you.

    Hello

    they will help you with your questions/problems Messenger when repost you the link below in the Messenger forums

    http://windowslivehelp.com/product.aspx?ProductID=2

  • Force linked Clones to check the live servers to KMS for Activation

    Hi all.

    Apparently, linked clones will check the KMS server that was used to activate their master gold.

    (Centre of Documentation of VMware View 5.0) - Note This is display 5 documentation, but we use 6.1 view now.

    " For the approval of KMS, View Composer uses the KMS server that is configured to activate the virtual machine parent. »

    It is a problem if the KMS is taken out of service, or generally a problem - all the linked clones fail to activate.

    How can we prevent the clones related to use the same KMS server?

    How can we get the clones related list and choose the first KMS server, which is returned by the DNS SRV records?

    Thank you

    Update:

    High level of the DNS entry works very well.

    • We have added a DNS record called kms.domain.com that uses repetition alternate for our KMS server two.
    • We made the VM Golder Master point to the folder. slmgr.vbs /skms kms.domain.com:port
    • We rode to the top of some related clones.
    • Check where the clones linked when pointing to slmgr.vbs /dlv- both pointing the DNS record and not a specific server.
    • Made a second activation and performed a capture of packets at the same time slmgr.vbs /ato

    We found that the clones related to different servers and respond accordingly.

    The same thing can be done with office by using the ospp.vbs script (although different switches).

  • «the cpu fan works not.» Check the fan connections and call for service. »

    I was wondering if a failure of different from 'CPU fan has failed... system in a few seconds will stop. " I have an office of DX - 2000 P4 under XP SP3 that I just changed the motherboard and CPU fan on. All the fans are running at about the same speed. (P/S, chassis and CPU). Not very fast but cannot see the fins. Computer sat for several years. I was wondering what is the real test and how the fan speed is controlled. I suppose that temperature sensors built into the cpu, somehow, there must be a variable voltage applied to the fans to change their speed and/or a measuring device to see what is their RPM. This must be controlled by the BIOS as is any pass/fail test. My next step is to replace the old fan and see what happens. I have a new p/s to install should be here today. Actually used, but cleaned up and tested. Economy of cleanup. Not sure if my older diet could be the cause of the issue with low Volt.

    If the fan is slower than the factory fan, you will have this problem.

  • How can I get the VISA resource menu dropdown to be filled in my stand-alone (exe file) application automatically?

    Hi all

    Here's a simple question, if all goes well.

    I am building an application (i.e. an exe file) in a simple program that VISA allows to read and write in a RS-232 com port. When I run it before you build the application, everything works correctly and resources VISA control, which is a drop-down, menu is automatically populated with the ports available com. When I run the application on a computer without LabVIEW installed nothing appears in this window. I made an installer which includes NI LabVIEW 8.5 engine, OR Measurement & Automation Explorer 4.3 and NOR-DAQmx 8.6.1. Is there anything else I need to include? All specific settings I should do when I build the exe file?

    I use LabVIEW 8.5.

    Thank you.

    DAQmx is only for the DAQ cards of OR so I do not know why you have installed that. The driver for VISA applications is NI-VISA (surprise!)

    Add the NI-VISA run-time driver to your Installer.

  • Script to check the correct resource pools

    Hi guys

    Hoping someone can help with PowerCLI issue?

    I want to set up a script PowerCLI who together share CPU and memory allocated to all VMS in each Resource Pool, add them together and compare them with resource information in the list of resources and those who differ from a CSV output (including how on every property is different).

    The idea is that this script will quickly check through our vast domain for incorrectly configured in the resource pools (ie. those who have not been updated).

    Anyone able to help give advice on how I can get that data into PowerCLI from the pool of resources and the virtual computer?

    Thank you very much

    -


    a crazy penguin

    http://www.acrazypenguin.com

    I don't know if the values you provide are correct for what is planned.

    Especially the MaxCpuUsage won't say much because this will normally reflect the total amount of CPU resources on the host (provided that the customer has no defined limits).

    The following should give a better picture (I guess)

    $dcName = 
    $report = @()
    $dc = Get-View -ViewType Datacenter -Filter @{"Name"=$dcName}
    Get-View -ViewType ResourcePool -SearchRoot $dc.MoRef | where{$_.Name -ne "Resources"} | %{
         $rp = $_
         $rpMem = 0
         $rpCpu = 0
         Get-View -ViewType VirtualMachine -SearchRoot $rp.MoRef | %{
              $rpMem += $_.Summary.QuickStats.hostMemoryUsage
              $rpCpu += $_.Summary.QuickStats.overallCpuUsage
         }
         $report += New-Object PSObject -Property @{
              Name = $rp.Name
              "VmCpuTotal (MHz)" = $rpCpu
              "VmMemTotal (MB)" = $rpMem
              RpCpu = $rp.Runtime.Cpu.UnreservedForVm
              RpMem = $rp.Runtime.Memory.UnreservedForVm / 1MB
         }
    }
    $report | Export-Csv "C:\ResPool.csv" -NoTypeInformation -UseCulture
    

    Note that this does not overcommitment account. To have the script must use the unreservedForPool rather than the UnreservedForVm property property.

  • How to pass the Visa Resource Name parameter to labview dll in labwindows/cvi

    Hello world

    I build a dll of labview, the prototype is: double getchannelpower (double f, uintptr_t * VISAResourceName);

    I don't know how to go from VISAResourceName to this function.

    Is it related to the ViPSession paremeter in function viOpen(REES ViSession, rn ViRsrc, ViAccessMode am, ViUInt32 ti,ViPSession vi)?

    BRs,

    lotusky

    Hey, guys:

    I figured out how to pass the parameter.

    In labview, you must replace the control of visa with string control. In this way, the generated dll function at the entrance of the string type.

    I hope this will help others!

    lotusky

  • How to check the link sneak is going for a sql

    Hi team,

    11.2.0.3.5, RHEL-6 on 64-bit, 2-node RAC.

    We have been continually facing performance issues after upgrade to 11 g. SQLs were very good when we are in 10g and they began to follow not optimized plans. I heard that "automatic cursor sharing" is enabled by default in GR 11, 2. But how to check, if a sql stealthily to its dregs id? Can someone share the query if you have?

    And also, all the links in this regard suggest me pls.


    Thank you

    Hari

    (PS: I posted a query even under performance tuning task, but publish again for immediate assistance).

    David s thank you :-) I'll take a look.

  • When the VDR will be ready for download?

    Hello

    is this the same date as vpshere 4?

    Thank you.

    In my view, it may be available at the time vSphere is out, this is the part of the company liked, advanced and essentials more or purchased separately (http://www.vmware.com/products/data-recovery/buy.html).

    Here are a few FAQS basic product: http://www.vmware.com/files/pdf/VMware_Data_Recovery_FAQ_4.21.09.pdf

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Check the table in its entirety for collision? How? AS 2.0

    Hello!

    I make a flash game with Actionscript 2.0 and that you have encountered a problem.

    I have this _root.bulletArray = [] statement that stores all my clips that have been created with attachMovieClip. I was able to store all the balls in the table because when I say that it trace the table I get the following text:

    _level0.bulletCopy39
    _level0.bulletCopy39, _level0.bulletCopy43
    _level0.bulletCopy39, _level0.bulletCopy43, _level0.bulletCopy47
    _level0.bulletCopy39, _level0.bulletCopy43, _level0.bulletCopy47, _level0.bulletCopy51
    _level0.bulletCopy39, _level0.bulletCopy43, _level0.bulletCopy47, _level0.bulletCopy51, 0.bulletCopy55 _level
    _level0.bulletCopy39, _level0.bulletCopy43, _level0.bulletCopy47, _level0.bulletCopy51, 0.bulletCopy55, _level0.bulletCopy59 _level
    _level0.bulletCopy39, _level0.bulletCopy43, _level0.bulletCopy47, _level0.bulletCopy51, 0.bulletCopy55, _level0.bulletCopy59, _level0.bulletCopy63 _level

    and etc...

    But how to detecting the collision with ALL the balls?

    I have a movieclip that bears the name of the instance: enemy

    I wrote the following:

    If (_root.bulletArray.HitTest (_root. Enemy))

    {

    trace ("hit")

    }

    It dosent work, notihing is traced in the command thing.

    But if I do the following:

    if(_root.bulletArray[1].) HitTest (_root. Enemy))

    {

    trace ("hit")

    }

    then it will detect the collision, but only of this ball, not the range of the bullets.

    Any help is very appreciated! = D

    -NOTE-

    I also tried the followign without success:

    If (_root.bulletArray [1,2,3,4,5,6,7,8,9,10]. HitTest (_root. Enemy))

    {

    trace ("hit")

    }

    You must use a loop to go through the element of a table in its entirety at a time...

    for (i =; I

    If (_root.bulletArray [i]. HitTest (_root. Enemy))

    {

    trace ("hit")

    }

    }

  • Check the box of a CASE for a Collection of Apex statement

    Attempt to use a case statement to determine the day of the week in the field of LINEITEM_DATE2, then
    Place the REG_HOURS in the new columns in the collection representing the days of the week.
    The case statement below (in bold) just doesn't. I even tried when a simple and hardcode
    a value. So is it possible that way?

    I / P looks like this___
    ATT_CODE REG_HOURS LINEITEM_DATE2
    P 4 JUNE 14, 10
    P 8 JUNE 16, 10
    P 2 JUNE 14, 10
    P2 8 15 JUNE 10

    Collection of the O/P should look like this___ (light version)
    ATT_CODE Monday Tuesday Wednesday
    6 8 P
    P2 8

    declare
    date of V_DATE;
    Monday varchar (4): = '0';

    Start

    If htmldb_collection.collection_exists ("TIMECOLLECTION") = FALSE
    then htmldb_collection.create_collection (p_collection_name = > 'TIMECOLLECTION');
    commit;
    on the other
    C1 in (select collection_name, seq_id)
    of htmldb_collections
    where collection_name = "TIMECOLLECTION")
    loop
    () htmldb_collection.delete_member
    p_collection_name = > c1.collection_name,
    p_seq = > c1.seq_id);
    commit;
    end loop;
    end if;
    -V_DATE: = to_date(:A_CURRENT_MONDAY_WEEK,'DD-MON-RR');
    V_DATE: = to_date (June 14, 10 ',' DD-MON-RR');

    for rec in (select
    ATT_CODE,
    REG_HOURS,
    LINEITEM_DATE2 as HOUR,
    CASE
    WHEN to_date (LINEITEM_DATE2, 'DD_MON_RR') = to_date (V_DATE, 'DD_MON_RR')
    THEN REG_HOURS
    ELSE ' 0'
    END like Monday
    of TRANSACTIONTIME
    where: A_BADGE = BADGE
    and LINEITEM_DATE2 > = V_DATE
    and LINEITEM_DATE2 < = V_DATE + 6)
    loop
    () htmldb_collection.add_member
    p_collection_name = > 'TIMECOLLECTION ',.
    p_c001 = >-1,
    p_c003 = > rec. HOUR,.
    p_c004 = > rec. ATT_CODE.
    p_c005 = > REC CC,.
    p_c006 = > rec. PC_ID.
    p_c007 = > rec.WO,
    p_c008 = > Monday.
    p_c009 = > V_DATE + 1,
    p_c010 = > V_DATE + 2,.
    p_c011 = > V_DATE + 3,
    p_c012 = > V_DATE + 4.
    p_c013 = > V_DATE + 5.
    p_c014 = > V_DATE + 6);
    end loop;

    END;

    Hello Shelly,

    V_DATE's date , it means that you needn't to_date:

    CASE
    /*WHEN to_date(LINEITEM_DATE2, 'DD_MON_RR') = to_date(t_date, 'DD_MON_RR')*/
    WHEN LINEITEM_DATE2 = t_date
    THEN REG_HOURS
    ELSE '0'
    END as monday
    

    I guess that LINEITEM_DATE2 is of type date .

    If you want to compare without time then

    CASE
    /*WHEN to_date(LINEITEM_DATE2, 'DD_MON_RR') = to_date(t_date, 'DD_MON_RR')*/
    WHEN trunc(LINEITEM_DATE2) = trunc(t_date)
    THEN REG_HOURS
    ELSE '0'
    END as monday
    

    I also think that:

     p_c008 => monday,
    

    Must be:

     p_c008 => rec.monday,
    

    Lev

    Published by: the on June 23, 2010 13:12

Maybe you are looking for