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
(1,494 Views)

Hi mawad,

 

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

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 8
(1,492 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
(1,487 Views)

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

0 Kudos
Message 4 of 8
(1,486 Views)

Hi mawad,

 

just read the LabVIEW help on "projects"…

 

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

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 5 of 8
(1,462 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
(1,461 Views)

Hi mawad,

 

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

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 7 of 8
(1,454 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).
0 Kudos
Message 8 of 8
(1,449 Views)