LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone seen error codes -1074116171 / -1074118618 using 6541

I am trying to set a 6541 digitiser to generate and aquire data by applying an external clock from the generator side using the Strobe pin . When i use the initiate aquisition panel the software returns an Error code of -1074116171 when no delay is set up and an error of -1074118618 with a delay set.
 
Has anybody seen this before ?
Can anybody tell me what these error codes mean as when i put them into the ErrorMessage string it tells me Unknown Error.
 
Thanks
Ian
0 Kudos
Message 1 of 9
(4,130 Views)

Hi ianhf,

Try adding a commit after the Generation Session's niHSDIO Export signal function? Unfortunatelly I don't have the software installed on my machine to try this yet.

One of the error codes actually ports to DAQmx error -200586 "If you are using an external sample clock, make sure it is connected and within specifications."

How is your clock connected?  I'm going to take a better look at your settings and see if there is anything wrong with them.  In the mean time if you could check your settings and the connections. We'll be in a better point to solve this.

Thanx

AdamB

Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 2 of 9
(4,109 Views)

Hi

Bit of a boob, the reason i am getting unknown error message is that i was using wrong function panel. Hence didn't recognise code.

However, i am now getting error 200586 - External sample clock not connected or not in specification.

I am sourcing the external clock from a digital output from the generation side. I have tried committing the digital pattern but it doesn't seem to have any effects.

 

Any suggesttions

ian

0 Kudos
Message 3 of 9
(4,106 Views)
Ian,

I am assuming that you have the "DDC Clock Out" signal physically connected to the "STROBE" input.  In this fashion, you can use STROBE as your acquisition clock source.  However, this requires that the generation sample clock be explicitly exported to the DDC connector.  To do this, you can call the niHSDIO Export Signal vi.  Select sample clock for export and make sure you pick the correct output terminal ("ClkOut on Digital Data & Control Connector").  When the session is commited, this clock will be driven to the DDC CLK OUT signal on your cable and looped back to STROBE through your system.  You have to make sure this clock is completely routed before you try to start your acquisition.  If the clock is not yet being exported and you try to initiate the acquisition, the task will timeout with a clocking error such as the one you've seen.

For a  good example on simultaneous generation and acquisition, I might recommend referring to the example shipped with NI HSDIO called "Dynamic Generation and Acquisition-Source Synchronous".  This example has a generation task export a sample clock and an acquisition task that uses that clock.  If you correctly have the two signal connected at the end of the cable then you should be golden.

-Ryan

Message Edited by Ryan M on 03-14-2006 09:00 AM

0 Kudos
Message 4 of 9
(4,091 Views)
Hi
 
No, i don't use DDC clock out, i am using channel 15. I have got round the initiate problem problem by starting my digital pattern and clocking channel 15.  However, I will have to modify my board to add an aquisition Start trigger so i can grab data when i want. I am also hoping that i can stop and restart the aquisition clock during the pattern so i can reduce the amount of data i gather. Has anyone tried this before ?
 
Ian
0 Kudos
Message 5 of 9
(4,074 Views)
Ian,

The acquisition clock needs to be free running.  If you stop it in the middle of an acquisition then your session will return a hardware clocking error.  However, you could use a pause trigger to achieve the same effect.  The pause trigger is a level based or pattern match trigger that will hold off the acquisition while the trigger is in its active state (selectable high or low).

There is a lot more detailed information on the pause trigger in the documentation:  Devices>>NI 654x>>Acquisition>>Dynamic Acquisition>> Dynamic Acquisition Triggers and Events

-Ryan
0 Kudos
Message 6 of 9
(4,059 Views)

Hi Ryan

Thank you for the advice. I will modify my test board to use DDCclkOut, start trigger and pause. I think this will work.

Ian

0 Kudos
Message 7 of 9
(4,034 Views)

Hi

Thank you to all who gave advice i have now got the 6541 doing exactly what i needed.

I have exported the DDCclkOut pulse to Strobe, added to new digital lines for Aquisition Start and Pause.

I can now gather just the bits of information i needed and ignore the unwanted section of the digital pattern using the Pause triigger.

Ian

0 Kudos
Message 8 of 9
(4,015 Views)
Ian,

Glad to hear it's working for you now!  Be sure to let us know you run into any other questions.

Ryan
0 Kudos
Message 9 of 9
(4,009 Views)