Issue setting baud rate for IMAQ using Camera Link

I have a PCIe-1433 camera link board, with a Basler camera. I found that I can set the gain and exposure times directly in the camera using the serial link and serial commands. This works very well. I'm doing this programmatically using the CLAllSerial.DLL.
The serial commands take too long to send in my application due to the default baud rate of 9600, so I was able to send a command to the Basler camera to up its baud rate, then change the baud rate of the camera link serial com port to match it. The result is that I can talk very quickly to the camera. Sweet so far.
However, with both the Basler camera and the camera link com port set to the higher baud rate, I can no longer acquire images using the IMAQ imgXXX commands. I get a timeout from the serial commands that IMAQ must be using to control the camera for image acquisition. Essentially the IMAQ driver doesn't know about the baud rate change. I cannot see how I can tell the IMAQ driver what baud rate to use either. NI MAX also becomes unusable in this situation.
How can I, through the IMAQ driver, increase the baud rate of the serial commands to the camera over the camera link?
Cheers,
Wayne
Solved!
Go to Solution.

David,
I'll try to help if I can. Keep in mind that I'm using a stub into the DLL using Delphi as my development platform. That should not matter.
The DLL I'm tapped into is the IMAQ.DLL for the camera calls to get/set exposure time, gain, etc. The best reference I found for this is the NI-IMAQ help files that get installed with the normal NI install. There are important string constants that you need, to talk to the interface. I can't recall how I found these, but below are mine, in Delphi:
{ These are Basler camera attribute names we care about. }
BaslerCameraGainControlAttributeString = 'Gain'; { string result }
BaslerCameraGainValueAttributeString = 'Gain Value'; { numeric result }
BaslerCameraBitDepthAttributeString = 'Bit Depth'; { string result }
BaslerCameraExposureControlAttributeString = 'Exposure Control'; { string result }
BaslerCameraExposureModeAttributeString = 'Exposure Mode'; { string result }
BaslerCameraExposureTimeAttributeString = 'Exposure Time'; { numeric result }
BaslerCameraMaximumHeightAttributeString = 'Maximum Height'; { numeric result }
BaslerCameraPowerOverCameraLinkAttributeString = 'Power Over CameraLink'; { string result }
{ These are Basler camera attribute values we care about. }
BaslerCameraManualGainAttributeValue = 'Manual';
BaslerCamera12BitDepthAttributeValue = '12-bits';
BaslerCameraMaximumHeightAttributeValue = 2048;
BaslerCameraExposureControlFreeRunAttributeValue = 'Free Run';
BaslerCameraExposureControlTriggeredAttributeValue = 'Triggered';
BaslerCameraExposureModeAttributeValue = 'Manual';
BaslerCameraExposureTimeAttributeValue = 5;
BaslerCameraPowerOverCameraLinkAttributeValue = 'On';
BaslerCameraGainValueAttributeValueMinimum = 33;
BaslerCameraGainValueAttributeValueMaximum = 512;
MaxAttributeStringLength = 100;
The following code snippets, get and set gain and exposure times (I called it shutter speed), in Delphi:
function TNiVision.GetGain : double;
var
  TheGain : double;
begin
  if GetCameraAttributeNumeric( BaslerCameraGainValueAttributeString, TheGain ) then
    Result := TheGain
  else
    Result := BaslerCameraGainValueAttributeValueMinimum;
end;
procedure TNiVision.SetGain( TheGain : double );
begin
  SetCameraAttributeNumeric( BaslerCameraGainValueAttributeString, TheGain );
end;
function TNiVision.GetShutterSpeed : double;
var
  TheSpeed : double;
begin
  if GetCameraAttributeNumeric( BaslerCameraExposureTimeAttributeString, TheSpeed ) then
    Result := TheSpeed
  else
    Result := 1;
end;
procedure TNiVision.SetShutterSpeed( TheSpeed : double );
begin
  SetCameraAttributeNumeric( BaslerCameraExposureTimeAttributeString, TheSpeed );
end;
These then call into the DLL functions imgGetCameraAttributeNumeric and imgSetCameraAttributeNumeric. There is a formatting interface between the above and the actual DLL functions I didn't show that just reforms the Delphi strings attribute names into C null terminated char arrays.
I hope this helps. I've now moved on to using Pylon with GigE cameras, which is a much cleaner interface, but very different code.
Cheers,
Wayne

Similar Messages

  • What is the NI/Labview Limit on Baud Rate for a serial connection? Is 9600 the limit?

    Hello all,
    Is 9600 the max baud rate for LV? I'm currently using a LV RS232 cable in a loopback configuration to test...using 9600..and it works fine.
    What I wil be hooking eventually, they said they'd want to run it at 62,500 due to the crystal on the hardware this will be eventually hooking too.
    I just tried adjusting my baud rate on my loopback set up to 62,500....to see what would happen, and it error'd out.
    I'm hoping this can run faster than 9600...and when searching through the forum posts here...I seem to see things saying that it can......
    Any suggestions or links to info on this?
    Thanks in advance,
    cayenne

    It may be possible to do custom baud rates with standard hardware if you have the right hardware.
    I'm doing some cRIO/EtherCAT programming for an NI-9870 RS-232 module and got to wondering about some configurable properties called "Baud Rate Divider" and "Baude Rate Scaler" and found the following information on this page:  http://zone.ni.com/reference/en-XX/help/370984T-01/lvaddon11/crio-9870/
    Property
    Description
    Baud Rate (write only)
    Sets the target baud rate for the port. If you set the baud rate, the appropriate Baud Rate Prescaler and Baud Rate Divider are set automatically, and are calculated according to this formula:
    BaudRate = 3.6864 Mbps / (Prescaler * Divider)
    Note  The maximum Baud Rate for the NI 9870 is 921.6 Kbps.
    Baud Rate Divider (read/write)
    Specifies the divider for the baud rate as defined by the baud rate equation above. This property is useful for setting a custom baud rate programmatically. Use the C Series Module Propertiesdialog box as a calculator to find the appropriate divider for the desired custom baud rate. This value is an unsigned 16-bit value within the range 4–65535.
    Note  Any values outside of the valid range will be coerced into the range.
    Baud Rate Prescaler (read/write)
    Specifies the prescaler for the baud rate as defined by the baud rate equation above. This property is useful for setting a custom baud rate programmatically. Use the C Series Module Properties dialog box as a calculator to find the appropriate prescaler for the desired custom baud rate. This value is defined as a type def, either 1 or 4. A value of 4 is normally used only for very low baud rates.
    I'm fairly certain that the NI-9870 will work in other non-cRIO backplanes (like the USB-based NI cDAQ-9174) but whether or not it will support these same options in an alternate backplane is unknown to me. If you are interested, contact your NI technical sales person and ask them to get you an answer.

  • Best frame rates for 4 different cameras in multicam

    Well, I've been flopping around in different threads on this forum, but I think the question is beginning to finally take shape for me. Basically it's all about deciding on frame rates for four different cameras I will be using to shoot a 6-day intensive course I will be teaching. The video will be primarily for computer viewing (YouTube, Quicktime movies). Here are the cameras:
    2 new Canon cameras capable of frame rates of 60i, 30 frames per second progressive "recorded as 60i", and 24 frames per second progressive also "recorded as 60i" (there is a known issue with importing the 30 frames per second into fcpx, as fcpx does not recognize this as progressive, but ClipWrap can get around this).
    1 Sony capable of 60i, 60P, and 24P
    1 Sanyo capable of 60i and 30P
    Possible settings:
    Just do all at 60i, but people say this is not so good for computer viewing
    Canon at 30 fps (using ClipWrap to see it gets recognized as progressive), and the Sony and Sanyo at 60i. Will this cause syncing or other problems, mixing frame rates like this? How bad a hit in quality is 60i on computer screens?
    Canon and Sanyo at 30 fps, Sony at 60i
    Same as #3, but use JES Deinterlacer to get Sony 60i to 30 fps.(I tried this out, by the way, and the resulting frame rate, after deinterlacing, showed up in the inspector window at 30, not 29.97. Is that a problem?
    Anyway, I aplogogize for wearing out my welcome on this forum, and I thank everyone for creating such a wonderful bank of information.

    Not sure what you're trying to achieve here - for the best overall quality, if possible, choose a frame rate that all the cameras can achieve. That way you won't lose quality in the conversion.
    If you're not satisfied with that, you need to do some tests to see which gives you the effect you like best. Nobody here can help you really - it's up to you.
    Andy

  • How to auto-detect a baud rate on UART or Serial port. and how to handle different baud rates for Transmission and Reception

    Hi,
    Till now i have used only single baud rate for opening a port, writing some stuff and reading back from other end.  This time requirement is little different, can SerialPort class
    be used to have different baud rates for Tx and Rx, I have not seen that in the msdn, but any other ideas also welcome!!!. I am experimenting!!!

    When I look in the Info.plist file for the AppleUSBCDCDriver kext, which is what the driver should be for a USB modem, there are three driver personalities listed: DeviceClass = 2, DeviceProtocol = 0, DeviceSubClass = 0; DeviceClass = 2, DeviceProtocol = 0, DeviceSubClass = 2; DeviceClass = 2, DeviceProtocol = 1, DeviceSubClass = 2. When I look at the info for the Phone with USB Prober, the class, protocol and subclass are all 0 and it is assigned to the AppleUSBComposite driver which appears to be a default when it doesn't know what else to use.
    Does that information come from the phone or is it assigned by the Mac? I'm wondering if the Mac doesn't recognize the phone and is assigning default values, or if the phone is responding with the wrong values causing it not to be assigned to the right driver. Are there other USB utilities out there which could possibly configure the phone's USB port to identify itself correctly?

  • Airobet 1142n erased flash and set baud rate to 115200, can't send any commands

    Hi,
    I erased the entire contents of flash and let the WAP boot to AP. I set the baud rate to 115200 now all I get is gibberish. Once it reads from eeprom this shows up:
    Waiting for PHY auto negotiation to complete TIMEOUT !
    done
    Ethernet speed is 10 Mb - HALF duplex
    The system has encountered an error initializing
    the Ethernet port.
    The system is ignoring the error and continuing to boot.
    If you abort the system boot process, the following
    commands will re-initialize Ethernet, TFTP, and finish
    loading the operating system software:
        ether_init
        tftp_init
        boot
    The system is unable to boot automatically because there
    are no bootable files.
    C1140 Boot Loader (C1140-BOOT-M) Version 12.4(18a)JA3, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Compiled Wed 14-Oct-09 18:59 by prod_rel_team
    ap: üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü
    *** line too large ***
    Unknown cmd: üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü
    ap: üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü
    *** line too large ***
    Unknown cmd: üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü
    It can read from the WAP but doesnt allow me to send commands,
    Any ideas?
    Thanks

    Hi Tyresse,
    Please use this:
    https://supportforums.cisco.com/message/1255262#1255262
    Or
    Using the MODE button
    You can use the MODE button on 1100 and 1200 series access points to reload the access point image file from an active Trivial File Transfer Protocol (TFTP) server on your network or on a PC connected to the access point Ethernet port.
    This process resets all configuration settings to factory defaults, including passwords, WEP keys, the access point IP address, and SSIDs.
    Follow these steps to reload the access point image file:
    Step 1 The PC you intend to use must be configured with a static IP address in the range of 10.0.0.2 to 10.0.0.30.
    Step 2 Make sure that the PC contains the access point image file (such as c1100-k9w7-tar.122-13.JA.tar for an 1100 series access point or c1200-k9w7-tar.122-13.JA.tar for a 1200 series access point) in the TFTP server folder and that the TFTP server is activated. For additional information, refer to the "Obtaining the Access Point Image File" and "Obtaining TFTP Server Software" sections.
    Step 3 Rename the access point image file in the TFTP server folder to c1100-k9w7-tar.default for an 1100 series access point or c1200-k9w7-tar.default for a 1200 series access point.
    Step 4 Connect the PC to the access point using a Category 5 (CAT5) Ethernet cable.
    Step 5 Disconnect power (the power jack for external power or the Ethernet cable for in-line power) from the access point.
    Step 6 Press and hold the MODE button while you reconnect power to the access point.
    Step 7 Hold the MODE button until the status LED turns red (approximately 20 to 30 seconds), and release the MODE button.
    Step 8 Wait until the access point reboots as indicated by all LEDs turning green followed by the Status LED blinking green.
    Step 9 After the access point reboots, you must reconfigure the access point by using the Web-browser interface or the CLI.
    Regards
    Dont forget to rate helpful posts.

  • Airobet 1142n erased flash and set baud rate to 115200, cant send any commands

    Hi,
    I was trying to reset the WAP to default settings and after trying a bunch of things, I decided to erase everything in flash and send over the com port. I tried sending at 9600 but the file never made it. So I used the ap: set BAUD 115200 command and changed to the same on Teraterm, now all I get is gibberish when entering any key. I get this far:
    Base Ethernet MAC address: c4:7d:4f:xx:xx:xx
    Waiting for PHY auto negotiation to complete TIMEOUT !
    done
    Ethernet speed is 10 Mb - HALF duplex
    The system has encountered an error initializing
    the Ethernet port.
    The system is ignoring the error and continuing to boot.
    If you abort the system boot process, the following
    commands will re-initialize Ethernet, TFTP, and finish
    loading the operating system software:
        ether_init
        tftp_init
        boot
    The system is unable to boot automatically because there
    are no bootable files.
    C1140 Boot Loader (C1140-BOOT-M) Version 12.4(18a)JA3, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Compiled Wed 14-Oct-09 18:59 by prod_rel_team
    ap:
    then when I try to type something I get :
    ap: üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü
    *** line too large ***
    Unknown cmd: üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü
    ap: üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü
    *** line too large ***
    Unknown cmd: üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü
    Am I screwed?
    Thanks.

    The system is unable to boot automatically because thereare no bootable files.
    Hi,
    I think u deleted the IOS from AP. Now u need the new IOS.
    Please download the new IOS and put in flash:
    Regards
    Dont forget to rate helpful posts.

  • Setting Default values for field using custom.pll

    Hi All,
    I have an rquirement to set the default values on Meterial Tranasction screen for some condition
    I tried it in both ways via Form Personalization and using custom.pll
    i m using the following code in custom.pll
    form_name      varchar2(30):= name_in('system.current_form');
    block_name varchar2(30):= name_in('system.cursor_block');
    trx_type           varchar2(30);
    subinv                varchar2(30);
    begin
    if form_name='WIPTXMAT' and block_name ='MTL_TRX_LINE' then
    if event_name ='WHEN-VALIDATE-RECORD' then
         trx_type:=name_in('WIPTXMAT.TRANSACTION_TYPE');
    if trx_type ='WIP Return' THEN
         copy(10,'MTL_TRX_LINE.TRANSACTION_QUANTITY');
              copy(10,'MTL_TRX_LINE.NUMBER_OF_LOTS_ENTERED');
              sinv:=trim(name_in('MTL_TRX_LINE.SUBINVENTORY_CODE'));
              if sinv is null then
                   copy(subinv,'MTL_TRX_LINE.SUBINVENTORY_CODE');
                   copy(fr_locator,'MTL_TRX_LINE.LOCATOR');
                   FND_MESSAGE.SET_STRING(sinv);
                   FND_MESSAGE.SHOW;
              end if;
         end if;
    end if;
    end if;
    end event;
    Problem is that default values are getting set but not for all rows . if there are 4 records then values are set for only first 2 rows and if there are 2 rows then defaults are set for 1st row only.
    Same behaviour happens when i do it via form personalization
    i couldn't understand the behaviour of WHILE-VALIDATE-RECORD event..
    Please provide some suggestion on it. its really urgent.
    Thanks in Advance
    Renu

    Works Now...

  • Problem setting different width for images using HorizontalList tag

    Hi,<br />I succeeded using HorizontalList in my AdvancedDataGrid,<br /><br />  <mx:groupedColumns><br />...<br />...<br />  </mx:groupedColumns>  <br />  <mx:rendererProviders>            <br />        <mx:AdvancedDataGridRendererProvider   <br />            dataField="Actual" <br />            renderer="ChartRenderer" <br />            columnIndex="3" <br />            />         <br />    </mx:rendererProviders>  <br /><br />My Chartrenderer:<br /><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" <br />     xmlns:local="*"><br />  <mx:Script><br />    <br />          import mx.collections.ArrayCollection;<br />          import mx.controls.Image;<br />          private var images:Array;                <br />          private var catalog:ArrayCollection;          <br />          private static var cat:Array = [<br />              "kpi_overtime_bar_10.png", "kpi_overtime_bar_20.png",<br />              "kpi_overtime_bar_30.png", "kpi_overtime_bar_40.png"<br />           ];<br />          <br />                    <br />           private function initCatalog(items:Array):void<br />           {<br />              catalog = new ArrayCollection(items);<br />              myList.dataProvider = catalog;<br />           }<br />                                     <br />      <br />    </mx:Script><br />     <mx:VBox height="20" width="40%" xmlns:mx="http://www.adobe.com/2006/mxml"<br />          horizontalScrollPolicy="off" <br />          verticalScrollPolicy="off"><br />          <mx:HorizontalList width="100%" id="myList"  <br />               horizontalScrollPolicy="off"<br />               verticalScrollPolicy="off"<br />               columnCount="4" <br />               creationComplete="initCatalog(cat)"><br />              <mx:itemRenderer><br />                    <mx:Component><br />                         <mx:Image width="50%" height="20"<br />                              maintainAspectRatio="false"/>                                <br />                    </mx:Component><br />               </mx:itemRenderer><br />          </mx:HorizontalList><br />     </mx:VBox><br /><br /></mx:Application><br /><br />This is a test I've done to see if I can palce a list of images in a cell,<br />and I can :)<br /><br />I have 2 problems:<br /><br />1. Here the size of each image is contant, I need a way to set each image in the list to be different,<br />Can I do it? <br />2. I need to load the images dynamically and not from a fixed Array,<br />Can I do it?<br /><br />It will be great to get help.....<br />Thanks<br />Jo

    On Sunday 15 Feb 2009, Yossi Bar wrote:
    > I think not all my descussion detailes were shown,
    I think you should be asking on FlexCoders...
    Tom Chiverton
    Helping to collaboratively enable 24/7 plug-and-play portals
    This email is sent for and on behalf of Halliwells LLP.
    Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the
    registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
    CONFIDENTIALITY
    This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
    For more information about Halliwells LLP visit
    www.halliwells.com.

  • Get error message when setting up wireless on WRT160N using easy link Advisor

    I get this message - ERROR - EXCEPTION has been thrown by the target of an invocation -  when trying to get new laptop hooked up to lyncsys using easy link advisor

    What's the Operating System of the new computer? I've read on this link that the Linksys EasyLink Advisor (LELA) connection wizard can connect computers running on Windows XP, Vista, or 7 to the network.
    If you keep on getting the same message, manually connect the computer to the network. Here's the link to manually retrieve the wireless password.

  • Setting Due Date for task using business days

    While this may not be new news to many, I found little information on how to add a certain number of business days to determine the due date for a task to be used in a workflow.  For SharePoint 2010 environments that cannot run custom code, I have
    found a solution that utilizes two additional columns in the task list.  The first column I named
    Deadline (a number with no decimal places), which will contain the number of business days until a task is to be completed.
    The second I named Business Deadline (a calculated column returning a
    Date and Time).  The formula for the calculated column is:
    =[Modified]+INT(ROUNDDOWN([Deadline]/5,0)*7)+ IF(WEEKDAY([Modified]+MOD([Deadline],5))<MOD([Deadline],5), IF(WEEKDAY([Modified]+MOD([Deadline],5)+2)=7,MOD([Deadline],5)+4, IF(WEEKDAY([Modified]+MOD([Deadline],5)+2)=1,MOD([Deadline],5)+3,MOD([Deadline],5)+2)), IF(WEEKDAY([Modified]+MOD([Deadline],5))=7,MOD([Deadline],5)+2, IF(WEEKDAY([Modified]+MOD([Deadline],5))=1,MOD([Deadline],5)+1,MOD([Deadline],5))))
    The workflow on create in the task list then is:
    Set Deadline to {number of business days}
    then Wait for Deadline to equal {number of business days} 'Necessary to ensure the Business Deadline has been set
    'then Set Due Date to CurrentItem:Business Deadline
    Hope this helps a few others that are beating their heads against their desks like I was.

    Hi,
    Glad to hear that you solve this issue, thanks for your sharing.
    Thanks,
    Linda Li
    Linda Li
    TechNet Community Support

  • FTXP - Tax Maintaining issue - Updating tax rate for all Jurisdictions

    Hi Experts,
    Whenever i am trying to maintain a tax code for a perticular jurisdiction, whatever changes i make in the tax rate of the tax type are getting reflected in all other jurisdiciton as well instead of the one for which i am doing the changes. There is no custom dev. under this tax maintaining part and its a config issue as i am not able to replicate the same issue in the production system . After a lot of debugging of FTXP I did not get anything. Can anyone please help me out in this issue ?
    Regards,
    Rahul.

    Hi,
    I would just like to clarify.
    I try to post say using a tax code W1. However, I am prompted an error because my tax rate has not been maintained.
    I maintain the tax rate in FTXP, system prompts me that changes have been saved. When I go back to see the tax rate is not there anymore in FTXP. It is not visible.
    I maintained FV11 and I am able to post already. But in FTXP, I am still not able to maintain the tax rate.
    I am posting via FB70.
    Anyone can clarify why this is? And how can fix the fact that tax rate is not visible in FTXP?
    Thanks,
    Josef

  • Setting sample rate for sinus analog output

    Hello,
    I've been trying to do something very simple : using an analog output of the card PCI 6221 to produce a sinus curve of frequency 50 Hz. For this I used a Vi to create a sinus curve and the different DAQmx VIs. But I have difficulties understanding the principle of virtual channel and I think I'm doing a mistake setting the sample rate and samples number : one time for the sinus vi, second time for "DAQmx - Timing". Should I use the same values for both of these VIs ?
    On my oscilloscope, with frequency=50Hz and sample rate=1kHz, I get a null signal. Then depending on both values, I get differently rated signals. For example with f=1Hz and sr=10kHz, a sinus of frequency 0,7 Hz.
    Solved!
    Go to Solution.
    Attachments:
    Sinus analog output.vi ‏32 KB

    Yes, thanks for your advice. I used the structure given in the example and now it's working fine. I'm still not sure what I did wrong though.
    I would have a second question now (should I create a new topic?):
    I put a continuous sine wave on the analog output. As soon as this is running, (or maybe after a short delay) I want to measure a limited amount of samples on my analog input. How can I be sure, it's not going to start measuring before the output is properly set ?
    I don't think a trigger would solve the problem since I'm going to vary the output Amplitude.

  • I am so completely confused with how to best set up iTunes for family use

    Okay, I'm literally going crazy trying to get my Apple "ecosystem" set up. First, I'll try and explain my setup and then what I'm hoping to accomplish.
    My setup:
    1) Mac Mini - this is where my "master" iTunes library resides. iTunes Store is logged in with our single Apple ID that we use for all iTunes & App Store purchases. This Mac Mini also is where we store all of our photos within iPhoto.
    2) My wife and I each have an iPhone which is set up for wireless syncing to iTunes.
    3) My wife and I each have MacBook Pros.
    Here's what's working:
    1) Sharing all of the iTunes music and iPhoto pictures to my AppleTV (3rd generation) - This is working as expected.
    Here's what's I want to accomplish:
    1) We would like to be able to make purchases from the iTunes or App Store from either our Mac Mini, iPhones or MacBook Pros using our single Apple ID and have these purchases be available to all of our devices including the iPhones, MacBook Pros, Mac Mini and AppleTV.
    Ultimately, all of our purchases should physically reside on our Mac Mini where we sync the songs & apps we want to our iPhones wirelessly. What I'm finding out, is that purchases made on our iPhones and MacBooks will not download to the Mac Mini iTunes library. iTunes on the Mac Mini shows the purchases but when I try and download them I get a message that says "This computer is already associated with an Apple ID". I figured since iTunes on the Mac Mini is logged in with the single Apple ID I would be all set. What does this message mean?
    I'm sure to have some follow-up questions but I'm hoping to get this process started with this one first. Thanks for any help or advice you can provide.

    Maybe this will help:
    http://support.apple.com/kb/ht2105

  • How  to set default value for Zfeild using statusprofile

    hi experts,
    I need to set a default value for a zfeild using status profile.Although we can default the values,using getter and setter methods,but in my requirement,the feild will be defaulted when the page is locked,also in display mode,which will require me to write code to unlock then set the value and then write a commit,as there wont be any user action performed.
    I have created a zstatus profile and have set the required status to inital,but no luck
    please suggest if this canbe achived through status profile.
    Regards
    Anu.

    Hi,
    You can check in the getter if the Page is locked and then display the value to want to display. Note that this will be just Displaying the default value for the Zfield and it will not set the default value into  the Zfield in DB, because when the document is locked ( means locked for editing - mostly when system status is completed ) , setters are not called and so you can display the value but cant set it. This is fine if the value you want to display in Z field is just for user's informations and its not required to save this default value.
    The best approach would be to set the value in the Zfield before the page is locking. For example, If you wat to set the zfield value when status is set to "Completed" , then you can configure an action that is 1) triggered during saving of the document with 2) start condition "When status is completed"  ( both 1 and 2 you can mention in action defination ), then Implement this action badi in which you can set the Zfield to default value.
    This will ensure that default value is always set whenever the page is getting locked for editing ( i assumed that page lock means status completed ).
    Thanks & Regards
    Suchita

  • How to set my c6280 photosmart printer for half fold envelopes and set and save for future use

    I would appreciate an answer please email me thanks in advance for getting back with me.
    Bevy Ann

    Just set-up a new custom paper size.
    Go to the C6280 Printing preferences\Features\Resizing Options\Size:Custom
    Just enter the size of your half fold and give it a name.
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

Maybe you are looking for

  • SOS: JSON and internet explorer

    hi -- I posted the following a few days ago: JSON error in internet explorer 8 -- works fine in Firefox I haven't heard anything back yet from the forum, so thought I'd send out another SOS. I filed an SR, but this is outside the realm of Oracle Supp

  • TA21888 how to start a iMac with cd in the cd port

    How to start a IMAC 2010 / 2011 with cd in the tray thanks kids1

  • MDM 3.0 Installation - Business Package - License

    Back ground: We have completed the MDM 3.0 installation and now wanted to do installation related with EP. (Step 11 of section 2.5.1 in Master Guide for MDM 3.00). During the process, we get an message like: "However this business package is in 'Rest

  • DLL CALLBACK EVENT IN LABVIEW

    I am developing application using Labview 7. LabVIEW application is invoking VC++ dll. Is it possible in LabVIEW to get callback event from VC++ dll into LabVIEW application with some data like string ?

  • Null pointer exception when running OAF page

    Hi I am getting null pointer exception when i execute the code below. OAApplicationModule am = oapagecontext.getRootApplicationModule(); OAApplicationModuleImpl childam = (OAApplicationModuleImpl)am.findApplicationModule("QuestAnswerAM"); oapageconte