LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Simulated Device

Hello,

 

I’m working on some acquisition and control LabView applications. For development of these apps, I have decided to use the simulated devices that Ni-MAX allow to create in its window, in particular a USB-6211 and the cards PXIe-4463, PXIe-4464 and PXIe -6514 (the chassis is the PXIe1092). But I have encountered some problems reported in the list below:

 

  1. I have seen from here https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0PxCAI&l=it-IT how to create the simulated device and include them in the selected chassis, but I can’t find mine. So I have created the 3 simulated cards, but I can’t use the properties of the chassis in which they are inserted.
  2. https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Nw0SAE&l=it-IT, if I got this correctly, as the link explains, all the analogic measure of a simulated device are a sine wave. The issue here is related on how I can perform analogic measure with the simulated device, because when configure in NI MAX a task and then use the Task constant in my vi, then on the front panel I obtain the sine wave in the graph. Contrary when I try to read data on an analogic channel starting from the channel itself, so without using a preconfigured task, then on the waveform graph I don’t obtain any plot. I have also verified if the configuration of virtual channel in NI MAX will change something, but I was wrong.

So If someone has any hints on the correct procedure to use the simulated device and the best practice, I’m open to any help!

I have attached the vi in which I have implemented different attempts for understanding how it work.

 

Thank you for your kind attention!

 

Best Regards,

Zuc

0 Kudos
Message 1 of 3
(1,417 Views)

All that you explained are expected and that is how they work.

 

Few points to add,

  • NI DAQmx simulated devices are in fact "simulated" to an extent to mimic the device behaviour but NOT an exact replica or "emulation" of the device
    • Do not rely on the Simulated device functionality to validate your device - NOT ALL features are simulated
  • No, you cannot simulate a PXI Chassis or its features such as trigger routing etc.,
  • NI DAQmx simulated devices always return a sine wave for Analog channels

So, based on these, you're at the edge of what's possible without an actual HW. I would highly recommend not to rely on validating your software just using simulated devices and expect to work flawlessly on HW.

 

Unfortunately I cannot open the LV2021 VI, please save it for previous version.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(1,405 Views)

Hi Santo,

 

thank you for the kind answer, I perfectly understand that the simulated device is not equal to a real one, but since I have to do smart working because of some health problem I need to full learn this topic. The validation of my Vis will be with the real devices but the development of that Vis can be dose using the simulated devices?

 

Moreover the main question is still the same why the analogic input is shown starting from a task and it is not the same when I create my vi from the channel?

 

With the 2020 version of my vi I add also the NI MAX configuration used to learn more about this. Please feel free to add any help to let me improve my skills or, since the DAQ VIs are polymorphic the best device that i can simulate to develop my code!

0 Kudos
Message 3 of 3
(1,365 Views)