I'm new to LabVIEW and real-time. I set up my PC as a real-time target machine and I'm trying to output specific signal at specific interval to test the RT performance. I used DAQmx to output signal. I wanted to output a "0" and "1" in turn but it turned out the frequency could only live up to 50Hz. I don't know how to make the period up to at least 200Hz. Hereby is a screenshot and the vi file.
Solved! Go to Solution.
I set up my PC as a real-time target machine...
And how did you do that? You think using the Timed Loop does this? Windows is not an RT OS, so you cannot say your PC and an RT machine when it is running Windows, even if you do mess around with the priorities, etc.
I don't know how to make the period up to at least 200Hz.
Are you trying to react to something at a 200Hz rate? Or do you just need to output a 200Hz signal?
The vi is built under the rt target category and I selected the AO from the target. Does that the correct way to have it run on the rt machine?
Actually I wanted to output a signal at 200Hz but not use the given waveform from labview like output an "1" every 1ms.
Well, looking at your actual code, I think you need to take some training/tutorials (look at the top of the LabVIEW board for links to various training resources). Most importantly, you need to learn to use proper data flow and Shift Registers. You really should avoid using the Value Property Nodes because they are SLOW and introduce race conditions (ie indeterminable and inconsistent results).
Here is a cleaned up version of your code to better illustrate.