This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6678 Triggering NI-DAQ for Measurement ?

Other Parts Discussed in Thread: OMAP-L137

Hello everyone,

I have some measurement to do using National Instruments DAQ, but I need a signal (edge signal perhaps?) to trigger the DAQ to start acquiring data. I'm thinking of port that I can use from the board. My board is TMDSEVM6678L from Advantech. Maybe there is instruction/function to write in C to do this from my code ?

Any reply is appreciated.

Note: I've posted the similar question but on OMAP-L137 in OMAP-L13x, AM1x and C674x Processors Forum.

Kind regards,

Rizuan

  • What are you trying to measure?  Depending on what you want to measure a simple item would be to use the GPIO as a trigger mechanism.

    Best Regards,

    Chad

  • Hi Chad,

    I'm trying to measure a few things 1) power of the board , and 2) execution time from certain part of my codes.

    I also thought of using GPIO. Is there any documentation on programming the pins ? Does the programming/codes for this particular board is similar with other boards e.g. OMAP-L137 ?

    Thanks Chad for replying.

    Rizuan

  • I'd suggest using the timers of the device and getting timestamps for getting these measurements as this will be significantly more accurate than using GPIO's for execution time of parts of your code.

    The programmation of the GPIO's are probably very similar to that of OMAP-L137.  I'd suggest looking at the CSL in the MCSDK for the the device.

    Best Regards,

    Chad

  • Chad Courtney said:
    I'd suggest using the timers of the device and getting timestamps for getting these measurements as this will be significantly more accurate than using GPIO's for execution time of parts of your code.

    That is right. I am already use the timers. Actually, my main purpose is to measure the board power. Timing is just the second thing.

    Chad Courtney said:
    The programmation of the GPIO's are probably very similar to that of OMAP-L137.  I'd suggest looking at the CSL in the MCSDK for the the device.

    Unfortunately, I don't have much time. But I've found a fast solution and it's work!

    I simply tap a wire to one of the programmable LED (I believe it is connected to the FPGA) and use that as trigger. The code is already there in a sample project. At first, I wasn't expected that the trigger to be fast enough but it gave almost all exact values from the timer.

    I simply program the LED to OFF (initially it was ON) means HI (according to the schematic we can see the details) and my DAQ will start triggering and I can pause the measurement by program the LED to ON. 

    Many thanks, Chad for your reply.

    Rizuan