From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing 1 PCI 6220 and 2 PXI 6711 Boards

Hello,

I have created a program that writes both digital signals to the PCI 6220 board and analog functions to two 6711 boards.  Upon testing the output of these boards on the oscilloscope, I discovered that the timing of the digital board was about a half of a second behind the timing of the analog board.  If anyone has any ideas about why this may be happeneing itd be greatly appreciated.  I believe it is a synchronization mistake.  I have the boards connected with an RTSI cable but i never reference the cable in the program.

0 Kudos
Message 1 of 10
(2,887 Views)

Do you really have a PCI 6220 and 2 PXI 6711's.

 

How are you interconnecting the PC card with the cards in the PXI chassis? What is the source of the synchronization you are wanting to use?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 10
(2,882 Views)

That's my mistake, I just looked at the board and saw they are both PCI 6711, and all three boards are connected with an RTSI cable.  I was hoping to use one of the RTSI lines available on each of the boards for synchronization.

0 Kudos
Message 3 of 10
(2,852 Views)

Under DAQmx Advanced functions there is a VI called DAQmx Connect Terminals.vi that allows you to internally connect various signals to the RTSI bus (among other locations). This will connect your cards to the RTSI signals.

 

What is the source of the synchronization signal?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 10
(2,847 Views)

I was hoping to connect the RTSI line to one of the 32 bit counters available on the boards.  Currently my program uses three independent counters for output.  However when I try to define a constant on the source node of the Daqmx connect terminal vi, it will only allow me to pick from RTSI lines and the reference clocks, no counters are available.    

0 Kudos
Message 5 of 10
(2,844 Views)

One solution would be to run a wire (a real one! you know with copper inside it? Smiley Wink ) from the counter output to one of the PFI lines on the same card and then tie the PFI line to RTSI bus...

 

There might be a more elegant way of doing it that someone could share, but this would certainly work. Just make sure that you document in your code the assumption that this jumper wire is in place.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 10
(2,841 Views)

So, if I run a counter to a PFI input line can I reference that same line for the clocking of the three program pieces?  just to make sure i only need to run the one physical wire from the counter output to the PFI inpur right?

0 Kudos
Message 7 of 10
(2,827 Views)

Yes, because what you will do is use the VI I mentioned before to route the PFI signal to a line on the RTSI bus.

 

You then configure your other boards to trigger from the same line on the RTSI bus.

 

What will happen is when the counter goes off, it will cause the PFI line to change state. This state change is in turn passed to the RTSI trigger line you selected where it is applied in parallel to all the boards that you have configured to trigger from it.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 10
(2,823 Views)

I made the physical connection, but i'm not quite sure where the connect terminal vi comes into play with the clocking and channels. Any suggestions for things to change in my program?

0 Kudos
Message 9 of 10
(2,818 Views)

sorry that one might not be updated with the connect terminal vi

0 Kudos
Message 10 of 10
(2,817 Views)