10-21-2010 03:56 AM
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
10-22-2010 09:49 AM - edited 10-22-2010 09:49 AM
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.
10-22-2010 03:02 PM
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