LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulate LabVIEW RT locally

Solved!
Go to solution

I would like to simulate my LabVIEW RT on my development machine. I have no hardware connected.

This forum is similar to what I’m looking for, but it didn't really answer any questions.

 http://forums.ni.com/t5/Multifunction-DAQ/Simulating-RT-targets/m-p/1822117/highlight/true#M68318

 

Can I run LabVIEW RT in a simulation mode on my development machine?

 

For example when I develop LabVIEW FPGA I have a choice to run the code on

"FPGA Target"

"Development Computer with Simulated I/O"

"Development Computer with Real I/O"

"Third-Party Simulator"

 

For LabVIEW RT I see no such options. If I want to test the logic of any code I can only run it on the target.

I can drag and drop the code off of the RT project into "My Computer" in the LabVIEW project manager, and test the code that way. But, then It's risky that others or myself will accidently develop the code in that state and use PC only features.

 

I guess I don't fully understand why there isn't a simulator out there. LabVIEW RT will compile to PharLap or VXWorks (depending on target) to a x86 or x86 type processor. Both OSs have troubleshooting features and there are tons of x86 simulation tools out there.

 


Engineering - The art of applied creativity  ~Theo Sutton
0 Kudos
Message 1 of 4
(2,813 Views)
Solution
Accepted by topic author MrQuestion

Hi

 

You're right, at the moment the only way to do this is to drag the VI across to the host pc as described here.

You can't really simulate a real-time system in a non-deterministic environment but I don't know of any reason why we haven't added the option to 'run on local host for testing' to the project interface, perhaps it's something you could suggest in on the NI Idea Exchange.

 

Kind Regards

Chris | Applications Engineer NIUK
Message 2 of 4
(2,807 Views)

Hey Chris and Mr. Question,

 

That's not entirely true... While there isn't a real simulator mode, you don't actually have to move the VI. In the bottom left corner of the VI, you should see a label similar to the following:

 

Capture.PNG

 

 

if you right click on it, you should see the following menu:

 

Capture.PNG

 

Selecting the "My Computer" option will allow you to run the code without deploying, or moving the file in the project. Of course, you still have the problem of being able to use incompatible property nodes and Windows specific functions. You might get even more confused if you forget to move it back...

 

Whether you decide to use it or not, I just wanted to make you aware of one other option, if like me, you don't like messing with your project's layout.

Cheers!

TJ G
Message 3 of 4
(2,798 Views)

Thank you for the tip. I didn't know about the right click.

 

That will make this less anoying.

 

Considering almost every embedded system IDE (in multiple languages) has some type of debugging capability, i'm surprised that you need to do this in LabVIEW.


Engineering - The art of applied creativity  ~Theo Sutton
0 Kudos
Message 4 of 4
(2,784 Views)