04-07-2008 02:54 PM
04-08-2008 06:15 PM
04-09-2008 08:56 AM
Hi Kent,
I know that it is not usual the way i want to do things...
The main goal is to synchronize a serial instrument query based on a GPS Pulse per second.
I changed the strategy and here is what i've done(And it's working as i want): Configure an Analog input task timed with the PFI0 input(GPS PPS) and set the Daqmx Create timing source(Signal from task) with that task. This is based on a Labview example.
A timed loop now start an iteration each time a GPS pulse is issued and then a query is sent to my instruments base on that GPS event.
I do not read the analog data because i dont need that information. What is a bit annoying is to use an analog input ressource for nothing.
Do you have enough informations to understang what im trying to do?
Do you have any advices?
By the way, I'm using a PXI-6220 board.
Regards,
Guillaume
04-10-2008
06:06 PM
- last edited on
09-21-2026
05:45 PM
by
Content Cleaner
Hi Guillaume,
Thanks for the additional information. It sounds like you have a pretty good handle of what you are trying to do now. The data acquisition task is required since it is specifies how the virtual channel is configured so the computer will be monitoring the input for your signal. If you wanted more information on the task structure in DAQmx, you can check out this article or the NI-DAQmx Help file. The way you currently have your program seems to work just fine. One suggestion may be the use of DAQmx event structure which will generate a trigger in software when a certain condition has been met. There is more information on DAQmx events here and are a few examples utilizing these functions in the Example Finder.
Regards,
Kent
Applications Engineer