Instrument i/o assistant always generates async methods for read and write!

I am trying to generate VI by instrument i/o assistant, but it generated 'Visa write' and 'Visa read' always in asynchronous mode. Even if I unchecked asynch boxes in MAX->Visa Test Panel.
I need only synchronous mode! And it is very uncovenient after open front panel change  Synchronous I/O Mode from Asynchronous to Synchronous!

postoroniy_v wrote:
Asynchronous mode does not work for my hardware.
and before Instrument i/o assistant  generate diagram I have possibility to check requests and responses to/from my hardware. in this case everything is fine.
after generate  does not work.
Is it possible you don't have a sufficient amount of wait time between a VISA Write and VISA read to give the instrument time to receive the communication and turn around a response?  Take a look at Basic Serial Read and Write example VI.  If you are using the I/O assistant and checking things manually, it will work because there is no way you can generate a Read too fast.  It still would take a fraction of second to generate the write and do whatever clicking to generate the read.

Similar Messages

  • Quickest method for reading and writing files

    Hi
    I need help regarding file operations.(Reading and Writing). Currently I am using BufferedReader and BufferedWriter to read and write files. But the files (XML) are very huge files(from 30 -50 mb). This is slowing the application to a great extent. Is there any other approach to perform the above mentioned operations on XML files in a fast manner.
    Thank You
    Mansoor.

    Hi
    Can u let me know how to use the java.nio pavkage for primitve data types(int,float..., boolean). I have tried it but found no success.
    Thank You
    Mansoor

  • Plugin-container and Flashplugin are both generating a million reads and writes an hour... even when Firefox is minimized and running no audio/video; how can I

    I am running FF 18.0.2 on a Win7 system with an i7 CPU and 8GB RAM. My Flash plugin is newly-updated. I've used Firefox on this machine its entire life (3 years).
    Since 3 or 4 (?) versions ago, I've been getting massive activity on my hard drive with Firefox. When I check with Win Task Manager, I see the plugin-container.exe *32 and the FlashPlayerPlugin_11_5_502_149.exe *32 processes are generating millions of I/O reads and writes, even while Firefox is idle (minimized, running no audio or video). On this latest version, 18.0.2, the drive activity stalls out YouTube videos repeatedly, even though I can see they're buffered ahead. The playing video will stop, audio will continue to end of buffer, and then EVERYTHING stops (Firefox not responding) for 30 seconds or so. It will then pickup again and play until it repeats the same pattern in a minute or so.
    Example: I closed and restarted Firefox 2 days ago. Earlier today I checked Windows Task Manager and found the two processes EACH generated about 161 million reads and 141 million writes since then! My wife's laptop is showing nothing like a hundredth of that.
    The constant drive activity is slowing down all programs outside of Firefox too, as you might imagine. The PC is acting like it's a dedicated machine for Flash.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • How to create a method for reading a file

    i tried to make it as static method for reading a file and
    then to return string
    is this code correct?
              public static String fileMaterial(String fileName)
                   fileReader = new BufferedReader(new FileReader(fileName));
                   info = fileReader.readLine();
                   while(school != null)     {                    
                        return info;
                        info = fileReader.readLine();

    I created a class you might want to look at. I come from a world of C and love fgets() and other FILE stream functions. I created a class that uses the Java I/O buts to the calling application behaves like fgets and such. The block of code where I do the calling in the calling program even looks like C. In my class I capture almost all errors and set error buffers to the errors. The calling program looks at the return to see if it succedded or errored.
    BuffIO new = BuffIO.fopen("fiilename", "r");
    String s;
    if((s = new.fgets()) == null)
    System.err.println("error reading file: " + new.ferror());
    That would be waht the calling program does

  • Why no simple method for reading text files

    I'd like to know, after all this time why there is no simple method of reading ext files into a string.
    Yes, yes, I know all about buffered readers, (it took me long enough to figure them out) but they are cumbersome and seem to change every release (how many file methods have been deprecated...)
    Here's what I'm looking for:
    file.open();
    file.read(String);
    file.close();
    No single character at a time, no loop - the whole file into a single string in one shot. If buffers are used, i want it hidden.
    Perl, PHP, VB, C# all have this. Even Java has it when you write to a file.
    So why not on read?
    Yes, buffered streams are very elegant, but for what most programmers want to do, they are overkill and annoying.

    Just Dennis Ritchie's little joke.
    Do you have a better reason for wanting the feature
    other than that some other languages have it?Yes. It would save me time and help dozens of new programmers who continually ask this question in this and other forums. It is in other languages because people use it and want it - clearly Jarkata saw the need. If you don't like the idea, then I won't argue the point. We agree to disagree.
    Also did you have an answer for my question?in java.io.file you can do the following: (i've used it, it works) Granted, you still have to use the buffered output streams, which in my opinion should be abstracted for a simple text read and write.
    BufferedWriter outputStream = new BufferedWriter(new FileWriter(fileNewPath));
    outputStream.write(fileContent);
    outputStream.close();

  • What is Licensing Method for SCCM and SCOM 2012

    What is Licensing Method for SCCM and SCOM 2012
    We have 75000 clients, so we going to implement SCCM and SCOM 2012 environment in azure. Actually we plan to go for One Central Administration site and three primary sites (to manage this clients), going to host in Azure. I need to know how the licensing
    process work for this environment, how many licenses we need to get for this? is charging for Client based, Site based or environment based?  Please update.
    Thank you
    Fazal
    Fazal(MCTS)

    Hi,
    Running the SCCM and SCOM servers themselves in Azure to manage clients outside azure is not really supported if I remember correctly..
    http://blogs.technet.com/b/configmgrteam/archive/2013/10/23/configmgr-and-endpoint-protection-support-for-windows-azure-vms.aspx
    Licensing is explained here.
    http://www.microsoft.com/licensing/about-licensing/SystemCenter2012-R2.aspx
    In short for Client OS you need a cal per client, included in Core CAL and Enterprise CAL.
    For servers it is licensed per CPU and can be licensed for all virtual servers on a host as well, included in the guide above.
    ps. side note a CAS is not really necessary in most case if you don't have more than 100'000 clients, it adds a lot of complexity and I would avoid it if I could.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Bapi or method for opening and closing quantity of material

    Hi Friends,
    Is there any Bapi or Method for Opening and Closing Balence quantity of material
    plz tell me if any.
    Thanks And Regards.
    Devalla T Kr.

    Hi ,
    try this one.
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=15856
    from this code u need to ignore Ztables.
    regards
    Prabhu

  • Problem choose method for save and retrive data

    Hi
    I want to conver sql database to berkeley db.my sql database has over that 40 tables and each table has diffrent fields (like varchar,int,...)and some tables have over that 30 fields .I want to use method that berkeleydbcorec pdf explain in chapter 3(Using C Structures with DB):
    what is the limitation for use first method for store information?
    I think only limitation is waste database.
    what are the advantages of use (marshalling the data)?
    if I use marshalling the data for store records does speed for fetch information reduce or not?
    is it good use marsharling or first method for store information?
    please help me.
    regards,
    saaed

    Hi,
    Since nobody else has posted anything I thought I would mention a couple of things:
    Most applications that need a database need a way to work with records and fields. Berkeley DB does not have a schema so it is up to the application to format the data. Some databases through their DML make it easy to the application to look at fields but they are doing work for you behind the scenes.
    Some dbms's if they support variable length fields store some information on the page to delimit fields. At run time there is some overhead in doing that as the dbmx needs to find the location on the page for the next field and so forth. So although the application may not have to write the code to obtain fields from records there still is the overhead in the database to do so.
    As you noted in Berkeley DB, you do the marshalling and unmarshalling of data. Since you know your data best, you can optimize it as you see fit.
    Perhaps you should try this on one table first and see what the performance is.
    I hope this helps.
    Ron

  • Help with method for reading coeffecients.

    I am fairly new to Java programming and I was asked by my instructor to wright a program that calculates the quadratic formula via a loop. So far i have the following code:
       // Constructor obtains the number of equations as a parameter
       Quadratic2(int limit) throws IOException {  // Constructor
          // All computations are performed in a loop
          for (int count=0; count<limit; count++) { // setting count to 0, if count is less than limit , then count is incremented by 1
             // Reading the coefficients
             System.out.print("Please enter coefficient a: ");
             double coeffA = Double.parseDouble(inp.readLine());
             System.out.print("Please enter coefficient b: ");
             double coeffB = Double.parseDouble(inp.readLine());
             System.out.print("Please enter coefficient c: ");
             double coeffC = Double.parseDouble(inp.readLine());
             System.out.println();
             double Disc = discr(coeffA, coeffB, coeffC);  // Compute discriminant
             if (Disc >= 0.0) {  // Solution exists
                // Solving the equation
                double root1 = roots(coeffA, coeffB, coeffC, true);
                double root2 = roots(coeffA, coeffB, coeffC, false);
                // Outputting results
                System.out.println("Quadratic equation with the following coefficients:");
                System.out.println("A: " + coeffA + "; B: " + coeffB + "; C: " + coeffC);
                System.out.println("has the following solution:");
                System.out.println("Root1: " + root1 + "; Root2: " + root2);
             else {  // Solution does not exist
                System.out.println("Quadratic equation with the following coefficients:");
                System.out.println("A: " + coeffA + "; B: " + coeffB + "; C: " + coeffC);
                System.out.println("has no solution in the real domain.");
             System.out.println("");
       // A method to compute the discriminant
       double discr(double a, double b, double c) {
          return b*b - 4*a*c;
       // A method to calculate roots
       double roots(double a, double b, double c, boolean which) {
          double Disc = discr(a, b, c);
          if (which) {
             return (-b - Math.sqrt(Disc))/(2*a);
          else {
             return (-b + Math.sqrt(Disc))/(2*a);
       public static void main(String args[]) throws IOException { //Must throw an IO execption
          int noEqs = 1;  // Number of equations
          noEqs = Integer.parseInt(args[0]);  // Passed from command line
          Quadratic2 obj = new Quadratic2(noEqs);
    }I was told to read the coefficients with a method named readCoeffs() but evey time I try to do that I get several errors and as mentioned previously I am new to Java and therefore not able to interpret these errors. As you can see in the above code i read the coeffecients as they are entered but not via a method. I tryed using using the following but to no avail:
      double coeffA = readCoeffs(in);
          double coeffB = readCoeffs(in);
          double coeffC = readCoeffs(in);I was wondering if any of you more experienced programmers are able to show me how or help me write a method to read the coefficients? Any help or advice would be greatly appreciated!

    Sorry I should have been more specific in my question and provided more detail. Anyways i have revised my code to the following:
    //Java Program that Calculates the Quadratic Formula using a loop written by Kris Andrews
    // 10/08/07
    // Intro to Programming/COP 2006
    import java.io.*;//import java library
    class Quadratic2 { //Naming Class
       Quadratic2(int limit) throws IOException {  // Constructor that takes variable as parameter and computes as many times as the value entered
          // All computations are performed in a loop
          for (int i=0; i<limit; i++) { // setting i to 0, if i is less than limit , then i is incremented by 1
       // Declarations necessary to use kbd input //Declaring variable locally
       InputStreamReader inStream = new InputStreamReader(System.in);
       BufferedReader inp = new BufferedReader(inStream);
    // Method to read coefficients
       double readCoeffs() throws IOException {
             System.out.print("Please enter coefficient a: ");
             A = Double.parseDouble(inp.readLine());
             System.out.print("Please enter coefficient b: ");
             B = Double.parseDouble(inp.readLine());
             System.out.print("Please enter coefficient c: ");
             C = Double.parseDouble(inp.readLine());
             System.out.println("");
             return true;
       double Disc = discr(A, B, C);  // Compute discriminant
             if (Disc >= 0.0) {  // Solution exists
                // Solving the equation
                double root1 = roots(A, B, C, true);
                double root2 = roots(A, B, C, false);
                // Outputting results
                System.out.println("Quadratic equation with the following coefficients:");
                System.out.println("A: " + A + "; B: " + B + "; C: " + C);
                System.out.println("has the following solution:");
                System.out.println("Root1: " + root1 + "; Root2: " + root2);
             else {  // Solution does not exist
                System.out.println("Quadratic equation with the following coefficients:");
                System.out.println("A: " + A + "; B: " + B + "; C: " + C);
                System.out.println("has no solution in the real domain.");
             System.out.println("");
       // A method to compute the discriminant
       double discr(double a, double b, double c) {
          return b*b - 4*a*c;
       // A method to calculate roots
       double roots(double a, double b, double c, boolean which) {
          double Disc = discr(a, b, c);
          if (which) {
             return (-b - Math.sqrt(Disc))/(2*a);
          else {
             return (-b + Math.sqrt(Disc))/(2*a);
       public static void main(String args[]) throws IOException { //Must throw an IO execption
          int Equations = 1;  // Number of equations
          Equations = Integer.parseInt(args[0]);  // Passed from command line
          Quadratic2 obj = new Quadratic2(Equations);
    }But I get the following error:
    Quadratic2.java:23: ';' expected
    double readCoeffs() throws IOException {
    ^
    Quadratic2.java:23: not a statement
    double readCoeffs() throws IOException {
    ^
    Quadratic2.java:23: ';' expected
    double readCoeffs() throws IOException {
    ^
    I did not receive this error prior to trying to read the coefficients via a method and what do i need to to correct these errors? Again any help would be appreciated!

  • DatagramSocket read and write methods

    Hi,
    I am trying to implement a client/server schame via NIO DatagramChannel.
    I manage to make it work with the methods send/receive. but i am not able to make it work in "connected" mode via write/read method.
    i bind and connect like this;
    this.channel = DatagramChannel.open();
    this.channel.configureBlocking(false);
    this.channel.socket().bind(hostAdr);
    this.channel.connect(destAddress);
    then i receive messages like this:
    ByteBuffer theReceiveDataByteBuffer = ByteBuffer.allocateDirect(5000);
    Charset charset = Charset.forName("ISO-8859-1");
    StringBuffer buffer = new StringBuffer();
    String[] retval = new String[2];
    while (flag) {
    try {
    Int value = receiverChannel.read(theReceiveDataByteBuffer);
    long time = System.currentTimeMillis();
    } catch (IOException e) {
    Thread.currentThread().interrupt();
    flag = false;
    I send via the write method, it seems i manage to send but i receive nothing...
    How to code this kind of scheme with write/read ?
    thank you
    Sebastien
    Edited by: sepi_seb on Nov 29, 2007 10:06 AM

    Well (a) you're spinning madly burning up the CPU in a non-blocking read loop; (b) if this is the complete code you don't have any way of knowing whether you received anything or not; and (c) you're completely suppressing any IOExceptions that may be occurring, so you can't see anything that's going wrong.
    So:
    (a) don't use non-blocking mode, or use a Selector to tell you when OP_READ is ready for the channel;
    (b) try breaking out of the loop when you've received something, i.e. when the bytecount returned from read() > 0; and then display something;
    (c) when you get an exception it contains a valuable message and an equally valuable stack trace. Don't just ignore them.

  • Difference in storage method for DMS and Services for Object

    Hi-
    Our R/3 version is: 4.7 Enterprise.
    In most (if not all) of the transactions users execute, there is a feature where they can attach a file using "Services for Object" from their PC to the associated record (i.e. material master, purchase orders, service notifications, etc.) 
    What I would like to know is where the document is stored.  From what I found on help.sap.com it says that it is a link from the user's PC.  But I would guess it is storing a copy of the file as a blob on the R/3 server somewhere.  Is this true?  Or is there a risk if the user's harddrive dies, that the file is no longer available for viewing? 
    I am trying to determine the difference between using the Services for Object feature vs. DMS and setting up an object link for the specific object type (i.e. material).
    Thanks!
    -Jenn

    I found the following about Services for Objects: 
    Business Workplace
    The documents that were appended to an object using Create attachment and Create note are stored in the Business Workplace. There, for example, you can make settings for where the documents should be stored (R/3 System or Web Server) and which document classes may be loaded in the SAP System (for example DOC, but not EXE).
    Sending is also carried out internally using the Business Workplace. Messages are created that contain a link to the object as an attachment. By double-clicking on the attachment, the users can call the default method of the object. This is normally the display method.

  • Always use default account for replays and forwards

    Dear All,<o:p></o:p>
    I have the next setup:<o:p></o:p>
    .- Two different pop account using the same .pst file, by default outlook use the account and emails is received as the from account
    when replying and forwarding that email.<o:p></o:p>
    I need to always reply and forward from the default account even when the emails is received by the other pop.
    Thanks in advanced.<o:p></o:p>

    Hi Daniel,
    Edit the SMTP (Outgoing Server Settings) server information and assign the details of second email address through which you want to send email.
    You can also use the given VB code to perform this task:
    Set oMail = Application.ActiveExplorer.Selection(1).Reply
    Source:
    http://www.slipstick.com/outlook/email/choose-the-account-to-send-a-reply-from/
    Note: Improve community discussions by marking the answers helpful otherwise respond back for further help.
    Thanks
    Clark Kent

  • What method for reading 1.234.567 instead of 1234567 in JXL excel package

    I want to read cells from an excel sheet. But I don't know getting the cell content as money quantity 1.234.567 instead of 1234567. What method(s) I shold use.

    Try getting it as a String.

  • BDC Program - Session Method For Add and Edit Data

    Hi,
    How to write a BDC program (For Session Method) to upload Sales Order Data (VA01) and at the same
    time to modify the data if the Order exists?
    Thanks
    Murthy

    Hi,
    go to SHDB
            Create a project and recording the Va01 and then u write the code for That recording.

  • Direct Access 2012 -- method for disabling and re-enabling client access ?

    We have a reliably functioning DA 2012 setup (which is great), but I need a way to selectively Disable and later Re-Enable DA for particular clients. We use a security group for the Computer accounts of the clients and this is referenced both by Group Policy
    (to assign the right settings to the DA Clients) and by the DA Server (to grant the access).
    We had hoped that we could simply delete the client Computer account from the security group, but when we tried this the DA server seems to just ignore it, even after a reboot of the DA Server.
    We have looked all through the settings of the DA server to see if there is a "disconnect client" option, but can't find anything (which truly amazes me!).
    I have seen one blog post from Richard Hicks which recommends running some PowerShell commands (http://directaccess.richardhicks.com/2013/06/11/disconnecting-directaccess-clients-on-windows-server-2012)
    but after testing these it seems clear that this really only helps me in a scenario where (A) the client is offsite; and (B) I first Disable the Computer account in AD and then replicate AD.
    Wondering what my options are? What do I do when we want to Disable DA for a particular client and then turn it back on again some weeks later?

    When you remove the computer account from your group, it will stop DirectAccess from working, but only once the DA client machine receives it's next Group Policy refresh. The purpose of the group is to get those DirectAccess connectivity settings applied
    from the DA GPO. So if you remove the account, sometime over the next couple of hours Group Policy will refresh on that laptop, and the DirectAccess settings will be removed. If you do this, then later down the road when you want to turn DirectAccess back
    on, you'll need to get that laptop either back into the office or connected via some kind of VPN, because when you add the computer account back to the group, the client machine will have to receive the GPO settings all over again.
    I have been installing DirectAccess for years in tons of places, and I don't think I have ever heard of the business requirement to remove and re-add computers to DA like you are describing - do you mind sharing your reasoning behind this? (I'm just truly
    curious, I'm always interested in finding new ways that companies are using DA)
    The quickest way to disconnect a client machine from DirectAccess is to disable the computer account in AD. You could then re-enable the computer account later and DA would start working again, but of course if you leave a computer account disabled in Active
    Directory for a long period of time, it could cause other kinds of sync problems outside the scope of DA.
    DirectAccess, if designed properly, turns itself off whenever the computer is connected to the corp network, whether physically onsite or connected via another form of VPN. Given this behavior, I'm not sure why you would want to be able to disable DA for
    a while and then turn it back on again later...?

Maybe you are looking for

  • Link on report to the URL stored in a table.

    I have a table with a column in it that has a different URL for each row. I would like to have that show up either as the URL with the ability to click on it and link to the page or even better as an image that links to the URL listed in the appropri

  • Drill down in Graphic Builder

    Hi, Can you drill down from a chart in the Graphic Builder to report in the Report Builder. If yes can someone please help? Thanks

  • Duplicate Exchange messages

    Just my Exchange account is giving me duplicate messages in Mail. This doesn't happen 100% of the time as far as I can tell. If I delete one of the duplicates, the other is immediately deleted as well. If I log in to our webmail client, there are no

  • Nilvaiu.dll functions

    HI. I am trying to get the list functions of nivaiu.dll library. Does anyone know the the nivaiu.dll programming manual or related information.  Thanks Gary

  • Brand New Time Capsule Not Saving Applications

    I have a brand new T2 Time Capsule that I set up less than one week ago. All the settings appear to be fine, however when I went to restore an email client application today from the Time Capsule, I could not find any applications. My application fol