LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed:Real time generation of data

Hi mike,
        
   I changed it to analog output AO-voltage,And when i am running it is showing the errors like
 
         I/O type of the physical channel does not match the I/O type required by the virtual channel that you are creating
         Physical channel name                      :    Dev1/ai0
         Vitual channel name                           :    Dev1/ai0
         I/O type required for virtual channel   :    Analog output
         Task name                                         :    your task

  I  am also changed the physical channel setting from  analog input to analog output.why this error is coming?

  I can change my data in between 3.5 to -3.5 .So,i think then it is possible to get the signal.I s it true?
 Thanks,
 Bharath
        

0 Kudos
Message 21 of 29
(1,228 Views)
Hi Mike,
             Now it is running with out errors but not able to produce the waveform .
             I am attaching the final VI and the modified data.
            Can you please figure out the  mistakes in it??
 Thanks,
 Bharath
Download All
0 Kudos
Message 22 of 29
(1,219 Views)
Hi Mike,
         Sorry to trouble you.
         Now it is showing.
 Thanks
 Bharath
 
0 Kudos
Message 23 of 29
(1,210 Views)

Hi Bharath,

no problem. Smiley Happy What did you change?

Mike

0 Kudos
Message 24 of 29
(1,205 Views)
Hi Mike,
   I didn't modify anything except for physical channel "I/O Name Filtering".
  
   Now this is almost working but only problem here is  gap or duration in between my waveform and it is continuous.
   Can you see it?
   I couldn't able to trace where the gap between the waveform is coming.I am attaching the VI and the data.
   What setting that we have to change to eliminate the gaps.
   Can you check it please?

Thanks,
Bharath
Download All
0 Kudos
Message 25 of 29
(1,193 Views)
Since your text file does not change, there is no reason to read it over and over. You are effecitively passing a 'new' waveform to the DAQmx Write with each iteration of the while loop. You should modify the VI to match one of the shipping examples that does continuous generation. One is Cont Gen Voltage Wfm-Int Clk and another is Cont Gen Voltage Wfm-Int Clk-On-Board Regeneration.
0 Kudos
Message 26 of 29
(1,190 Views)
HI Mike,
                 I need the data as a waveform by repitition i.e,continuous generation.
                 It is giving continuous waveform but in between my data values some time duration is coming?
                 Apart from that it is continuous.
                 Can you  tell me,which setting to be changed to eliminate the gap between my wavefrom.
                 Please check my VI to ensure?I attached it in previous post.
Thanks,
Bharath
              
0 Kudos
Message 27 of 29
(1,173 Views)
Mike,
         when i am changing the "wat untiul next ms multiple" from '250' to some less values in the loop i am getting the more continuous waveform.The gap has been reduced a lot.
         But,when iam keeping it as '10' or less the gap is getting reduced but the waveform is not clear or overlapping is coming?
         How can i get the clear waveform.
 Thanks,
 Bharath
0 Kudos
Message 28 of 29
(1,169 Views)
Hi Bharath,
try it without the "wait until ..." and use the timeout from the write vi. See the attached example. Did you look at the examples which Dennis mentioned?
Hope it helps.
 
Mike


Message Edited by MikeS81 on 05-07-2008 12:58 PM
0 Kudos
Message 29 of 29
(1,159 Views)