Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200262, Swtiching between "On Demand" and "Finite" sampling problem

I have an RT Desktop application using PCIe-6259 that switches between “On Demand” sampling and sampling a number of “Finite Samples” and back again.

 

To start the Finite sampling I start a Digital Trigger (triggered by ai/starttrigger) that triggers both AI and AO channels. I try to switch back to “On Demand” sampling using the “DAQmx Timing” property node, where “SampTimingType” can be set to “On Demand”. This doesn’t work together with the trigger. I get :

Error -200262

 

Measurements: An attempt has been made to configure a trigger without configuring the appropriate sample clock properties or when Sample Timing Type was set to On Demand.

Configure the sample clock type to something other than On Demand to use a trigger.

Property: Start.TrigType
Corresponding Value: Digital Edge

Property: SampTimingType
Corresponding Value: On Demand

 

I there any way to switch back to the initial on demand “trigger”, without having to restart the entire task?

 

best regards

soeren

0 Kudos
Message 1 of 3
(3,877 Views)

Set the Start.TrigType attribute to back to "None" before you change the timing mode back to On Demand either via a DAQmx Trigger Property Node or with DAQmx Trigger.vi.

0 Kudos
Message 2 of 3
(3,847 Views)

Hi

 

Thanks for your swift response. Good idea, I tried it out, but now I'm getting a nice Error -88700 : An internal error occured.........a nice general error 😄

 

I have attached a vi similar to the one I'm using in order to illustrate what I have done. (I've just altered one of the NI example files a bit to match what I'm trying to do.)

 

Any other suggestions?

 

/soeren

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