Example: "Digital - Conitinuous Output" How does it work?

I have to generate a sequence on three channels (with my NI 9375 Digital Output card on a cDAQ9188).
In 1 second, the sequence consists of, for example:
channel 1: starting low .. on 15 ms high .. on 865 ms low again
channel 2: starting high .. on 115 ms low .. on 650 ms high again
channel 3: starting low .. on 85 ms high .. on 920 ms low again
This have to be conituously generated and hardware timed.
For this application, they advised me to work with the example "Digital - Continuous Output". Can anyone explain to me how I get this sequence with the "Data To Write" Controls-box on the Front Panel? And how can I visualise my generated sequence?
Thanks in advance!
Solved!
Go to Solution.

Hello Hannes,
There are 2 major things that you have to keep in mind in this case regarding the example you're using:
- The sample rate you're going to use has to be high enough.
In your case the minimum sample rate has to be 200 Hz (seeing that your smallest step is 5 ms).
Of course you could also use any multiple of this.
- At the other side you have to check how the array of unsigned integers in the Data to Write is related to your digital outputs.
Depending on which Digital Outputs you're using one of the bits in your unsigned integer will correspond to one of your Digital Ouputs.
This mentioned the "difficult" part starts:
Seeing the period is 1 second and if you have selected 200 Hz (5 ms period sampleclock) as the sample rate, then:
- For channel 1:
the first 3 bits should be 0, the next 170 [= (865-15)/5] should be 1, the remaining 27 (200-173) bits should be 0.
- For channel 2:
the first 23 bits should be 1, the next 107 [= (650-115)/5] should be 0, the remaining 70 (200-130) bits should be 1.
- For channel 3:
the first 17 bits should be 0, the next 167 [= (920-85)/5] should be 1, the remaining 16 (200-184) bits should be 0.
To represent this visually the best thing you can do is to use 3 arrays of 200 booleans for the 3 channels.
These arrays can be easily shown in a Digital graph
You then have to make a very simple conversion algorythm to convert these 3 arrays of 200 bits/booleans to 1 array of 200 unsigned integers.
Is my explanation a bit clear to you?
Note: Here we took 1 as high and 0 as low.
Kind Regards,
Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
CLD, CTA
If someone helped you, let them know. Mark as solved and/or give a kudo.

Similar Messages

  • What is a content management system how does it work in coldfusion?

    hi again
    help?
    what is a content management system how does it work in
    coldfusion?
    snippets?
    examples in Coldfusion?
    thanks

    Googleing "content management" brings up 120 million hits.
    Good place to start.

  • How does vip work?

    Today, a VIP mailbox magically appeared in my mailbox list. I was the vip. But, the folder contained only my emails for one mailbox. I have several mailboxes. I went to another mailbox & activated myself as a vip. Now, there are two of me as vip's, but each vip mailbox contains different emails. I want all my emails, in all mailboxes, to be under myself as a single vip. How does vip work, so I can do that?

    Does this info from Mail>Help assist?
    To keep track of messages you receive from especially important people, make them VIPs in Mail. You can have up to 100 VIPs.
    To make someone a VIP, move the pointer to the left of the sender’s name in the message header and click the star that appears. You can also move the pointer over the sender’s email address, click the arrow that appears, and choose “Add to VIPs” from the pop-up menu.
    A mailbox for the VIP is added to the Favorites bar. For example, if you make Dad a VIP sender, his messages are displayed in a VIP mailbox titled Dad.
    To remove VIP status from a sender, click the VIP’s star in a message. The star is removed and the sender’s VIP mailbox is removed from the Favorites bar.
    If a VIP has several email addresses in Contacts, messages from any of those addresses will appear in the VIP’s mailbox.
    If you use iCloud Contacts, your VIPs are available on your other Mac computers that use iCloud Contacts and have OS X Mountain Lion installed.

  • How does composition work?

    How does composition work?
    Can someone explain it to me ,some example for me would be better.

    Composition and Aggregation are two important UML Concepts. Both of them are associations. They explain how one object is related to another object. So lets talk about all three.
    Association: This means that one object uses another object. For example, you use your car so we can say that you are associated with your car. In UML this is drawn as a plain line between the two objects.
    Aggregation: This means that the target object is part of the parent object. However it is important to note that an aggregation can have a cardinality of 0. Some simple examples are the doors of your car. This is drawn as a line between the classes with an empty diamond on the side fo the object doing the aggregation.
    Composition: This is a form of aggregation in which the object doing the aggregation (the object grouping the child objects) has life cycle control over the child objects. By this I mean that the object being aggregated cannot exist outside the aggregating object. An example of composition is a position on a checkers board. If we create the class CheckersBoardPostition, this class cannot exist outside of our class CheckersBoard. So we say that the CheckersBoard is composed of CheckersBoardPositions. This concept is drawn as an aggregation line, except that in this case the diamond is filled in.
    Generally when determining relationships of objects you ask the questions "Is a?", "Has a?" and "Uses a?"
    If you answer "Is A?" with "yes", then it is inheritance (aka generalization) Eg: A bar stool is a chair.
    If you answer "Has A?" with "yes", then it is aggregation. Example: A car has a wheel.
    Once you determine "Has a?" then you ask, "Can the aggregated object exist outside of the aggrgating one? In the case of wheel and car, the answe is "yes" and thus it is not composition. If the answer is no, then it is compostion.
    If you answer "Is A?" with "yes", then it is association. For example: A person uses a car.
    The concepts have the following importance. The top one that applies is used to model the relationship.
    Generalization > Composition > Aggregation > Association.
    -- Derisor

  • How does clickandbuy work?

    how does clickandbuy work?

    AirPlay is a means to wirelessly stream audio from your iTunes host device to an AirPlay-Ready one. Both the AirPort Express and the Apple TV are examples of AirPlay-Ready devices.
    Please see the following Apple Support article for more information: Using AirPlay

  • How does AirPlay work?

    How does AirPlay work?

    AirPlay is a means to wirelessly stream audio from your iTunes host device to an AirPlay-Ready one. Both the AirPort Express and the Apple TV are examples of AirPlay-Ready devices.
    Please see the following Apple Support article for more information: Using AirPlay

  • How does autoFS work?

    How does it work? I guess on a more technical aspect. Why do some of my samba shares not show up? Would they show up better if they were afp or ftp or something? And why do they then show up after I go to server and put in the ip address? I've added a share to my login items but I guess that only means when I boot up and not when I login from sleep. I even have an alias to a folder on the share on my desktop hoping that would create the link needed but it doesn't really work. How can I make the Finder/AutoFS scan the network for shares?

    AirPlay is a means to wirelessly stream audio from your iTunes host device to an AirPlay-Ready one. Both the AirPort Express and the Apple TV are examples of AirPlay-Ready devices.
    Please see the following Apple Support article for more information: Using AirPlay

  • 0BALANCE logic ,how does it work

    Gurus,
    in 0FIGL_C10 we have the key figure 0BALANCE ,can any one explain how does it work .
    it has properties
    aggregation ="SUM"
    Exception aggregation ="LAST VALUE"
    Agg.Reference Char = "0FISCPER"
    said that
    if we have 3 records coming from ECC below ,what is the value stored in the infocube as all of the values are coming on same period 05/2009.
    Gl account   Amount     period
    123               1000 $     05/2009
    456               2000$      05/2009
    789               3000 $     05/2009
    thanks in advance

    Zuben,
    There are three records in your case it might be for three differnent char at detail level for example
    Period1    Cost center1    GL A/C1      KF1
    Period1    Cost center2    GL A/C1      KF1
    Period1    Cost center3    GL A/C1      KF1
    In this case 0 Balance will be for each cost center. If in next month there is no data for Cost center2 then next period the 0balance for costcenter2 will be same as previous period.
    It depends on what is the lowest level of details you have in cube for same period/account etc.
    if in other case for example you do not have cost center in your cube than the data for Period 1 will be
    Period1 GL A/C1 KF1KF2KF3
    Please let us know if you have further questions.
    Regrads,
    Kams

  • Call Horizon - How does it work

    Hi All,
    I have a doubt related to call horizon and how does it work.
    We have a strategy with the following cycles:
    C1 - 250 Hours
    C2 - 500 Hours
    C3 - 1000 Hours
    C4 - 2000 Hours
    In strategy, if we define a call horizon of 90% how the system generates the schedule calls?
    C1 - 250 H - 250 H * 90% = 25 Hours earlier
    C2 - 500 H - 500 H * 90% = 50 Hours earlier
    C3 - 1000 H - 1000 H * 90% = 100 Hours earlier
    C4 - 2000 H - 2000 H * 90% = ~2000 Hours earlier
    Is that correct?
    Regards,
    Rogério Reis

    hi
    it is not the case of cycle unit ,it is the combination of current counter,and annual performance .
    for example i have created a maintenace plan of 1000h,2000h,3000h with the call horizon as 90% and with the annual estimate as 3650 ie 10 h/day
    then while scheduling system will calculate the call day as per the least couter cycle ie in normal reaching 1000 h will take 100 days ,since the 90% call horizon is there system will consider 10 days in advance or 100 hrs
    hence for the next cycle aslo sysem will consider the 10 days advance or when the counter reaches 1900
    regards
    thyagarajan

  • How does this work?

    This is not a complaint, but a confused sigh of admiration. I've got an email account at the university where I teach. When I got my iBook, it took me a while, and a few conversations with IT at the school, to get this account working in the Mail application. (Since I have a Verizon DSL at home, I had to include that SMTP as the outgoing server.) Anyway, I synched this mail account (along with my AOL and .Mac accounts) onto the iPhone, and it works perfectly, both incoming and outgoing. I didn't have to change any of the settings. I thought I was computer savvy, but I can't wrap my mind around this. It seems like magic. How does it work?

    The sync process with iTunes transfers the email account settings (for your chosen accounts via your iPhone sync preferences) from the Mail application on your Mac to the iPhone's email application.
    The iPhone is running OS X and the iPhone's email client can be considered a mobile version of the Mail application.

  • My iPhone was stolen and I have contacted the police who are using the meid number to locate.  How does this work and what are my chances of getting the phone back?

    My iPhone was stolen.  I used Find My iPhone app to lock it and display a message.  The phone has not connected to the internet to locate it.  I contacted the police and they have taken my meid number.  How does this work and what are my chances of getting the phone back?  Are there other ways the theif can use it.  I was told once they put in a new sim card and use it, whatever software the police have, it will show up.

    Honestly? In the US (I can't speak to other countries, though I doubt it works much differently in a lot of the world) The police took your report and filed it either in their computers or, on paper. They will now not think of this again. The only time it will cross anyones mind is if, in the course of entering information into evidence about items recovered or seized at a crime scene, the serial number of an iPhone that was found/seized happens to match yours, in which case you will be contacted.
    The police in the US can and will do nothing to 'blok' the phone and it's not worth their time to try and locate it unless you know for a fact that it was stolen by a big time drug lord, master criminal, or some other such prime target and they can get a court order to track the location of the phone in order to locate this individual for your own purposes.  If they do that, they'll probably keep him under surveilance for a year or so before they act.
    Basically, the police don't care about your phone. If they find it, they will give it back to you. They are not, however, going to go looking for it. They have better things to do.
    I'm sorry, but that's the way it is.

  • Was told a USB device would create a PDF automatically from the data contained within when plugged into my USB port. Doesn't seem to work. How does this work and how can I fix the device I received?

    Acrobat is not on the USB device - only Adobe Reader needed on the PC. How does this work? How can I fix this device if at all?

    You need to ask the people who sold it to you. Doesn't sound like it has anything to do with Reader.
    However, you should be wary of devices that automatically try to open files when plugged in. They can also infect your computers with all kinds of viruses or malware.

  • HT2357 So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    Fantastic!  Didn't work at first so restarted App store and tried again.  This time it asked 'ignore update'.  All gone!

  • TS1425 My co worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    My co-worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    You need to transfer the iTunes Library from the most recent backup you made before the hard drive was replaced.
    You can't transfer the full iTunes Library from the iPad back to iTunes.
    There are third-party Windows applications that will transfer data from an iOS device, but they don't re-create the iTunes Library exactly as it was before.

  • How does Remote work with Apple TV?

    How does Remote work with Apple TV?
    1. Does Remote, "Play" the music that resides on your iPod Touch>Apple TV>Home Speakers.
    OR
    Does Remote "Control" the music that resides on Apple TV HD>Home Speakers.
    (If so... say you have a iPod Touch that only holds 8GB's but your music collection on your Apple TV exceeds that amount.
    Will Remote still "Control" the larger music collection on Apple TV or your computer?)
    2. Will iPod Wifi work on a patio outside a home to control Apple TV inside the home?
    thank you in advance, Tom

    Remote is a way to control iTunes on either your computer or Apple TV using a WiFi connection. See this article for complete instructions.

Maybe you are looking for