Problem with one control in Subvi to use in MainVi...

Hi,
I'll try to explain easy. I have my application with main window, where I do calculates and have one graph data. I use subvi to open the serial port and when I close the subvi, the data is drawed in the mainvi graph. Now I am trying to implement one option to do several test from serial port automatically. I want to have one Control Bottom in subvi, that when I active it, When I close the Subvi acquisition data, automatically active the save bottom and save the file and THEN open again the subvi ready to acquire another run of data. So I only need to start/Finish the data entry and it will going save diferent test in file.
I tried several things, but I have the problem when I active the option. In the first time, appear me BEFORE the execution of Subvi than the option to save the file. In the second run it seems works well, so 3rd,... the problem come when I disable the option in the Subvi and when I close the window in the mainVi the values aren't changed and appear the new save option and Subvi several times, until the iteration change and put 0 value and it works normally again. I am trying to retard the for/else 1 or 2 iterations but I dont know to do it, since The iteration value is increasing from starting the program and when I open the Subvi it only stops to count and when I come back again to Main continues with the last value. I would need the iteration of loop reset to 0 to say to the for/else to wait 2 iterations or use any counter... I tried to do it, but I spent my ideas.
I tried to do one example program in Lv7.1. 
It have the same structure and the same problem that in my program. In this example even I can't close the subvi between it is saving and re-openning it. I suppose since It is so simple, the active value do the subvi open directly.
I hope you tell me any idea to do it.
Regards, Fonsi.
Attachments:
Main.vi ‏55 KB
Subvi2.vi ‏14 KB

The reason why you seem to need that "extra run" is due to a race condition. If you watch your code in highlight mode you will see this. You have 3 independent case structure. Let's say you start the VI and then press the "Start Test" button. The main VI is now executing the True part of the top-left case. Meanwhile, the other two case structures are executing since there is no data dependency. They see the values of the local variables as they were when you pressed that "Start Test" button. You set the "Active Multiple Runs" to True. The top-left case ends, and now the loop can go to the next iteration since all code has completed. In this iteration "ActMultiple" is True, so in the bottom case structure you execute the True case where you delay for 0.5 seconds, and then set "NewRun" and "MultSave" to 1. Meanwhile, the other two cases have already run. You now finish this iteration and move to the next. In this iteration the top-left case evaluates to True since "NewRun" is 1. So you get the dialog. While the dialog is up, the other two cases have already finished. You set the "Active Multiple Runs" control to False. The subVI ends, "ActMultiple" is set to False. and the loop iteration completes. Next iteration. Even though "ActMultiple" is False, you are probably thinking that you will get the "NewRun" and "MultSave" set to False because of the bottom case structure, so the top-left and top-right should see the values. This is not what happens. LabVIEW will read the values of the local variables before you enter the bottom case structure to set them. This is the race condition.

Similar Messages

  • Hi, i have a macbook air and i've been having problems with the camera when i'm using skype. i know im no the 1st one and i'd like to know when apple or someone 'll do something about this.

    hi, i have a macbook air and i've been having problems with the camera when i'm using skype. i know im no the 1st one and i'd like to know when apple or someone 'll do something about this.

    Try reinstalling Combo Update.
    http://support.apple.com/kb/DL1676
    Best.

  • LaCie 6TB drive ejects when Air sleeps: I use two 6TB LaCie drives - home and office with my Air, which travels with me. Only have a problem with one. Is there a fix?

    LaCie 6TB drive ejects when Air sleeps: I use two 6TB LaCie drives - home and office with my Air, which travels with me between the locations. Only have a problem with one that inappropriately ejects when the Air sleeps (and only sometimes). Is there a fix? I've read others who believe that the problem is with the operating system (I'm using 10.9.2). But my problem suggests that it's with one of the LaCie's. Any suggestions about how to fix?

    Lacie doesnt make HD, thats a Seagate inside the box.
    Is there a fix?
    Yes, get a 4TB max HD,    6TB drives are both new and have known issues,  ...in fact so do most all 4TB drives.
    my problem suggests that it's with one of the LaCie's
    You mean Seagate
    Large external hard drives are great! Large external hard drives are horrible
    It is a common premise that people are overjoyed at the dropping prices per terabyte on external hard drives, and the first thing that enters most peoples minds is "great, I can put all my stuff on one drive,... all of it!" However considerations need to be made in creating a giant single choke point for not mere data loss, but seriously large data loss. If there is at the very least yet another redundant copy, this is fine, otherwise do not consider it whatsoever. Some 3TB and 4TB drives of all mfg. have, at the time of this writing, reliability concerns currently and best recommendation is staying at 2TB drives or less.
    Advantages and disadvantages of larger 3TB and 4TB external drives must be weighed

  • Problem with Table control lines

    Hi Friends,
    This is the problem with table control lines:
    I have screen with table control and I would like change the table control lines dynamicaly.
    Exp:
    In my PBO the Internal table which I am using to loop the TC is havig 7 records and its displayed with 7 records, now I have added one more record into my ITAB and now ITAB is having 8 records, when I am looping this ITAB with TC its taking the TC lines 7 only.
    here is the code:
    Initial values in gt_scr400 = 8
    Initial values in tc_scr400 = 8
    Now added one more recor into gt_scr400 , now gt_scr400  = 9.
      LOOP AT   gt_scr400
           INTO wa_scr400
           WITH CONTROL tc_scr400
           CURSOR tc_scr400-current_line.
      ENDLOOP.
    I have used this logic :
      DESCRIBE TABLE gt_scr400 LINES g_rec_300 .
      tc_scr300-lines = g_rec_300.
    but its not modifying the lines in my table control.
    How to change the TC lines based on ITAB total records.
    Thanks,
    Sridhar

    there is a field in TableViewName-xxx
    don't remember the exact field name for (total no of records)
    you can check it in debug.  when you add records in Internal table, u need to modify this field which is set at the first time when table control is populated.

  • URGENT ! JDEV 10.1.2 Problem with data control generated from session bean

    I got a problem with data control generated from session bean which return a collection of data transfer object.
    The dto's seem to be correct. The session bean load correctly the data into and the object's are plenty of data. Using the console to display the dto content is ok.
    When generating a data control from this session bean and associate the dto included in the collection only the first object level and one-to-one dto object are correctly setted in the data control. Object that represent collection into the dto (one-to-many foreign key) are setted as collection with an iterator but the structure of the object is not setted. I don't know how to associate this second level of collection with the dto bean class to obtain the attributes definition.
    I created a case with hr schema like the hrApp demo application in the tutorial with departments and employees table. I got the same problem.
    Is it a bug ?
    It exists a workaround to force the data control to understand the collection data structure ?
    Help is welcome ! this is urgent !!!

    we found the problem by assigning the child dto bean class to the node representing the iterator in the xml file corresponding to the master dto.

  • TS3276 I have recently had a problem with one of my hotmail accounts, some sort of virus sending random emails to people in my address book. Hotmail advised me to change my password for that account, which I did. Why won't mail recognise the new password?

    I have recently had a problem with one of my hotmail accounts, some sort of virus sending random emails from my address book. Hotmail advised me to delete all contacts and change the password for that account, which I did on my laptop running windows XP. The change was successful and I was able to send and receive emails with no problem. I then had to change the account password on my iPhone 4s, which I did and it too was successful but when I came to change the password on my iMac, running the latest version of Lion it would not recognise the new password. I have tried to remove the account details and re-install but every time I go to add new account my old details are in the box. This is very frustrating as I use my iMac for all my profects and I need to access my email. Please help.

    hi guys,
    I had already deleted all reference to the hotmail account in question from the keychain access app, I have also tried to delete and re-instal the account details from within mail. The icon in the side bar dissapears but when I go to Add Account, the old account details are in the new account box. I then input my new password but am told that the server does not recognise it. If I access hotmail via google on the iMac I can get into my account with no problems. I am thinking there must be some other form of security system within the mac software that is blocking the new password. This is driving me nuts. I have been trying to resolve this for the last two days. Thank you for your advise anyway.

  • Codec problem with one gateway

    I am having a very strange problem with one of my gateways. No matter how I set up my regions and device pools I continue to have all calls go through this gateway as G729. This would be fine except that I can't do conference calls because of codec mismatches.
    The gateway is a PRI running H323. CM 3.2.2(c) Gateway is a 3640 running 12.2.11(t)
    All regions are currently set to G711.
    I read something about a command under voice-port that sets the default codec. What I don't understand is, if this is what is causing it to go to G729, why is this the only gateway that ignores the regions.
    Any help would be appreciated.

    Cisco VoIP gateways support the codec negotiation feature. This feature provides the ability for a Cisco VoIP gateway to connect to other VoIP devices without necessarily knowing which codec is used for a call-setup. Also, this feature allows Cisco VoIP gateways to dynamically adjust to changes on remote devices. As long as the codec used by the remote VoIP device matches the capabilities-list of the Cisco VoIP gateway, the VoIP call is completed.
    The following example shows how to configure codec negotiation:
    Cisco-router# config t
    Cisco-router(config)# voice class codec 1
    !--- This sets up class 1 to be assigned to the dial peer.
    Cisco-router(config-class)#codec preference 1 g723r63
    Cisco-router(config-class)#codec preference 2 g729ar8
    Cisco-router(config-class)#codec preference 3 g711ulaw
    Cisco-router(config-class)#codec preference 4 g726r32 bytes 240
    !--- These commands define the preferred codec list using 1,2,3, and 4 to set the preference.
    Cisco-router(config)#dial-peer voice 1 voip
    Cisco-router(config-dial-peer)#voice-class codec 1
    !--- This assigns voice-class codec 1 to the dial-peer
    Cisco-router(config-dial-peer)#destination-pattern 4723155
    Cisco-router(config-dial-peer)#session target ipv4:192.168.100.1

  • Entire JDBC communication stopped if problem with one single JDBC interface

    Hello,
    Will the entire JDBC communication stopped if problem with one single JDBC interface?
    Thanks,
    Soorya.

    hi surya,
    this will happend if u use maintain order at runtime at interface determination.
    just uncheck this option if u dont neet EOIO.
    if you are getting the problem if u r going for EO then the problem might be using same JDBC channel for all interfaces.
    if each interface is expected with a high load then it better to go for dedicated channels for interfaces.
    like INTERFACE A should use JDBC A channel and INTERFACE B should use JDBC B channel.
    Thanks & Regards,
    Rama krishna

  • Problem with one computer: [RegTask] - Server rejected registration request: 3

    Hi!
    I having some problem with One of our clients, its mine :)
    It does not register with the site 
    ClientIDManagerStartup.log:
    MP_RegistrationManager.log
    I have no idea why! I don't even use https and PKI. I have done a reinstalled the client by removing "C:\windows\SMSCFG.ini" and the SMS certificates before install but it still won't register. CCMSetup logs return successfull. Boundaries is setup
    correctly.
    I have also tried to uninstall ccmagent and readded the computer object in SCCM and installed it through client push but still the same problem.
    I really don't want to reinstall the whole computer as I have already installed lots of applications i don't know if that will work anyway, could try to run a sysprep maybe.
    Any ideas?
     Thanks!  

    if that is the error you need to look at your IIS & Webdav & SQL Configurations... you can take some help from below blogs to troubleshoot this
    http://anoopmannur.wordpress.com/2011/04/20/configmgr-sccm-2007-mpcontrol-log-shows-httpsendrequestsync-fails-with-status-code-500-internal-server-error/
    http://www.windows-noob.com/forums/index.php?/topic/651-sccm-mp-issues/
    http://windows7sux.blogspot.com/2009/04/sccm-smp-500-error.html
    http://brothertu.blogspot.com/2010/07/how-to-quickly-test-to-see-if-sccm-mp.html
    http://social.technet.microsoft.com/Forums/en-US/configmgrsetup/thread/89c84077-f47c-427b-b73e-39478f34ebaf/
    Thanks, Prabha G

  • Problem with One-Step Approval of Contracts ws14000088

    Hi, I have a problem with the  One-Step Approval of Contracts ws14000088, the workflow can't find  approverat the task TS14007969
    regards
    Dayana

    Hi
    <b>Please go through these links, which will definitely help -></b>
    Which SRM version are you using ?
    Re: Problem with one step approval contract workflow
    Re: No Approver(s) Found
    Reminders for work item
    Re: How to add a new field to the notification mail
    Do let me know.
    Regards
    - Atul

  • Who else has a problem with parental controls enabled not being able to run Firefox on the Mac?

    Who else has a problem with parental controls enabled not being able to run Firefox on the Mac? (Any solutions?) (BTW. Chrome doesn't work either)

    Although FF4 is so nice I'm almost ready to ditch iGoogle!
    Please fix what appears to be an RSS/iGoogle issue with FF4...
    Gmail is fine, but titles dont show in most RSS feed gadgets and no stories, strangely, apart from this one:
    http://www.google.com.au/ig/directory?hl=en&url=www.google.com/ig/modules/builtin_news_technology.xml
    Which if you enter the last part of the url reports that
    "<Content type="html">
    This is a builtin module, so the UserPrefs and Content are ignored."
    Any ideas?

  • Im having problem with the dvd quality, I'm using compressor to convert the video fils from apple prores to mpeg2 .It doesn't matter how long my video is even if its just 5 minutes  I'm getting cut edges in the video , does anyone have any idea ?

    Im having a problem with the dvd quality, I'm using compressor to convert the video fils from apple prores to mpeg2 .It doesn't matter how long my video is even if its just 5 minutes  I'm getting cut edges/lines  in the video specialy if i have titles it comes up really bad , I took the same video to a friend of mine who have PC and he uses Encore , did the encoding there and it was just fine no problems! BTW I tried using doferent setings in compressor from CBR and VBR I even pushed up the setings to 8 or 9 BR and still no luck !
    does anyone have any idea ?
    Thanks in advence ...

    Let's focus attention on just the Sony. (What model and what resolution are you shooting?)
    For now, I'll assume you're shooting 1080i.
    Take a representaive clip  into a new sequence. Add a title.
    In your sequence, make sure field dominance is set to Upper.
    Set render settings to Pro Res 422.
    After rendering, export QT self contained.
    Import into Compressor (I'm now referring to v3.5).
    Select the 90 minute Best quality DVD preset.
    Open frame controls and turn on (click the gear icon). Set Resize filter to Best.
    Submit burn and check quality on TV.
    Good luck.

  • Problems with volume control, built-in speaker on HP ProBook

    Hi
    Recently installed Arch on a HP ProBook 4330s. Initially sound was working perfectly, but now I'm having problems with the built-in speaker.
    Using alsamixer in the terminal, I can independently control the volume of the headphone jack and the speaker, but it seems like the speaker is linked to the headphone volume instead of the speaker volume. Thus raising the speaker volume in alsamixer has no effect on the speaker itself, which only outputs sound as long as the headphone volume is raised and the loopback box is checked. This also means that the speakers cannot be muted while using headphones.
    I installed pavucontrol to see if I could gain any insight, but trying to select "Speakers" as output port seems only to have an effect the volume sliders in alsamixer. So no settings in PulseAudio UI could solve my issue.
    I have googled wide and far, but haven't found anything helpful. I tried reoading kernel modules snd-hda-intel, snd-hda-codec-idt, snd-hda-codec-generic, but nothing changed.
    Below is some info of my system. Please let me know if I need provide more. Any help is appreciated.
    aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    sysdefault:CARD=PCH
    HDA Intel PCH, 92HD87B1/3 Analog
    Default Audio Device
    front:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    Front speakers
    surround21:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    2.1 Surround output to Front and Subwoofer speakers
    surround40:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD87B1/3 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: 92HD87B1/3 Analog [92HD87B1/3 Analog]
    Subdevices: 0/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    lspci | grep -i audio
    00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
    pacmd list-sinks
    1 sink(s) available.
    * index: 20
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
    state: IDLE
    suspend cause:
    priority: 9959
    volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
    balance 0.00
    base volume: 65536 / 100% / 0.00 dB
    volume steps: 65537
    muted: no
    current latency: 19.81 ms
    max request: 3 KiB
    max rewind: 344 KiB
    monitor source: 25
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
    Stereo
    used by: 0
    linked by: 1
    configured latency: 20.00 ms; range is 0.50 .. 2000.00 ms
    card: 0 <alsa_card.pci-0000_00_1b.0>
    module: 6
    properties:
    alsa.resolution_bits = "16"
    device.api = "alsa"
    device.class = "sound"
    alsa.class = "generic"
    alsa.subclass = "generic-mix"
    alsa.name = "92HD87B1/3 Analog"
    alsa.id = "92HD87B1/3 Analog"
    alsa.subdevice = "0"
    alsa.subdevice_name = "subdevice #0"
    alsa.device = "0"
    alsa.card = "0"
    alsa.card_name = "HDA Intel PCH"
    alsa.long_card_name = "HDA Intel PCH at 0xd4a00000 irq 39"
    alsa.driver_name = "snd_hda_intel"
    device.bus_path = "pci-0000:00:1b.0"
    sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
    device.bus = "pci"
    device.vendor.id = "8086"
    device.vendor.name = "Intel Corporation"
    device.product.id = "1c20"
    device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
    device.form_factor = "internal"
    device.string = "front:0"
    device.buffering.buffer_size = "352800"
    device.buffering.fragment_size = "176400"
    device.access_mode = "mmap+timer"
    device.profile.name = "analog-stereo"
    device.profile.description = "Analog Stereo"
    device.description = "Built-in Audio Analog Stereo"
    alsa.mixer_name = "Intel CougarPoint HDMI"
    alsa.components = "HDA:111d76d1,103c167e,00100205 HDA:80862805,80860101,00100000"
    module-udev-detect.discovered = "1"
    device.icon_name = "audio-card-pci"
    ports:
    analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
    properties:
    analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
    properties:
    device.icon_name = "audio-speakers"
    analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
    properties:
    device.icon_name = "audio-headphones"
    active port: <analog-output-speaker>
    cat /proc/asound/cards
    0 [PCH ]: HDA-Intel - HDA Intel PCH
    HDA Intel PCH at 0xd4a00000 irq 39
    Last edited by frwdrik (2014-12-08 00:49:52)

    I do have all those packages installed. The volume controls were working perfectly for about 3 week, but now suddenly they are not behaving as expected. I don't know of any changes I made to my system that could have caused this. I suspected it might be a problem with the drivers, so I tried to find the appropriate driver at https://www.kernel.org/doc/Documentatio … Models.txt
    [frwdrik@frwdrik ~]$ cat /proc/asound/card0/codec#0 | grep -i codec
    Codec: IDT 92HD87B1/3
    But I cannot find this codec on that page.
    Last edited by frwdrik (2014-12-29 13:57:44)

  • Keyboard problem with T410 - Control Key

    I have a problem with the control keys on the keyboard of T410.
    I swapped my X200 keyboard over to T410 to check if it is software or hardware issues.  With the X200 keyboard, the 'Ctrl' key is not working.  With the T410 keyboard, 'e', 'd', 'c' and 'Ctrl' keys are not working.

    Welcome to the forum!
    I believe that X200 and T410 keyboards are mapped differently in BIOS.
    Can you find another T410/T510 keyboard to test with?
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Cache problem with one site

    I have a problem with not getting the latest version of a page on one site (that I am aware of).
    I can get the latest version of http://www.thefa.com/thefacup/more/competition-bulletins on IE but Firefox gives me a page that hasn't been updated. Attached file 1 shows the Firefox cache entry, file 2 shows the page displayed on FF and file 3 shows the page on IE.
    This has been a problem with that page since I started using FF over a year ago.
    The only way to get the latest version is to "reload the current page" which is not a major problem but is annoying.
    Is this likely to be happening with other pages that are not so obvious or is it some incompatibility between that page and FF?

    I disabled cookies and deleted the existing ones for this site but it didn't make any difference - I didn't expect it to.
    I didn't try "forgetting" the site as my understanding is that this just clears the cache and cookies at that time but it doesn't stop them being saved again.
    Is there a way of not caching a specific site? If not, I'll just continue to "reload the current page" when I need to.

Maybe you are looking for