08-16-2006 03:26 AM
Hello,
I work with LabView 6.i, with a DAQ-device type PCI 6040E and a block-connector type SC-2345. I have the following problems: First one, I want to synchronise an acquisition AI (1000 Hz, 16 channels) with a timer generation (Counter 1), and second one, I want to acquire (Counter 0) synchronously like a NI-TIO-based device.
I want to know every millisecond the number of pulses I get at the source pin of Counter 0, so I use the Counter 1 to generate a 1000 Hz square signal which I put at the gate pin of the Counter 0 and then I count the number of impulses I get at the source pin of the Counter 0. Moreover, this countering must be synchronised with my acquisition.
1) To solve my synchronisation problem, I looked at examples in the help of LabView like the Simul AIAO BufTrig(E-series) and tried to do the same as shown but I am not sure whether I have to wire “hardwarely” the PFI0-line with any signal or if it is done internally. Where can I find information about hardware-wiring of trigger signals ?
2) To solve my synchronous countering, I also looked at examples in the help of LabView and I read in the description of the VI Counter Set Attribute that it is not possible to count synchronously with my DAQ-device, it is only possible with NI-TIO-based devices. I want to know how many impulses I get every second at the source pin of the Counter 0. If I select for the task type of the VI Group Config the task Buffered Event Counting, it sums the number of impulses and it is not what I want, and if I select for the task type of the VI Group Config the task Buffered Period Measurement, it counts the number of impulses I get every millisecond but if I do not get any impulse during a millisecond, it takes automatically the previously impulse number and it is also not what I want. I want to know the number of impulses I get every second but also if I do not get any impulse, it should give me the number zero !
Answer accepted in French, German or English. Thanks for your help.
08-24-2006 08:15 AM
Hallo,
du solltest Dir überlegen ein Upgrade zu machen. Ab der Version LabVIEW 7, gibt es eine neue Treiber-API namens DAQmx, diese ist sehr viel ausgereifter und es gibt viel mehr Beispiele und sie ist einfacher zu programmieren. Des weiteren ist es für mich schwierig dies zu supporten, da ich LabVIEW 6 nicht mehr auf dem Rechner habe. (LV 7.1, LV 8 und LV 8.2 reichen auch).
Aber ein Multifunktionscounter hat weniger Eigenschaften wie ein TIO-Counter. Aber wie gesagt ein Upgrade würde sicher gut tun!
Grüsse
Alex
08-29-2006 09:51 AM
Hallo Alex R,
Besten Dank für Deine Antwort. Ich werde es probieren aber zuerst ich muss prüfen ob mein hardware mit DAQmx passt oder nicht ...
MfG
Riri