Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Ni T-Clk Ref Clk Rate Error?

Hello,

 

I recently updated my development system with the latest NI Software package, and I think it might have done something to my system.  I've pasted some of my code below, please assume all variables are properly initialized and the Error Checking functions are working properly.

 

For reference, I am using NI PXI 1006 Chassis with MXI 3 Controller.  There are (4) NI PXI 6552 inside the PXI Chassis.

 

 

for(iLoopC1 = 0; iLoopC1 < 4; iLoopC1++) { //Initialize the Generation Session. HSDIOGenErrChk(niHSDIO_InitGenerationSession(genDeviceID[iLoopC1], VI_FALSE, VI_FALSE, "", &genVi[iLoopC1])); //Assign all 20 channels to the session. HSDIOGenErrChk(niHSDIO_AssignDynamicChannels(genVi[iLoopC1], "0-19")); //Configure the session Sample Clock to 50MHz (20ns samples). HSDIOGenErrChk(niHSDIO_ConfigureSampleClock(genVi[iLoopC1], NIHSDIO_VAL_ON_BOARD_CLOCK_STR, 50000000)); //Export the "Data Active" Event to Trigger Line "PFI1". HSDIOGenErrChk(niHSDIO_ExportSignal(genVi[iLoopC1], NIHSDIO_VAL_DATA_ACTIVE_EVENT, "", NIHSDIO_VAL_PFI1_STR)); //Set the session for Hardware Compare Mode. HSDIOGenErrChk(niHSDIO_SetAttributeViInt32(genVi[iLoopC1], "", NIHSDIO_ATTR_HWC_HARDWARE_COMPARE_MODE, NIHSDIO_VAL_HWC_STIMULUS_AND_EXPECTED_RESPONSE)); //Export the Sample Clock to the "DDC CLK OUT" Terminal. HSDIOGenErrChk(niHSDIO_SetAttributeViString (genVi[iLoopC1], "", NIHSDIO_ATTR_EXPORTED_SAMPLE_CLOCK_OUTPUT_TERMINAL, NIHSDIO_VAL_DDC_CLK_OUT_STR)); //Make sure the session is set for 5V Logic. HSDIOGenErrChk(niHSDIO_ConfigureDataVoltageLogicFamily (genVi[iLoopC1], "0-19", NIHSDIO_VAL_5_0V_LOGIC)); } //Waveform for Card 1, Read Data from Address HSDIO0GenErrChk(niHSDIO_WriteNamedWaveformFromFileHWS (genVi[0], "myWfm", "Card1.hws", VI_FALSE, VI_NULL)); //Waveform for Card 2, Read Data from Address HSDIO1GenErrChk(niHSDIO_WriteNamedWaveformFromFileHWS (genVi[1], "myWfm", "Card2.hws", VI_FALSE, VI_NULL)); //Waveform for Card 3, Read Data from Address HSDIO2GenErrChk(niHSDIO_WriteNamedWaveformFromFileHWS (genVi[2], "myWfm", "Card3.hws", VI_FALSE, VI_NULL)); //Waveform for Card 4, Read Data from Address HSDIO3GenErrChk(niHSDIO_WriteNamedWaveformFromFileHWS (genVi[3], "myWfm", "Card4.hws", VI_FALSE, VI_NULL)); TClk_ErrChk(niTClk_ConfigureForHomogeneousTriggers (4, genVi));

 

 

After the function call to T-Clk, the program will return the following error message:

 

Error Returned After Line "TClk_ErrChk(niTClk_ConfigureForHomogeneousTriggers (4, genVi));" : NI-TClk invoked a call on a session, and the instrument driver reported an error . Session index (starts at zero): 0 Error reported by the instrument driver: Property: RefClk.Rate Corresponding Value: 10.0e6 Valid Values Begin with: 5.0e6 Valid Values End with: 100.0e6 Increment: 1.0e6 Device: Digital1 Status Code: -200077 Status Code: -25004

 


Anyone have any thoughts on to why this occurs after installing the updated software package?

Message Edited by Jacob Perry on 08-27-2009 10:39 AM
0 Kudos
Message 1 of 3
(3,581 Views)

With the assistance of the NI HSDIO team, I've figured out the reason for the error.

 

 

It seems in the latest version of either CVI and/or the HS-DIO drivers, having an ActiveX control on a panel loaded into memory causes T-Clk to stop working.

Message Edited by Jacob Perry on 08-27-2009 03:26 PM
0 Kudos
Message 2 of 3
(3,568 Views)

This issue has been identified, verified, and will be fixed in the next version of the NI-HSDIO driver (any version after 1.6.1). If anyone experiences this issue before the next driver release, or needs to use HSDIO 1.6 or 1.6.1, please contact National Instruments Support and mention CAR# 185701, or post to this thread. Thanks.

 

Regards,

DJ L.

0 Kudos
Message 3 of 3
(3,494 Views)