04-02-2009 11:02 AM
I am trying to generate two analog waveforms with a PCI6229 DAQ. The waveforms do not require synchronization as they are independently controlled via the front panel. The engine speed signal works just fine, it's the vehicle speed signal that is giving me fits. The signal only appears to be functioning for specific periods of time then it shuts off and restarts again, repeating this cycle. I'm thinking that is has to do with the timing of the signal within the DAQ device, however I cannot figure out how to share a clock signal that does not use the same waveform. In addition the output frequency from the DAQ card is several time higher than what is being requested at the function generator.
Can anyone offer some suggestions, I have search this forum and the example code in LV but can't find a solution for this particular problem.
Thanks,
Dave
04-02-2009 11:44 PM
Post back for any queries.
04-03-2009 11:52 AM
JK
Thanks for your input, I wired a timing node into the both signals but could only get one or the other to operate at a time. By putting the timing node on the vehicle speed sensor only, I can get a signal at both outputs but the vehicle speed signal is nowhere near the requested frequency, it is many times higher. To me this looks like a timing issue, just not sure how to correct it. I located this document, but it appears it is only for signal express.
http://zone.ni.com/reference/en-XX/help/371268J-01/expresswb/master_timebase_sharing/
Thanks,
Dave
04-03-2009 12:38 PM
04-06-2009 12:22 AM
Hi,
You have 6229 hardware and it is capable of sharing clocks within it. You can generate a clock using one of the counters and use that line as the master clock for all the tasks you create. This works fine and i have tried in my application too.
Post back for queries.
04-07-2009 07:35 AM
04-10-2009 10:01 AM
JK,
I have located the source default for Dev/ctr0, which is PFI 8, but what I don't understand is how to route a signal to this terminal from within the device. I have been searching help and example finder but can't seem to locate how to wire this in the VI. I am continuing my search but can you point me in the right direction?
Thanks,
Dave
04-13-2009 04:23 PM
Dave,
I would recommend using the DAQmx Connect Terminals which can be found on the NI-DAQmx Palette >> Advance >> Signal Routing. This will allow you to connect different terminal in the card to one another. Make sure to also use the DAQmx Disconnect Terminals VI at the end of your program because the terminals will not be disconnected automatically and can cause a headache later if you forgot you connected the terminals. Hope this helps.