LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create Simulated myRio device

Dear All,

I would like to create Simulated myRIO device to use it to test my code while I don't have myRIO connected to the computer. I tried to use NI MAX explorer to create Simulated device as I do with normal DAQ cards. However, I can't find the myRIO available. Could you advice how can I test my code while I don't have myRIO connected.

Message 1 of 8
(6,859 Views)

Hi mawad,

 

you can do this in the LabVIEW project: just add a target to the project tree…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(6,857 Views)

First you need to make LabVIEW project >>Then you can add device

 

may be you need driver for this 

 

Please see this link 

http://digital.ni.com/public.nsf/allkb/F466AD83D24F041D8625714900709583

0 Kudos
Message 3 of 8
(6,852 Views)

Many thanks, GerdW. Is there any tutorial to show how to do it correctly?

0 Kudos
Message 4 of 8
(6,851 Views)

Hi mawad,

 

just read the LabVIEW help on "projects"…

 

Right-click the top item of the project tree -> add target…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 8
(6,827 Views)

Many thanks, I tried the example on the link, but I get the following error when I run it "Failed to connect to the target"

0 Kudos
Message 6 of 8
(6,826 Views)

Hi mawad,

 

how do you want to connect with a non-existing target?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 8
(6,819 Views)
There is no way to 'simulate' a myRIO target.

You can simulate FPGAs for most targets, but you can't simulate the RT part.

The best thing you can do is to run your code on Windows, accepting that anything that interfaces with the hardware will not work - you could always use a conditional disable diagram to run different code depending on the target (e.g. to simulate data coming from myRIO hardware instead of the actual data).

LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 8 of 8
(6,814 Views)