Labview Program will hang between 33% and 50% of the time.

I have a problem with a Labview program I made. I have two programs that do the same thing. One is in flat sequence form and the other is in state machine form.
As explained in the link below, I would like to make use of a microcontroller to make wiring connections for automating a measurement process. A separate current source and volt meter will be used.
https://forums.ni.com/t5/LabVIEW/Sequence-a-good-idea/td-p/2601333
I have since made some simple test programs which I have attached. The problem is when executing, the labview program will hang, but not every time the program is execute.
For example: Hall 1.2.vi will work properly twice with the third time it is executed it will hang. If you abort and try again, it will again run twice with no problems with the third hanging. This one is in flat sequence format (was in a flat sequence, but merged the windows because I thought that was the cause). From what I can tell, the program will hang when calling Keithley 6517 Single Read.vi. Both connected Keithley devices are connected to the computer via GPIB at 16 and 27. The way I verified if it was this vi causing it or contributing to it was that I removed it and the program never hung. I find it very strange that it will hang exactly on the third attempt every time.
Hall 1.3 simple.vi will work the first time and hang the second time. So it works 50% of the time. This one is in State Machine format. This one will hang at the case titled "Measure 1" which contains the Keithley 6517 Single Read.vi.
I've used the highlight execution button and watched the program run. Oddly, it doesn't hang when using this button. So I tried adding delays/wait in different places to no avail.
What could be causing this? As a side note, I say the program hangs for two reason. The main one is the program doesn't finish running so the run arrow is still black. The second thing is that if you notice at the end of the labview program, I have a block there that turns the current source off which doesn't happen when it hangs. I have to manually turn it off and then hit the abort program button to stop labview.
Solved!
Go to Solution.
Attachments:
Hall 1.2.vi ‏42 KB
Hall 1.3 simple.vi ‏81 KB

altenbach wrote:
SaintsFan wrote:
Also, I've tried placing wait/delays at various places with no improvement of the problem. My next thought is to just remove all the vi calls and have everything in one program.
How did you place the waits?
Why would placing everything in one program fix the problem. That makes no sense! What is your reasoning?
In the case of hall1.3, I placed a wait in the Measurement cases and CS On cases and there was no affect. In the hall 1.2 when the blocks were broken up similar to the state machine cases where each sequence window was identical to the cases, I placed a wait or delay in each window with no effect on the hanging.
My reasoning for placing everything in one program is the same as my reasoning for figuring delays would help, since the time of execution would be altered. If the execution time is faster and if the timing is the problem then I figured that the problem would happen more frequently or even every time.
Somehow I get the feeling this is not the case. The reason being the interval in which it succeeds or hangs is constant. I believe somewhere, a value is getting set. The 6517 Read vi runs fine if I run this vi by itself no matter how many or how fast I run it. Also, the same goes for both 1.2 and 1.3 if I remove the 6517 read vi they run fine no matter how fast or how many times I run them. 
Somehow after the current source is set to operate and triggers labview will hang on a set interval when calling 6517 read vi.
Separately they work, together there is a problem. I tried placing a delay between these two by connecting the error out of the trigger vi to the error in of the delay block and the error out of the delay block to the error in terminal of the 6517 config block. I've also tried delays between other blocks connected the same way. From what I understand, a called vi can't execute until all inputs are present. Is this the correct way to wire the delays?

Similar Messages

  • Hi, my macbook screen goes black at random points when I am using it. I know it is still running as music continues to play and I can vaguely make out the content of what is on the screen. Sometimes the screen will flicker between black and normal. Can I

    Hi,
    my macbook screen goes black at random points when I am using it. I know it is still running as music continues to play and I can vaguely make out the content of what is on the screen. Sometimes the screen will flicker between black and normal. Can I fix this?

    Emily..
    Could be the graphics card, run the Apple Hardware Test
    If the hardware test doesn't reveal any problems, use Lion Recovery.

  • What is the programming (ABAP) difference between Unicode and non Unicode?

    What is the programming(ABAP) difference between Unicode and non Unicode?
    Edited by: NIV on Apr 12, 2010 1:29 PM

    Hi
    The difference between programming in Unicode or not Unicode is that you should consider some adjustments to make on the Program "Z" to comply with the judgments Unicode Standard.
    In the past, developments in SAP using multiple systems to encode the characters of different alphabets. For example: ASCII, EBCDI, or double-byte code pages.
    These coding systems mostly use 1 byte per character, which can encode up to 256 characters. However, other alphabets such as Japanese or Chinese use a larger number of characters in their alphabets. That's why the system using double-byte code page, which uses 2 bytes per character.
    In order to unify the different alphabets, it was decided to implement a single coding system that uses 2 bytes per character regardless of what language is concerned. That system is called Unicode.
    Unicode is also the official way to implement ISO/IEC 10646 and is supported in many operating systems and all modern browsers.
    The way of verifying whether a program was adjusted or not, is through the execution of the UCCHECK transaction. Additionally, you can check by controlling syntax (making sure that this asset verification check Unicode).
    The main decisions to adjust / replace are (examples):
    ASSIGN H-SY-INDEX TEXT TO ASSIGN <F1> by
    H-SY-INDEX TEXT (*) TO <F1>.
    DATA INIT (50) VALUE '/'. by
    DATA INIT (1) VALUE '/'.
    DESCRIBE FIELD text LENGTH lengh2 by
    DESCRIBE FIELD text LENGTH lengh2 in character mode.
    T_ZSMY_DEMREG_V1 = record_tab by
    record_tab TO MOVE-Corresponding t_zsmy_demreg_v1.
    escape_trick = hot3. by
    escape_trick-x1 = hot3.
    itab_txt TYPE wt by
    ITAB_TXT TYPE TABLE OF TEXTPOOL
    DATA: string3 (3) TYPE X VALUE B2023 '3 'by
    DATA: string3 (6) B2023 TYPE c VALUE '3 '.
    OPEN DATASET file_name IN TEXT MODE by
    OPEN DATASET file_name FOR INPUT IN TEXT MODE ENCODING NON-UNICODE.
    or
    OPEN DATASET file_name FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    CODE FROM PAGE TRANSLATE a_codepage record by
    record TRANSLATE USING a_codepage.
    CALL FUNCTION 'DOWNLOAD' by
    CALL METHOD cl_gui_frontend_services => gui_download
    CALL FUNCTION 'WS_DOWNLOAD' by
    CALL METHOD cl_gui_frontend_services => gui_download
    CALL FUNCTION 'UPLOAD' by
    CALL METHOD cl_gui_frontend_services => gui_upload
    CALL FUNCTION 'WS_UPLOAD' by
    CALL METHOD cl_gui_frontend_services => gui_upload
    PERFORM USING HEAD APPEND_XFEBRE +2. by
    PERFORM USING HEAD APPEND_XFEBRE +2 (98).
    Best Regars
    Fabio Rodriguez

  • Difference between -1 and null in the targettype filed

    Hi
    Could anyone advise what is the difference between -1 and null in the targettype filed in marketing documents?
    For example, in Sales Quotation - Rows (QUT1) table, I found for some open sales quotations, the field is null however the DB help file suggest the default value is -1 so I suppose it should be -1 for open documents.
    Many thanks for your advisory.

    Hi, Qian!
    I investigated that "-1" value appears in targettype field in Sales Quotation Rows (QUT1 table) when you Dublicate a Sales Quotation document (Ctrl + D). And NULL value appears when you create a new document without dublicating.
    In case you want to equal these 2 "empty"-values using T-SQL, you can use ISNULL(targettype, -1) function - this will give you -1 for both the "empty"-values
    HTH!
    Message was edited by: Aleksey Kuznetsov

  • Does anyone know what triggers the switch between text and iMessage in the middle of a conversation? Are there any differences in billing between text and iMessage?

    In the middle of a text conversation between another iOS 5.0 iPhone user and myself, the conversation elements switched back and forth several times between Text and iMessage. The phone actually tracked it and put little lines indicating the switch, and my comments changed from green to blue and back again. I can't think of anything I changed in the middle of the conversation. I was outside WiFi range, using the Cell network at the time. Now I tried it again, while i'm on WiFI and the messages are Text (green) again.

    1. Windows 8.1 Enterprise w Update is the best. It allows you for sideloading in corporate environment without additional tools and licenses.
    http://technet.microsoft.com/en-us/windows/jj874388.aspx
    2. N series is for EU (without IE).
    3. Profesional is fine, but you will need some tools to achieve the same functionality that you have in "pack" Enterprise.
    4. VL is volume license, a type of license for multiple computers (to say it simply)
    5. MSDN forum is better alternative for problems like this.
    6. Attached to MSDN are licenses or at least references to web resources. Read license agreements carefully and let your installation and use follow the license.
    Rgds
    Milos

  • Every time I toggle between silent and regular sound the sound effects disappear on mail how do I fix it?

    Every time I toggle between silent and regular sound the sound effects disappear on mail how do I fix it?

    With headphones?
    With speaker?
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                              

  • Events limit can only be dates between 1 and 9 on the day field

    Im an student, and im trying to put my timetable into ical as did last year
    it goes ok, i set it up to repit every week mondays lessons for example
    but when i am trying to set up a limit for this event to repit itself ical only allows me to
    put a date between 1 and 9 on the day field.
    Does anyone know why is that?
    sorry is my english is not so good im from spain and i might not explained very well
    thank you

    The x86 architecture has a standard formatting for disks that uses up to four primary partitions on a disk. On DOS or UNIX, you can view the partitions with 'fdisk'.
    This is layer that Windows and Linux tends to use for filesystems.
    Solaris though uses only one of those partitions for its own use (marking it a Solaris partition) and places a label similar to that on a SPARC disk (VTOC). So within the single x86 partition are several further subdivisions (slices).
    On solaris, the disk might be /dev/dsk/c0t0d0. You could access one of the Solaris (VTOC) slices as /dev/dsk/c0t0d0s0. As far as I know, Linux does not understand how to address the Solaris VTOC slices (If this isn't true, I'd love to know what the syntax for doing so is).
    You'd access the (non-Solaris) x86 parititions like /dev/dsk/c0t0d0p1 or so. While Linux can address extended x86 partitions, Solaris can only address primary partitions.
    Darren

  • Hi there, Will be possible listen and charge at the same time my iPod shuffle in my car?

    Hi there, Will be possible listen and charge at the same time my iPod shuffle in my car? I have got a jack going to my sound system the issue i would like to solve is charging at the same time

    Since the shuffle (except for the 1st gen shuffle) uses the same "port" (the headphones jack) for sound output and charging, there is no way to do both concurrently.
    NOTE:  You can charge and play at the same time on the old white 1st gen shuffle that looks like a USB flash drive.

  • TS1424 i downloaded a song and it shows the time length all to be correct but while playing the song will only play for about 30 seconds then skip to the next song in my list (all lists) - in short i payed for a song that is only of a preview quality

    i downloaded a song and it shows the time length all to be correct but while playing the song will only play for about 30 seconds then skip to the next song in my list (all lists) - in short i payed for a song that is only of a preview quality
    Either this needs to get fixed or i will request my money back because i will not work for my money while other lie about what i spend it on.

    Try deleting the problematic tune (electing to remove original file if/when prompted) and then re-downloading the file from the iTunes store.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option at the bottom of the screen of the iTunes app (or video app on your iOS device.
    If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.

  • Backing up to a thumb drive - time machine doesn't delete older backups when it's full. I will have to erase and re-do the drive. Why?

    Backing up to a thumb drive - time machine doesn't delete older backups when it's full. I will have to erase and re-do the drive. Why?

    You are both right.
    Time Machine can backup FROM:
    It cannot back up a USB thumb drive.
    Time  Machine can backup TO:
    •A USB thumb drive (but most aren't large enough, and are very, very slow)

  • Program to read html file and to open the links in that html file

    program to read html file and to open the links in that html file..
    ex:- to read automatically all next links in the html file and save it hard disk

    Start here;
    http://java.sun.com/products/jfc/tsc/articles/bookmarks/
    It gives you all of the information you need to parse the HTML file using the HTMLEditorKit that is a part of the Java SDK.
    Once you get the links from the file, then you can think about connecting to each.

  • HT203167 I lost my Ipad, the serial number is DMOJ2N70DVD1 . Im worried they will acces my file and account on the Ipad.

    hi
    I lost my Ipad, the serial number is DMOJ2N70DVD1 . Im worried they will acces my file and account on the Ipad.

    IF you have not done so already, you need to sign up for ICloud at www.icloud.com.  Sign in with your Apple account.  From there you can locate your iPad if it is turned on.  iCloud allows you wipe your iPad clean if necessary.  Oh and don't put you iPad serial number out there.  Someone may be able to hack into your account. 
    WHen you find your iPad change your password.

  • PSE 9 was running fine but will not start now and I get the following message:  This application has requested the Runtime to terminate in an unusual way.

    PSE 9 was running fine but will not start now and I get the following message:  This application has requested the Runtime to terminate in an unusual way.
    I have an HP Desktop running XP Professional and tried Restore but it didn"t help. I was just going to uninstall and re-install but I can't get in to deactivate.

    See if anything here helps:
    Troubleshoot C++ runtime errors | Adobe products | Windows

  • HT5429 Good day! How it could be?  In map of Moscow (Russia): street TVERSKAYA named as GORKOGO? P.S. Info from Wikipedia: Tverskaya, known as Gorky Street between 1935 and 1990, is the main and probably best-known radial street in Moscow, Russia.

    Good day! How it could be?  In map of Moscow (Russia): street TVERSKAYA named as GORKOGO?
    P.S. Info from Wikipedia: Tverskaya Street (Russian: Тверская улица), known as Gorky Street (Russian: улица Горького) between 1935 and 1990, is the main and probably best-known radial street in Moscow, Russia. The street runs Northwest from the central Manege Square in the direction of Saint Petersburg and terminates at the Garden Ring, giving the name to Tverskoy District. The route continues further as First Tverskaya-Yamskaya Street, Leningradsky Prospekt and Leningradskoye Shosse.

    We are not Apple, we are users here just like you. When in Maps, you have the ability to report a problem with a map, make use of that avenue, rather than just provide information here. We cannot do anything about it.

  • I recently bought the 27" IMac. I have to force shut it down, the menu shut down doesn't work, and most of the time it will start back up on it's own several hours or even days later. Any ideas?

    I recently bought the 27" IMac. I have to force shut it down, the menu shut down doesn't work, and most of the time it will start back up on it's own several hours or even days later. Any ideas?

    Note: No iMac PPC is 27".   PPC is for the iMacs that were new until the beginning of 2006.   They are all Intel now.
    I've requested a moderator move your thread.  No action is needed on your part.

Maybe you are looking for

  • Error -1074395975 occurred at IMAQ AVI Read Frame DirectX has timed out readin

    When i run the "Read AVI Example" on every kind of AVI file, I get the error: Error -1074395975 occurred at IMAQ AVI Read Frame DirectX has timed out reading or writing the AVI file. When closing an AVI file, try adding an additional delay. When read

  • 100% advance payment during sales order creation

    Dear Experts,            One of our international client is having one requirement for collecting the 100% advance payment from customer during sales order creation itself. Our customer is in Germany. For high risk customers they want to collect the

  • Screen Flickaring problem In Album App (c2305)

    I'm still using the basic version of the album (4.0.A.0.12) Application....,when I get each updates I will go for it to update but all the album updates in my Xperia device disappoints me,including the latest update 7.0.A.0.24. When I select photos m

  • HTML Controls in ABAP (not ITS)

    Hello...    How to build a HTML form and post it by internet inside SAPGUI (ABAP Program)....???  It's possible....???

  • How do i clear history in quick time

    i need to clear all the history from quick time, preview and recents