Setting Property at design time and run time differ outputs

On AI OCX Object I have set property in BUFFER>>Number of Scan to acquire = 600, Allocation Mode = Host Memory, Return data type = scaled data only And in Clock >> Clock=Scan, Clock Sourec Type = Internal,Scan/Second = 600 And in CONDITIONS>> Condition=Stop and Continuous..
But when I want to set them at runtime I am not getting proper output
I have defined at runtime...
CWAI1.NScans = 600
CWAI1.ScanClock.Frequency = 600
CWAI1.AllocationMode = cwaiHostMemory
CWAI1.ScanClock.InternalClockMode = cwaiFrequency
CWAI1.ScanClock.ClockSourceType = cwaiInternalCS
CWAI1.UseDefaultBufferSize = True
CWAI1.Configure CWAI1.start
Please guide me ... where I am gettin
g wrong
Best Regards"

Hmmm, it looks like everything you have is correct. Except that it appears you haven't specified the channels you want to acquire from. I would expect to see something like this:
CWAI1.Channels.RemoveAll
CWAI1.Channels.Add "1,2,3"
I have attached one of the shipping examples that also programatically specifies the properties. You might use it as a comparison to your code. I hope this helps.
Regards,
Russell
Attachments:
FiniteAcquisition.zip ‏4 KB

Similar Messages

  • How to add values dynamically for custom property during design time?

    I am trying to create a user control with custom properties. I have a property named Server.
    And Values for this property is system dependent. I have the code that can generate the values and is working fine.
    During the design time, when I include this control in my application, and type the property name, I want Visual Studio to prompt for the values. Like it
    does for Alignment property for some controls shows Left, Right, Center.. during design time.
    If the Values are static, I can use an enum and it works fine. I need help with dynamic values.

    You can't, afaik.
    It's either an enum or you don't get that functionality of values.
    There is no right left centre, "Towards the top right but just off centre" - which I just thought of... option for example.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Set env using a script and run the command (dependency on the env)

    I need to set the env varaible by running a shell script with arguments as 'ksh setEnviron r6.1' and then run the command in the
    same process. the command has dependency on the previous script which sets the env variables.
    With Runtime.getRuntime().exec( cmd1); ,Runtime.getRuntime().exec( cmd2); I am not able to execute the Cmd2 as it is running in different process.
    How do solve this issue.
    Is there any other method to run the command to set env variables and run the second command.(dependent on the env) to get the output.
    Please help me out in this.

    ganesh_mak wrote:
    final String[] commands = {
                              ". setEnviron r6.1",
                                "/usr/add-on/test/Xbin/sql name from list where date.eq.05/22/08",
    Process penv = Runtime.getRuntime().exec("/bin/sh");
    BufferedReader br = new BufferedReader( new InputStreamReader( penv.getInputStream() ) );
    BufferedReader stdError = new BufferedReader(new InputStreamReader(penv.getErrorStream()));
    final OutputStream writer =  penv.getOutputStream();
    for (int i=0; i<commands.length;i++)
         writer.write(commands.getBytes("utf-8"));
         writer.write("\n".getBytes());
    String line;
    while((line = br.readLine())!=null){
    System.out.println(line);
    br.close();
    writer.close();
    I tried the above code but its not working...............
    please correct me.
    Do you think I used the '-i' argument just for fun? Did you do a 'man sh' and 'man bash' to see what the arguments do? If not then do it now.
    Do you think I used Theads to process stderr and stdout just for fun? I've shown you the basic approach. I have shown you how you need to create Threads to process stdout and stderr. If you have not understood and you have not studied http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html then do so now.
    Edited by: sabre150 on Jun 2, 2008 3:43 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Subform Set visible in Design View and not PDF preview

    I have created a form and used several subform sets, all of the sets and subforms within it are set to visible, but when I look at the PDF preview and when I upload the form into my internal system some of the sections are missing. I am not sure what is wrong, can someone please help!?

    A subformset is used when you have numerous different subforms that can be laid down but the imbound data stream will determine which subform to lay down. For exmple if you have a form that has a a different verbiage based on state then you can have all of the subforms defined that could possibly go there then when the data is merged the state is derived and only the one for that state is used.
    Hope that helps
    Paul

  • Can I set-up two podcast feeds and run them through the same itunes account?

    I'm trying to set-up an additional podcast feed for iTunes for a different site than my personal podcast feed, but I don't want to have to create a second itunes account. Any suggestions?

    You can submit any number of RSS feeds with your current account - there is no limit.
    Rob W
    podCast411

  • Difference between Design Time and Runtime

    Hi all, very nice to be here sharing knowledge with each other.
    I wanna share my practical experince knowledge that is ,
    Almost all the properties that can be set at the Design time for any object can also be set at the Run-time using only
    GET_object_PROPERTY and SET_object_PROPERTY.
    In fact, I have posted the same info on some othr place, too.
    Thanx.

    Hi all, very nice to be here sharing knowledge with each other.
    I wanna share my practical experince knowledge that is ,
    Almost all the properties that can be set at the Design time for any object can also be set at the Run-time using only
    GET_object_PROPERTY and SET_object_PROPERTY.
    In fact, I have posted the same info on some othr place, too.
    Thanx.

  • ActiveX, WingMan Joystick, Immersion TouchSense: can't set "design time" property

    I am trying to control a Logitech WingMAN force feedback joystick from
    LabVIEW, via the ActiveX control provided by Immersion Corporation
    (ImmWeb.ocx).
    I know I have basically got the ActiveX right, because I can control
    other
    Immersion-enabled devices (Logitech iFeel mouse) fine.
    However, I can't get the WingMAN to work: the ActiveX control has a
    dtDirectXForbidDevice property, which I need to change to
    dtDirectXRequireDevice. Immersion have told me that this property is
    set
    at design time, and is read only at run-time. Trying to set it at
    run-time
    returns an error. How should I set this property, ideally within
    LabVIEW, but alternatively by some other means?
    Many thanks.
    Patrick
    p
    .[email protected]

    Aaron Marks wrote in message news:<[email protected]>...
    > I'm not sure about this one, but try right clicking on the control on
    > the front panel and selecting the Property Browser. See if you can
    > change the property there.
    I can _SEE_ the property there, but I can't change it. 8-(
    Patrick

  • Having very difficult time setting up and running time capsule and airport

    I am having a very difficult time setting up and running airport express and time capsule. My time machine is not being recognized by my mac. The amber light keeps blinking. I'm ready to stsrt over.

    #3 for itunes streaming. I reset the base station and eventually was able to get the backup working and now my green light is on. Next I'd like to be able to play itunes using Airport Express and have connected to my stereo receiver in another room.
    AirPort Express Base Station (AX) - iTunes Setup
    Either connect to the AX's wireless network or connect directly, using an Ethernet cable, to the Ethernet port of the AX, and then using the AirPort Utility in "Manual Setup" mode, make the following changes:
    AirPort Utility > Select the AX > Manual Setup > AirPort > Wireless
    Wireless Mode: Join a wireless network
    Network Name: <existing TC's wireless network>
    Wireless Security: <select the encryption type of the existing wireless network>
    Wireless Password: <enter the existing wireless network password>
    Verify Password: <re-enter the existing wireless network password>
    AirPort Utility > Select the AX > Manual Setup >Music
    Enable AirTunes (checked)
    iTunes Speaker Name: <enter desired speaker name>
    iTunes Speaker Password: (optional)
    Verify Password: (optional)
    Click Update to write the new settings to the AX

  • I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    Instead of getting annoyed, read the User's Guide and try basic troubleshooting.

  • Last computer i was able to make 3 profiles and run 3 windows. each time it asked for the profile when i wanted to start each window. how can i set that up again

    ast computer i was able to make 3 profiles and run 3 windows. each time it asked for the profile when i wanted to start each window. how can i set that up again

    last time some1 set it up for me. i would only have 1 shortcut on my desktop. everytime i clicked on it, it would ask me which profile i wanted. even if i had 1 or 2 of the others open it would still ask me which profile i wanted to open. i want to be able to do it that way again.
    yes i already set up the 3 profiles. but once i open up the one profile, and click on the short cut to open another, it just opens a brwser window with the profile in use. so i could open 10 windows, its only 1 profile, the first profile i used.
    and yes i have the box not checked

  • Unable to install the GEAR driver set at this time.The GEARAspiWDM service used bz the GEAR driver set is scheduled to be deleted during the next system reboot.Please reboot the system and run iTunes again.help me..I understand this problem..thanks

    Unable to install the GEAR driver set at this time.The GEARAspiWDM service used bz the GEAR driver set is scheduled to be deleted during the next system reboot.Please reboot the system and run iTunes again.help me..I understand this problem..thanks

    Hi there, i had the exact same problem and posted a thread a few above yours, and these forums wasnt much help nobody replied, so i did a bit of research and followed all the intructions on this site: http://www.gearsoftware.com/cfknowledgebase/articledisplay.cfm?articleid=296
    If you follow the steps very carefully and do as each says, this will solve your problem.. Now i am very happy i can actually install iTunes and use it for my iPod.
    Remember to be carefully with the steps as the things you will be deleting are very important to your comp.
    Hope this helps.
      Windows XP  

  • Context at design time and run time

    Hi,
    Can anyone tell me what is the difference between context at design time and context at run time?
    Regards
    V. Suresh Kumar

    The structure of context is usually defined at design time while context node and attributes are created at runtime based on the design. However, it is possible to modify the contents of context as well as to alter its structure at runtime too. To help understand it better, see these 2 online presentations.
    1.  [The context at design time|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f059fe81-90f2-2a10-9593-cda1645f0020].
    2. [The context at run time|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a015df6f-28f3-2a10-0291-e8e5c8aeb1bd].
    Hope it helps,
    Vishwas.

  • Syncing design time and run time view in WPC

    Hi,
         We use WPC to develop web content. Especially when we use the table control provided in the Htmleditadvanced(advanced paragraph) component for creating web content the size of the font that is displayed in design time is very big. We do control the font size at run time by altering the font style available in the /etc/wpceditor/runtime/styles folder. But a the same time we are unable to alter the font style at designtime so that we can have the design time in sync with run time when the page is previewed. We did try exploring the css files available in /etc/wpceditor/designtime/styles folder, but was not of any use.
    Any pointers will be appreciated.

    Hi ulahoti,
    Welcome to our forum, I have downloaded your "Basic Project", I think it looks well after change
    <Border
    CornerRadius="20" Background="Black"
    Padding="8">
    <Border
    CornerRadius="20" Background="White"
    Padding="8">
    <GroupBox
    Header="Fading Mode" Background="White">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition
    Height="*"/>
            <RowDefinition
    Height="Auto" />
    </Grid.RowDefinitions>
    to:
    <Border
    CornerRadius="20" Background="Black"
    Padding="8">
    <Border
    CornerRadius="20" Background="White"
    Padding="8">
    <GroupBox
    Header="Fading Mode" Background="White">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition
    Height="Auto"/>
            <RowDefinition
    Height="Auto" />
    </Grid.RowDefinitions>
    If your issue persists, or I have misunderstood your concern, please let me know, and share your
    main concern
    with me, then I will do my best to resolve your issue.
    Best regards,
    Sheldon _Xiao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • HT1461 Win 7 set up and running OK,but after go back from OSX the wireless net work stuck at identification cause the window working without Internet.Can we fix it or I must use Windows off line all the time? I already contact Microsoft 2 times for activa

    Win 7 set up and running OK,but after go back from OSX the wireless net work stuck at identification cause the window working without Internet.Can we fix it or I must use Windows off line all the time?
    I already contact Microsoft 2 times for activations.Hope I can fix from Apple instead.

    Ok....Got "Problem 2 and 4" solved....still trying to figure out this pop up everytime I click something...it's crazy how fast the pop up blinks...maybe once or 3 blinks then nothing till you close the window, then pop up then disappears...then click something
    else and pop up then gone....never seen this before...ive seen it when you tried to get online which turned out to be a virus on a customers cpu I worked on some years ago, I think it has something to do with the deleted files that I spoke of on last
    post...I notice it does it on start up as well.....think something is trying to install but not sure. Need to figure out where the appdata or start up folder and see whats in there....maybe it's in there.......so I might wait to see how it acts in the next
    couple days for "Problem 1"...but other than that it's running like a champ...so right now I just want to get the pop up windows to stop........thx again for everyone's help on this.
    John

  • How to set App Module Config parameters at run time?

    Hi,
    I am using jdev 11.1.1.3 and developed a Fusion Web Application application.
    Before moving the code to production I want to have a stress testing where I should be able to set the application module configuration parameters at run time.
    So I would like to know what are the options are there to achieve this instead of setting the same in design time.
    Any help would be appreciated.
    ~Abhijit

    AT SELECTION-SCREEN OUTPUT.
      PERFORM radio_hide_options.
    FORM radio_hide_options .
    IF rad =  ' '.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'RT1'.
              screen-input = '0'.
              MODIFY SCREEN.
            WHEN 'RT2'.
              screen-input = '0'.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSEIF rad = 'X'.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'RT1'.
              screen-input = '1'.
              MODIFY SCREEN.
            WHEN 'RT2'.
              screen-input = '1'.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
    endform.

Maybe you are looking for