LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

crio 9074 with timed loop synced to scan engine only running one cycle

I have a timed loop acquisitioning data from an NI CRIO 9074 with a digital C Module.  The timed loop is set with the NI SCan engine as the source type and the loop timing attributes to a period of 1 scans and prioirty of 100. 

 

The loop only runs one iteration...

 

I then change it to running off of the 1kHZ Clock which defaults to a period of 1 ms and a prioirty of 100 and it runs forever.

 

My scan engine is set to a period of 1 ms in the dialog for the chassis in my labview  project and there are lots of errros listed in the fault configuration section starting at code -166460 which says the io scan time exceeded the NI Scan period that you specified on the the scan engine page of the target properties dialog box.  

 

attached is the project code and some screen dumps of it.

 

0 Kudos
Message 1 of 5
(2,817 Views)

Where is your VI that runs on the cRIO?  That is the VI that can access the Scan Engine timing.  I do not understand what you are trying to do here.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,803 Views)

ad scan engine.vi is the labview rt vi that runs on the rio...it runs and it works when the vi timed loop is not synced to the scan engine. 

0 Kudos
Message 3 of 5
(2,799 Views)

@id wrote:

ad scan engine.vi is the labview rt vi that runs on the rio...


Not as you currently have it set up.  The VI is under My Computer, which means it runs on your PC, not the cRIO.

 

Your error is saying that the Scan Engine cannot go through all of your channels fast enough.  My first recommendation would be to remove all of the channels that you do not actually use.  Secondly, there is no reason for the sequence structure.  All it is doing is slowing down your loop.  Thirdly, you may have to slow down your Scan Engine update rate.  The Scan Engine is not really meant to do into the kHz update rate.  The fastest I have had luck at is more around 10ms update rate (100Hz).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(2,782 Views)

that did it thanks.  Why doesnt the scan engine tell you that the thing is set too fast somewhere?  My program just runs a single while loop iteration and then quits with no errors reported

0 Kudos
Message 5 of 5
(2,775 Views)