12-05-2014 05:51 PM
12-05-2014 10:39 PM
I don't see where you are trying to write new samples to the analog output inside the loop. I do see you trying to change the clock sample rate in the loop. Thata is what is probably causing your error because I don't think you'd be able to change your sample clock rate while a task is running.
12-06-2014 08:29 AM
I want to place E-SIM-OFDM(subvi) inside the loop, where it would produce fresh data (192 samples) for every iteration. Im not sure whether to use nested loop structure or what.
The data rate changing entity iside the loop that you mentioned can be removed it's not mandatory.
12-06-2014 03:57 PM
Your rate changing property node MUST BE removed.
Your subVI should be just fine inside the loop. The problem is that you never use the output of that subVI such as writing it to an Analog Write.
12-07-2014 07:18 AM
Thanks RavensFan.
I have modified the file and attached it. My data generation VI is working fine and data is being written as output on NI 9263's pin ao0. But still i'm not able to receive it at same time on Pin ai0 of NI 9201 module.
I have tried different approachs i.e. serial triggering, but Read is not triggering on every loop iteration.
Im trying to implement a Visible light communication system using Enhanced SIM-OFDM. I have designed my modulators and demodulators. Now i want to use Cdaq as DAC and ADC of Transmitted and received signals respectively. I'm not able to get a hang of Cdaq yet.
12-08-2014 09:54 AM
Hi ahsan911,
This may or may not be the source of your problem, but the DAQmx Start Task VIs should come before the while loop, not be in the while loop. Try moving those VIs out of the loop to the left side.
You may also be interesting in looking at some of our DAQmx example programs. You can find these in LabVIEW by going to Help->Find Examples. There are many examples you would probably find very useful under Hardware Input/Output->DAQmx