01-12-2006 12:52 PM - edited 01-12-2006 12:52 PM
Message Edited by Briconn on 01-12-2006 12:54 PM
01-12-2006 01:06 PM
You are right you will need a hardware task to synchronize the start of the tasks, if they are started without a trigger they will be started with a software "task start command" and they will be asynchronous and there will be an indeterminate amount of time between the tasks. Use the daqMX trigger vi to set the source of the trigger (probably a digital edge) and make sure you set both tasks to share the same hardware trigger source (PFI line) you will then be able to send a digital pulse from another counter or even an external TTL pulse to start both tasks.
Paul
01-12-2006 03:29 PM - edited 01-12-2006 03:29 PM
Message Edited by Briconn on 01-12-2006 03:30 PM
01-12-2006 04:23 PM
01-12-2006 04:48 PM
01-12-2006 04:58 PM
01-13-2006 11:51 AM
01-16-2006 11:29 AM
Hi Bri,
You can find an example code of exactly what you are trying to accomplish with 6602 at http://forums.ni.com/ni/board/message?board.id=170&message.id=161054 . However, this code uses DAQmx driver and in your original posting you mentioned that you have the traditional NI-DAQ driver. In order to be able to use this code you will have to download the DAQmx driver (assuming that your OS is Windows) from http://digital.ni.com/softlib.nsf/websearch/4c9e45f6ee5c29f98625708900712cbc?opendocument&node=13206.... Given that you are fairly new to LabView, I would strongly suggest using the Daqmx driver rather then the traditional because it's much simpler for programming. Also, if you want to get more info about the 6602 such signal connections you can reference the user manual http://www.ni.com/pdf/manuals/322137b.pdf.
In this example the counters are synchronized using an external source as a trigger by default. However, you can specify to use your onboard clock as source for the start trigger in the "Triggering Parameters" field. The onboard clock is automatically wired to PFI 2 and PFI 6, so you don't have to make any extra physical connection other then the counter connections. If you do decide to use an external clock then, you will have to wire it to any available PFI lines.
I hope this helps.
01-16-2006 12:31 PM
01-16-2006 12:44 PM
Hi Bri,
My bad .... i posted the wrong link
The correct link to the example code is http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DC9F56A4E034080020E74861&p_....
Sorry about that, I didn't realize my error until I posted the response.