Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Real-Time + Control and Simulation Loop + DAQmx

Hi everyone,

 

I am developing a Real-Time system which simulates an electronic circuit. This simulation is placed inside a "Control and Simulation Loop" (attached file C&SL.png) which performs the simulation and writes the output data using the DAQmx Write block. The parameters of the Control and Simulation Loop are also attached below (Parameters.png). I need a small step size since the variables on my system are of the order of 10kHz. With this configuration the system doesn't work perfectly good (some iterations are finished late and one CPU running up to 82-83%). And at some point, I will need to change the simulated pulse signal by a DAQmx Read block which will lead to a worse performance of the system.

 

So, I would need to optimize/change the attached system in order to perform the read and write functions without problem. Can anyone give me some advice?

- I have seen that the use of the Cluster Shared Variable increases the CPU consumption but I don't see any other way to do it. It is a cluster of 4 elements, each of them is a 2-D array of DBL elements; and these elements are provided through the host computer and may be modfied during the execution of the program.

- Since it is my first time using DAQmx functions I am not sure of doing it correctly. I have tried, using the same loop, just to write a constant value to the DAQmx and I am also having timing problems (finished late cycles).

 

The specifications of the system used: PC with 6 CPU running Labview-RT OS, and the data operations are done with a NiPXIe-6358 inserted in a NI PXIe-1082 Chasis.

 

Thank you in advance for your help.

 

Download All
0 Kudos
Message 1 of 1
(5,604 Views)