Subject: Timing issues in LabVIEW 6.0

Hi all!
I am running LabVIEW 6.0 on Win 2k Professional and am baffled
by the following:
Using the GPIB Read .vi, I read from a couple of virtually
identical Solartron/Schlumberger 7150 Digital Multimeters at
a set time intervall and subsequently write the data to file.
The test routine performs only elementary arithmetic besides
GPIB reading and writing to file.
Using the Get Time/Date In Seconds .vi to time the read-store
loop reveals that the GPIB Read operation is excessively slow.
As the GPIB Read .vi's timeout defaults to 10000ms (488.2
global timeout), I tried out a number of different timeout
values and found that timing only begins to approach the
value I set without GPIB read errors when timeout is set at
>=1000ms and th
e read-store intervall is at least 440ms(!)
I cannot understand why the GPIB read operation should
require as much as 440ms when the CPU is otherwise minimally
loaded...
Isn't there a way to GPIB read at a rate faster than once
every 440ms?
Thanks in advance.
Best regards,
Andrew

I did a quick search of the instrument driver network and found a CVI driver for your instrument and a LabVIEW driver for a model 7151. You can convert the CVI driver to LabVIEW and the 7151 might be close to what you need. The drivers can be found here: Solartron 7150 LabWindows/CVI Certified Plug and Play Instrument Driver.
Also, there could be a lot of reasons that your readings are slow. See if Solartron has some example code that you can look at. It probably won't be in LabVIEW but you should be able to use the same GPIB commands.Message Edited by Molly K on 02-18-2005 11:38 PM

Similar Messages

  • Timed loop in LabVIEW DLL does not exit nicely

    Hello!  I have what I think is a simple timed loop in LabVIEW that exits after 100 iterations by throwing an error, and letting the loop "stop on error".  This works fine when run in the regular LabVIEW environment, however, when compiled as a Dynamic Linked Library (DLL) and called from LabWindows it forces me to terminate execution, rather than exiting nicely.  What's more, it seems to quit the actual Virtual Instrument call just fine and proceed to the next line of code, but when my main() function in LabWindows completes there must still be something not cleaned up that is causing it to not exit nicely.  Any ideas?   I've tried adding a call to QuitLabVIEW and that doesn't seem to do it.
    Thanks in advance - hoping you'll point out some really easy mistake. )
    Attached is a picture of the timed loop.
    Below is an excerpt of code from LabWindows:
     int main ()
     CallMyLabVIEWDLL();  //This line successfully launches and closes the window for my LabVIEW virtual instrument
    MessagePopup ("My Title:", "This happens after the call to your LabVIEW DLL");    //This popup shows up - indicating the call to the DLL has completed
    //But after the code has completed LabWindows still says "Running", rather than shutting down.
        return 0;
    Solved!
    Go to Solution.
    Attachments:
    LabVIEWTimedLoopDoesntExit.png ‏103 KB

    Update:  I tried the simplest possible "While" loop and it works.  If I replace it with the simplest possible Timed Loop, it doesn't.  (See attachments.) 
    The only thing I could find in a search for why a time loop would break a dll is a patch for lvalarms from LabVIEW 8.5.1 .... I'm running LV 2010 so I don't believe that's an issue.  Correct me if I'm wrong?
    Thank you!
    Attachments:
    Doesnotwork.png ‏43 KB
    DoesWork.png ‏9 KB

  • VISA Read timing issues

    I am using an RS232 to control an older model Power Supply (OXFORD PS 120-10).
    I have successfully written several VI's that all work, the only problem is that VISA Read takes WAY too long. I'm talking 10's of seconds to refresh. I need it have it refreshing in milliseconds or at least tens of seconds for the measurements we need. All of the VI's I have written have the same timing issue. 
    Attached is the most basic Serial Read/Write VI. Is there any way to improve the Read rate? Or might this just be an instrumentation issue. The strange thing is the Write commands work almost instantaneously (I can seem them on the instruments display).
    Please help if you can, I've only been working with LabVIEW for a few weeks and am very must still in the learning process. 
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    READandWRITE timing test.vi ‏14 KB
    READandWRITE timing test.vi ‏14 KB

    Do you have the communications protocol for the power supply? If you do not have everything right, you will have problems with communications.
    Tens of seconds is a clue that you may be getting timeout errors because the default timeout is 10 seconds. Try placing an inidicator on the error out wire inside the loop (after Read) to see if an error occurs on any iteration. The way you have the VI set up you only see the error on the last iteration of the loop.
    You are writing a carriage return to the instrument. If it requires that, it almost certainly sends a carriage return with the response. (This is why I asked about the protocol). If the instrument sends a carriage return (or other termination character), then you should Enable Termination Character on the Configuration VI and set the termination character to the correct value. The default is line feed (hex A or decimal 10). A carriage return is hex D or decimal 13. You must wire the numeric value to the termination character input for any value other than the default. Then change the byte count value (at the Read input) to a number larger than the longest message the instrument will ever send, perhaps 100 or 500. The Read will end as soon as the termination character is received, regardless of the number of characters.
    I suspect that this is the problem - the instrument sends fewer than 10 characters in most messages but does send a termination character.
    Lynn

  • Questions about phase difference (possible timing issue) RC circuit

    Hello,
    Below is the program I am using to measure the phase difference in an RC circuit. Simply put I generate a 2kHz sine wave in LabView and send it to the circuit using an Analog output. Then I measure the output sine wave using an analog output.I also measure this using n oscilliscope. I cna clearly measure the phase difference with the oscilliscope and know it to be approximately 1.4 radians.
    Issues with the program:
    Different phase difference measured each time the program is run for the circuit. It is also never correct.
    Possible causes:
    You will notice by looking at the vi I measure the phase from the signal generator. Should I be using a second analog input to measure the sine wave as it is outputted at the start of the circuit?
    I mainly think that it is a timing issue. While the phase difference is constant each time the program it varies each on run. So the time each tone measurement begins its first measurement seems to be different each time and causes this different phase reading.
    The card I am using is a PCI 6221, is there a timing issue related from switching to input and output acquistion or are they seperate.
    Is there anyway to ensure that both tone measurements are measuring phase at the same point in (actual) time?
    I would really appreciate any advice or alterations on the program anyone could offer me (I am a college student and LabVIEW is not on our curriculum so I have no support, yet I am using it for my project (D'oh!))
    Solved!
    Go to Solution.
    Attachments:
    RC Circuit Test.vi ‏271 KB

    I would certainly acquire two signals.  Feed the analog output right back into an analog input and then your filtered signals in another.
    Initially, I would feed the analog output into both analog inputs and measure the phase delay due to the multiplexed A/D on the card.  Once you have that measurement, you can feed in the filtered signal and then measure the phase difference of that signal.
    Randall Pursley

  • [svn:bz-trunk] 17102: Rewrite all ImageSnapShot tests to avoid any timing issue on various app server .

    Revision: 17102
    Revision: 17102
    Author:   [email protected]
    Date:     2010-07-28 11:48:20 -0700 (Wed, 28 Jul 2010)
    Log Message:
    Rewrite all ImageSnapShot tests to avoid any timing issue on various app server.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ImageS napshot/testCaptureBitmapData.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ImageS napshot/testCaptureImage.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ImageS napshot/testCaptureImageJPEG.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ImageS napshot/testCaptureImageScaleLimitedFalse.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ImageS napshot/testCaptureImageScaleLimitedFalseJPEG.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ImageS napshot/testCaptureImageScaleLimitedTrue.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ImageS napshot/testCaptureImageScaleLimitedTrueJPEG.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ImageS napshot/testEncodeImageAsBase64.mxml

    I am modifying the correct httpd.conf file on the server, it just doesn't seem to work. - If I put the rewrite rules in the <Directory /> the rewrite works but it adds /Library/WebServer/Documents to the URL.
    I also tried putting the rewrite rules in <IfModule mod_rewrite.c> but that did not work either.
    mod_rewrite is enabled and running on the server.
    I will post the rewrite rules again in the code brackets. Sorry for the long post. - If some one can try them out on their Leopard Server to see if they can get them to work, it would be much appreciated. Again, these work on my Leopard Client but I can't get them to work on Server.
    -- The httpd.conf file posted above is just the default conf file found in /private/etc/apache2/
    <code>
    RewriteEngine On
    Options +FollowSymLinks
    RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301, L]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.php(.*)\ HTTP
    RewriteRule (.+)\.php(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.asp(.*)\ HTTP
    RewriteRule (.+)\.asp(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.aspx(.*)\ HTTP
    RewriteRule (.+)\.aspx(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.htm.(.)\ HTTP
    RewriteRule (.+)\.htm.(.)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.cfm(.*)\ HTTP
    RewriteRule (.+)\.cfm(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.bak(.*)\ HTTP
    RewriteRule (.+)\.bak(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.inc(.*)\ HTTP
    RewriteRule (.+)\.inc(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\..(.)\ HTTP
    RewriteRule (.+)\..(.)$ $1$2 [R, L]]
    <code>

  • How to fix the Timing issue in Discoverer reports

    Hi,
    While running the discoverer report in Discoverer plus is taking more than 1 hour to complete( Gen.time + Extract to excel)
    where as the same report completes quickly in discoverer desktop.
    how to fix the timing issue in discoverer plus 
    Thanks
    Srinivas

    Timo Hahn wrote:
    There is a problem with autoHeightRows and columnStretching used together in 11gR1.
    Have you tried without columnStretching?
    Or have you tried if it works in 11gr2?
    TimoHi Timo, Thank you very much for taking time to respond to my question.. :)
    Back to my question...
    I tried removing the columnStretching although my requirement really requires this but no effect really happens even if I remove this.
    Based on my investigation on the generated HTML, I notice the following items:
    1. A table is being wrapped in a div that is being set at a fixed height.
    2. On first load, if your autoheight rows is set to 6, the framework is setting a height of 96px to the div. This height would almost cut the last row of the table.
    3. If you try to refresh the page or try to re-PPR the component, the framework resets it to 102px which causes the last row to be fully displayed.
    My only concern is that IE is perfectly displaying this while Chrome and FF are having problem.
    Based on my understanding, the framework is messing up the height only on first load. Not sure but this is how I see it. I am really not confident also on my findings
    and I would most likely hear other's comment.
    Thanks.

  • [svn] 4859: -Fix packaging timing issue that was caused by the rebuilding of the air applicationupdater .

    Revision: 4859
    Author: [email protected]
    Date: 2009-02-05 10:15:22 -0800 (Thu, 05 Feb 2009)
    Log Message:
    -Fix packaging timing issue that was caused by the rebuilding of the air applicationupdater. The recompiled files would get laid down properly only to have the old files put back down on top of them. I also made sure the build directory was removed after updateAIR ran so it would not be included in the package
    -removed bundles.properties from the wireframe project
    bug:SDK-19128
    qa:yes
    doc:no
    checkintests:pass
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19128
    Modified Paths:
    flex/sdk/branches/i10/build.xml
    flex/sdk/branches/i10/frameworks/build.xml
    Removed Paths:
    flex/sdk/branches/i10/frameworks/projects/wireframe/bundles.properties

    Hi Chris,
    I have confirmed this is an AIR SDK 13.0.0.83 bug.
    I have reported this bug to Adobe Bugbase, and I also included the workaround:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3750892
    The workaround is:
    Simply comment the <externalSwfs> tag in your -app.xml will solve this bug, like this: <!-- <externalSwfs></externalSwfs> -->
    DarkStone
    2014-04-28

  • C3120 trunk timing issue on HP B460G1 ?

    hello
    customer encoured issue of trunking timing issue between
    C3120 and HP blade server, unable to get ip from DHCP
    server when server is booting up
    seems issue resolved in .53SE but i didnt  find either
    on CCO or HP Web ?
    any advice welcomed
    JYP

    Did you put the trunk in portfast mode ?
    regards,
    Geert

  • What is the best/most effective way to dynamicall​y build a timed loop in LabView?

    I am relatively new to labview (not to code in general) and am looking for the "LabVIEW" way to dynamically build a timed loop. This is what I am trying to accomplish:
    I have several heaters controlled through labview using Labview's PID toolkit. This works great. I have no issues with DAQ in general. However, throughout an experiment, I want to change the set point of each heater. I could set this up fairly easily using either a timed loop or the wait vi if I knew exactly how many different set points there would be.
    If possible, I would like to be able to read in a config file that includes the different times and set points for all heaters and dynamically create a loop that can handle this. I have tried using the Elapsed Time vi with an array of time targets; however that didn't seem to work.
    Has anyone been able to do this? Does anyone know where I could learn about using LabView in this manner? All help is appreciated.

    DHagan wrote:
    I am relatively new to labview (not to code in general) and am looking for the "LabVIEW" way to dynamically build a timed loop. This is what I am trying to accomplish: I have several heaters controlled through labview using Labview's PID toolkit. This works great. I have no issues with DAQ in general. However, throughout an experiment, I want to change the set point of each heater. I could set this up fairly easily using either a timed loop or the wait vi if I knew exactly how many different set points there would be. If possible, I would like to be able to read in a config file that includes the different times and set points for all heaters and dynamically create a loop that can handle this. I have tried using the Elapsed Time vi with an array of time targets; however that didn't seem to work. Has anyone been able to do this? Does anyone know where I could learn about using LabView in this manner? All help is appreciated.
    Write a tab-separated spreadsheet file makes it easy to use the write/read from spreadsheet files. Assuming you have a 2D-array of your times and set points it's just a question of setting up a for-loop going through the array row-by-row and extract the elements (expanded index array) to set your points and wait time.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Unity Express voice mail timing issue.

    Hi,
    I have installed one uc520 at one of our customer. i configured voice mail but there is one issue with the voice mail timing. Suppose i retrive the voice mail the voice mail prompt is giving the wrong time. Suppose I send a voice mail to a subscriber at 3pm, the voice mail prompt is saying 'message send at 4 pm'.
    I checked both cme and cue clock settings and both are showing the correct time.
    Can anybody help me on this issue
    Regards
    Thejas

    Are the calls to CUE getting dropped when you dial from an IP Phone at site 1 (callmanager) ?
    How is the CME router setup in Callmanager ? Is it added as a regular H323 gateway or a H225 trunk ? Either ways, make sure the gateway registers with the correct IP that is used in Callmanager.
    So if CME has a wan ip (a.a.a.a) and a lan ip (b.b.b.b), if you add b.b.b.b as the CME gateway's ip address in Callmanager, then you need to bind the H323 ip address as follows.
    interface fa0/0
    ip add b.b.b.b
    h323-gateway voip bind srcaddr b.b.b.b
    Most likely the CME gateway is sending calls to Callmanager using ip address a.a.a.a which is the wan ip, through which it has the default route to Callmanager.
    Hope that makes sense!

  • Timing Issue in BADI MSTO_PROCESS_ITEM PO

    In ECC 6.0 some logic has been added to BADI MSTO_PROCESS_ITEM, method check. Two non rfc function modules have been used to update custom fields. MEPO_DOC_HEADER_PROCESS and MEPO_DOC_ITEM_PROCESS. Every once in awhile the custom fields are not updated. When we take the purchase order and go in change mode, it updates the fields correctly. When we go through debug, same thing updates correctly, and create also. it only happens sometimes. Could there be a timing update issue in the badi? Buffer issue?  If yes, what are some solutions. Could we put a wait command in the badi?

    Hi,
          IM_item is itself an object, it contains methods. check the assosiate type IF_PURCHASE_ORDER_ITEM_MM.
    check the sample code it willhelp you.
    sudheer.A

  • Email Output - Subject Line issue.

    Hi,
    I have an issue in changing the subject line of the billing output which goes as an email whenever newly created. I want to incorporate the subject line of the email as "ABCD Invoice for SO number '12345678' for Customer 'Customer Name' ". Here the SO number & Customer Name varies for diffenrent Billing document.
    I can do this change to some extend in NACE  Transaction but unable to bring the Customer Name in the subject line.
    Can anyone please tell how this can be done?
    Regards,
    Banu.

    I don't believe this is feasible with the standard output program, but you should be able to do this if you create a custom (Z) version and make that modification there. Not sure if it's worth it, but that's for your business users to decide.

  • Measurement Computing USB-DIO96H driver issue with Labview 2012 SP1 on Windows 7 x64

    Is anyone else having issues with measuremetn Computing's USB-DIO96H driver in Labview 2012 SP1. It throws warnings in Labview when loaded that are unresolvable as you can't save to the DLL driver file. Also it regularily crashes Labview randomly. I am not impressed with their driver. Anyone have any suggestion other than replacing with NI-DAQ solution, which I am working on?

    I've taken a look and I don't see any drivers available for that device on ni.com. There are two potential workarounds that would both involve building your own driver:
    1. Write a LabVIEW application that calls functions on the DLL you downloaded from Measurements Group
    2. Write a LabVIEW application that addresses the device using NI-VISA and serial communication.
    Some resources if you choose to go down that path:
    http://www.ni.com/devzone/idnet/development.htm
    http://www.ni.com/white-paper/3271/en/
    http://www.ni.com/white-paper/3009/en/
    Hope this helps!
    Rob B
    FlexRIO Product Manager

  • Issue with LabVIEW 12.0f3

    Hi,
    I have a scenario where I need to communicate using TCP over SSL. As LabVIEW doesn't have any native support for that, I have developed a library using System DLL and accessing the .net APIs for secured TCP communication.
    P.S. - I am acting as a TCP Server
    But during the testimg I am having few issues.
    #1- When Server and Client running on same system - In this case am able to communicate successfully but LabVIEW is going to 'Not Responding' state. As soon as I close the Client exe, it comes back to normal state.
    #2- When Server and Client running of different system- In this case am able to connect to client and send data. But am unable to read the data. Whatever response client is sending, I am not able to receive it.
    I am using Synchronous TCP read.
    Please refer the code for SSL Read.
    Any help would be greatly appreciated.
    Thanks,
    Runjhun.
    Attachments:
    SSL Read.png ‏51 KB

    Hi Kaaji1359,
    It is possible that others on the forum may have found a work around for this particular issue, but the LabVIEW FPGA module is not supported on Windows 8. I have linked a list of all of the things that are or are not supported on Windows 8. I apologize for the inconvenience and I encourage you to check back if/when the FPGA module does support Windows 8.
    Windows 8 Support: http://www.ni.com/white-paper/14281/en
    Patrick H | National Instruments | Software Engineer

  • Generating signal with several frequencies - Timing issues

    Hi
    I use Labview 7.1.
    I am trying to generate a signal composed of 1000 different frequencies.
    For this purpose I am using the Multitone Generator VI .
    My problem is that the generating process is too long for my real-time
    application.
    Is there any way to accelerate (optimize) this process?
    I think about several options, such as:
    Using more powerful computer (multicore)
    Making the process parallel (is it relevant
    for Labview7.1?)
    Changing VI's properties (priority etc..)
    Please advice
    Amir

    Hi,
    Attached my problem.
    I am trying to generate signal with 100 frequency component (100 different sine waves).
    According to the timers it is taking 87mSec to produce the signal which length is 1 second.
    In my project, I need to generate 1000 frequency components. And also 20 channel of this kind.
    So it is clear that i will not be able to achieve the timing requirements
    (It will take more than 1 second to generate a signal of 1 second)
    What can you advise me ?
    Thanks
    Amir
    Attachments:
    Generate_100_freq_signal.jpg ‏156 KB

Maybe you are looking for

  • What is the purpose of the Serial / Normal switch on the SUP-NS3S lens support.

    What is the purpose of the Serial / Normal switch on the SUP-NS3S lens support.

  • Getting OERR: ORA 12705 error when trying to connect.

    I have tomcat running on red hat and I'm trying to connect to a remote server running Oracle 10g using a thin driver. But I keep getting this error when I try to connect. I've tried setting NLS_LANG=AMERICAN_AMERICA.UTF8, NLS_LANG=AMERICAN_AMERICA.US

  • PS CC unable to find the JavaScript plug-in?

    I am on a Windows 7 pro platform - Hi, when trying to launch PS I get the following message: "Could not complete the command because PS was unable to find the JavaScript plug-in" after clicking ok another message pops up: " There is a problem with Ge

  • Why the ALV download Excel can't show all field title?

    Dear All          I have a problem for ALV download to Excel Example: the field  title description has 11 len bits when I download Excel then the field title is u2018descriptiou2019 only 10 len bits. I found when the field value is more then 11 then

  • Flash crashes every time I test my game.

    I test codes to check if they work so when I type in a code and test my game it keeps crashing. If I change the code to something different it sometimes doesn't crash. Is it because of the code? I think this is a weird glitch. It says Adobe Flash CC