Home > Community > Forums > Custom IC SKILL > waveScan problem

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 waveScan problem 

Last post Wed, Apr 8 2009 3:38 AM by Andrew Beckett. 3 replies.
Started by leongec 02 Apr 2009 09:47 PM. Topic has 3 replies and 1784 views
Page 1 of 1 (4 items)
Sort Posts:
  • Thu, Apr 2 2009 9:47 PM

    • leongec
    • Top 500 Contributor
    • Joined on Mon, Feb 2 2009
    • Posts 20
    • Points 265
    waveScan problem Reply

     hi, i have some problems in using the wavescan, hope somebody can clarify for me. 

    i know how to set the axis attribute, as shown in the following

      wave3=getAsciiWave("temp1" 1 2)
    drGetWaveformXVec(wave3)~>units="V"
    drGetWaveformXVec(wave3)~>name="Vds"
    drGetWaveformYVec(wave3)~>units="A"

    my problem is, i have more than one data in the wavewindow,

    it's not only wave3, but wave4 and wave5 , etc. i cant set the axis attribute with the code shown above, can anyone tell me how can i settle this?

    thank you 
     
    leongec 
    • Post Points: 20
  • Fri, Apr 3 2009 7:10 AM

    Re: waveScan problem Reply

    You should be able to just do this:

    foreach(wave list(wave3 wave4 wave5)
      drGetWaveformXVec(wave)~>units="V"
      drGetWaveformXVec(wave)~>name="Vds"
      drGetWaveformYVec(wave)~>units="A"
    ) ; foreach
    

    Regards,

    Andrew.

     

    • Post Points: 20
  • Tue, Apr 7 2009 8:25 PM

    • leongec
    • Top 500 Contributor
    • Joined on Mon, Feb 2 2009
    • Posts 20
    • Points 265
    Re: waveScan problem Reply

    hi Andrew, thanks for your reply! :) it's worked :):)

    • Post Points: 20
  • Wed, Apr 8 2009 3:38 AM

    Re: waveScan problem Reply

    I'm slightly confused, because I got another email from you (appears to be from the forum) saying that this didn't work:

    hi Andrew, thanks for your reply, but i cant do that by this method. The following is my code. Initially i get the data by using getAsciiWave, then i plot it in the Window and followed by the foreach to set the axis. After i execute my code.. the axis doesnt show... i have no ideal what 's wrong with it.. 
    
        newWindow();
    
        wave1=getAsciiWave("value1.txt" 1 2)
        plot(wave1)
        wave2=getAsciiWave("value2.txt" 1 2)
        plot(wave2)
        wave3=getAsciiWave("alue3.txt" 1 2)
        plot(wave3)
        wave4=getAsciiWave("value4.txt" 1 2)
        plot(wave4)
        wave5=getAsciiWave("value5.txt" 1 2)
        plot(wave5)
        
            
        foreach(wave list(wave1 wave2 wave3 wave4 wave5)
              drGetWaveformXVec(wave)~>units="V"
                 drGetWaveformXVec(wave)~>name="Vds"
               drGetWaveformYVec(wave)~>units="A"    ) ; foreach
    

    That's because you need to change the attributes on the wave objects before you plot them. Probably easiest to remove calls to plot() after each getAsciiWave, and then add a call plot(wave) within the foreach loop.

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by leongec at 02 Apr 2009 09:47 PM. Topic has 3 replies.