LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with configuring trigger/reading

Hi,

When running my code spiralscan2 I receive error 200284, which tells me that my samples have not yet been acquired and that i should check to make sure the trigger is properly configured and to check for external timing.

 

First let me explain my code a little to clarify. I am outputting to ramped sinusoidal voltages (the subvi's will be attached) to power the piezo probe of an STM. I am also trying to read a single input voltage from the same device right below this and run them off of the same clock, which i have directed to the rtsi bus.

 

The strange thing about this is previously i was executing essentially the same task but with a different input (instead of the ramped sinusoid i was using a regular sinusoid) and the program worked flawlessly.

 

I have attached the vi and subvi below as well.

 

Can anyone please help?

Thanks

Brian

Download All
0 Kudos
Message 1 of 3
(2,176 Views)

Brian,

Thank you for using the forums.  I am sorry that you are receiving this error.  I have done a little research on this particular error and it seems to from a timeout error.  

I found a knowledgebase article that deals with this problem code.

From looking at you code, it doesn't look like you start either task, there are two problems with this:

 

1) In order for you to read/write samples the task has to be started.

2) When using the ai sampleclock will not be active until the ai task has started.  Here is discussion forum that deals with this issue.

 

I would consider starting your ai task before your ao task, so that way you can make sure it is looking for the proper trigger.

 

I hope this helps,

 

Brian P.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,165 Views)

Thanks Brian,

 

After some troubleshooting and changing of the code i got it to run appropriately.

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