LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create Simulated myRio device

Highlighted

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
(2,299 Views)
Highlighted

Hi mawad,

 

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

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 8
(2,297 Views)
Highlighted

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
(2,292 Views)
Highlighted

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

0 Kudos
Message 4 of 8
(2,291 Views)
Highlighted

Hi mawad,

 

just read the LabVIEW help on "projects"…

 

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

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 5 of 8
(2,267 Views)
Highlighted

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
(2,266 Views)
Highlighted

Hi mawad,

 

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

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 7 of 8
(2,259 Views)
Highlighted
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).
0 Kudos
Message 8 of 8
(2,254 Views)