How come two signals of the same frequency show on the graph as having the same?

Hi!
My assignment for school is to build a 2 channel oscilloscope, with generators too. Initially, I tried using a waveform chart, that actually showed a very "ugly" image. Just for testing, I left the chart there with hidden indicator.
The student teacher suggested I use a graph, which is ok, as far as the shape of the signal. The "time" axis however doesn't really show the time.
Thinking that it might show the samples, I put at the "nr.of samples" the reciprocal of the sampling rate multiplied with 1000,000 and the result was the same. The really strange part is that if I'd put two different frequencies for each channel it showed as is the signals had the same frequency.
And that's not the only problem... The while loop everything is in doesn't look like it's executing more than once. Now, I know the vi is pretty large but is that what makes it behave like that?
I also put cursors (like in the example from Fundamentals> Graphs and Charts > Programatically Control Cursors) that should be in the middle of the graph. Since I didn't use a chart, are the values at "Style" or "Pointer Style" different? (I wanted the cursors to be multi-plot).
Can you help me with any of that?
Thank you very much!
Patricia

Hi Patricia !
First of all, I would suggest you to synchronize all actions according to data flow concept : try to link all property nodes with error wires... That way, you MAY notice some warnings/errors. Then you should try to group functionalities into clusters, that way your code would be easier to debug...
Then your While Loop runs as fast as possible (which makes your processor to run at 100% all time long), you should consider using a timing function to slow down the loop.
Then using "Graphs", the X-axis will display the number of samples in the array to plot. If you know the sampling frequency of your signal and the number of samples in the array, you can try use "Xaxis.Multiplier" property node to convert the number of samples into time.
Then for your cursors, you should consider using "Cursos List" property node... It's not really cool to program it (lot of options) but it works very well and allows you to deeply customize your cursors.
I hope this helps... Otherwise, don't hesitate to post another message !
Zyl

Similar Messages

  • How come my iPad with iCloud doesn't sync with my iPhone 4 that has same apple id and both ios5?

    How come my iPad with iCloud doesn't sync with my iPhone 4 that has same apple id and both ios5?

    Not sure if you just have an issue with your setup or something else.
    I had an issue where my numbers and pages documents were not syncing on my ipad, but were on my iphone. 
    I turned icloud off an on, reset the apps, even deleted them and reinstalled them.  I also checked all of the other icloud setting. 
    Only thing that worked (and it might be just a fluke)  I emailed from my iphone a numbers document to my ipad.  I opened then closed the document and the app.  When I opened it back up it started importing my icloud documents.
    If it is a settings issue then you need to be sure you have icloud setup in your mail settings.  Has to be there and active. 

  • Within redbox I can not click on a movie and get information about it, instead I get an error message that says that the situation may be temporary. yet i keep having the same problem. Do you have any idea how to fix the problem?

    Within redbox I can not click on a movie and get information about it, instead I get an error message that says that the situation may be temporary. yet i keep having the same problem. Do you have any idea how to fix the problem?

    Did you delete all receipts with iDVD in the file name  with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/  folder before installing the new copy?  If not then do so and delete the new application also.
    Click to view full size
    Then install iPhoto from the disk it came on originally and apply all necessary updaters: Apple - Support - Downloads
    OT

  • HT4972 how come i can not use iOS 6 on my ipad 3 to get the youtube or pinerest app? it keeps giving me a message to use iOS5

    How come i can not use iOS 6 on my ipad 3 to get the youtube and pinerest app? i keep getting a message to update to iOS5 if i must use iOS5 how do i update to that one because it just took me 4 hours to figure out how to update to iOS6

    We have read that any apps that use the google map app (removed by ios6) will not work.  We have lost a great camping app for this reason, and have heard that some weather apps are not working either.  The company line we've been given is it's up to the app developer to rewrite their apps.  ***** doesn't it.

  • I have purchased a new iPhone on the online store, but how come Apple can send me an repacking old device (with scar on both the border and the cable port)!!!!  And after I phone to their hotline for the issue, they asking to give me hk$400 cash coupons??

    I have purchased a new iPhone on the online store, but how come Apple can send me a repacking old device (with scar on both the border and the cable port)!!!!
    And after I phone to their hotline for the issue, they asking to give me hk$400 cash coupons???? This action make me very angry. I have pay for my goods, but they are giving me some repacking rubbish, and trying to treat me as a beggar????
    I have make the request to give me back a new device in good conditions, I will wait and look for what they will delivery.

    Do you feel better now that you have vented?
    This is a user to user forum... if you want/need assistance, contact Apple directly.

  • HT202159 I was downloading a app from the app store and it downloaded about 85% then gave an error message download failed but when I reopen the app store to the purchases the resume button show but when i click it the same error comes up failed to downlo

    I was downloading a app from the app store and it downloaded about 85% then gave an error message download failed but when I reopen the app store to the purchases the resume button show but when i click it the same error comes up failed to download

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
    /var/log ▹ install.log
    from the hierarchical list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, start over and note the time. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Why the CPU Frequency will just stated at 1189MHz when the X230 had AC Power ONLY (Battery Removed)?

    Dear All,
    I bought a X230 (i7) notebook.  I found that if removed the battery from the notebook and only use AC power with the X230 Notenook.  The CPU frequency will stated at 1189MHz.  It will not change no matter how many program the notebook is running.  The CPU frequency will rise to 2.9GHz or upto Turbo when the Notebook with battery or battery and AC power.  Why the CPU Frequency will just stated at 1189MHz when the X230 had AC Power ONLY (Battery Removed)?  This is not right.  Any setting in the X230 Notebook need to change?  Please help.
    Solved!
    Go to Solution.

    RichardW wrote:
    The situation is probably the same as it was for the X220. A 65W power adapter by itself doesn't provide enough power to run the computer at full speed, but it can when combined with a battery. However the 90W adapter may be able to run the computer at full speed without a battery.
    As it was with earler X-series. This is by design. It allows people to travel with the smaller, lighter 65W adapter. However for maximum speed and flexibility it's best to always use the 90W adapter.
    Cheers... Dorian Hausman
    X1C2, TPT2, T430s, SL500, X61s, T60p, A21p, 770, 760ED... 5160, 5150... S360/30

  • HT1491 How come I can't watch purchased tv show on my ipad if not connected to Internet?

    How come I can't watch purchased tv show on my ipad if not connected to Internet?

    There are two kinds of content, streaming and downloaded. If your show is a streaming show you have to be on the internet to view it. (akin to you not being able to watch youtube videos without being on the net)
    Downloaded files can be watched anytime (within the constraints of the DRM of course)

  • Can I use the same iTunes account for 2 iPads without having the same apps on both?

    Can I use the same iTunes account for 2 iPads without having the same apps on both? Everytime I try to sync my new iPad, it syncs all the apps that are on my account. If I can do this, can someone tell me how please???

    Yes you can, easily.  When you plug the first pad in to sync, note the name of the pad on the last pane.  Set up for that device whatever you want to sync.  When you are done, plug the second pad in.  Make sure it has a different name on the left pane.   Then sync to that pad whatever you want.  I tunes will remember what you did on each pad, and will start from there the next time you plug in.

  • I transferred itunes library from old PC to new PC. The content all shows when I launch iTunes on the new PC now. The previous content does not show in iTunes but folder still looks like it is on hard drive on new PC. Suggestions on how to properly merge?

    I transferred itunes library from old PC to new PC. The content all shows when I launch iTunes on the new PC now. The previous content does not show in iTunes but folder still looks like it is on hard drive on new PC. Suggestions on how to properly merge?

    Before you connect any device to a new library go to the Devices tab of the the preferences panel via Edit > Preferences (Windows) or iTunes > Preferences (Mac) and ensure the box next to Prevent iPods, iPhones, and iPads from syncing automatically is ticked. You can now safely connect the device to your computer without the danger of media being automatically deleted or overwritten.
    To get all your content off your connect your iPad to your new computer.
    Then use a 3rd party piece of software to transfer your content
    I have found Senuti useful but there are others listed in the article I linked to in a previous post.
    https://discussions.apple.com/docs/DOC-3991
    That will let you transfer your non purchased content
    For Purchased content log in to iTunes on the new computer
    In Itunes Store click on Purchased under the Quick Links section on the right.
    Download any music by clicking on the cloud button

  • How come only some of my iPhone music shows up on my Mac?

    How come only some of my iPhone music shows up on my Mac?

    Do you have more then one Apple ID? Have you tried signing out and back into the account?

  • How come my post on facebook doesn't show via iPhone?

    How come my post on facebook doesn't show via iPhone?

    Because that's not how Facebook does it anymore. I believe that it shows as "Mobile" regardless of the brand of mobile phone.

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • How do I get Adobe  Photoshop CS to show my Epson 3200 Scanner  in the list under File Import?

    How do I get Adobe  Photoshop CS to show my Epson 3200 Scanner  in the list under File Import?

    That will depend on installing a proper driver for the scanner that is compatible with the respective version of PS. But if you really mean a 12 year old PS CS1, it will be nigh on impossible to get this working with a brandnew scanner... Anyway, you wil lhave to provide more info about your system and clarify the points in question.
    Mylenium

  • When using the rectangle tool in CS5, a graph appears in the shape. How do I turn the graph off?

    When using the rectangle tool in CS5, a graph appears in the shape. How do I turn the graph off?
    Thanks!

    It might be the pixel grid if your zoomed in greater than something like 500% to 700%.
    Go under View>Show and uncheck Pixel Grid.
    Or maybe you have a layer style set in the tool options bar for shape layers.

Maybe you are looking for