LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create MAX Simulated Device from Labview

Is it possable to bynamicly create a Simulated Device in NI MAX from Labview? I have tryed searching through the  System Configuration Vis but i have not found anythy yet. I am using Labview 2013.

0 Kudos
Message 1 of 4
(3,916 Views)

Unfortunately, there is not a way to dynamically create a simulated instrument in LabVIEW.  Please reference the following forum link: 

 

http://forums.ni.com/t5/LabVIEW/Hardware-Simulation-from-Labview/td-p/611705

Regards,
0 Kudos
Message 2 of 4
(3,865 Views)

@TheRealRonSwanson wrote:

Unfortunately, there is not a way to dynamically create a simulated instrument in LabVIEW.  Please reference the following forum link: 

 

http://forums.ni.com/t5/LabVIEW/Hardware-Simulation-from-Labview/td-p/611705


Not exactly ture.  HOWEVER: Do Not DO THIS! Expert Level method ONLY!

 

MAX Configuration information resides in "XML Hell" on disk.  these files could "In Theory" be read and written by any program cabable of file IO encluding LabVIEW.  Afret all MAX does exactly that! That is, it Writes new information to a file when you create a new simulated instrument. It writes that info according to rules set down by the DAQmx driver and other files that define things like: What kinds of devices can be simulated? What capabilities do those devices have? What errors can the devices throw? etc....

 

If you reverse engineered the file formats you could, In Theory, duplicate the results.  You would be using undocumented features that may change without notice.  You would also be more likely to corrupt the MAX Database several times before you got it right.

 

A Perfect case for an Idea Exchange Idea!  let the makers of the thing know you want to expose that funcionality through LabVIEW in a way that does not break everything.


"Should be" isn't "Is" -Jay
Message 3 of 4
(3,859 Views)

It can be done. 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PA8GSAW&OpenDocument=&l=en-US

The attached .txt file shows how you create a file to add a given device. You can rewrite this file to create different formats. The easiest way to generate this file is to first add it manually in NI MAX and then use the Export.vi to generate the text file. 

The subVIs are found in the Measurement I/O >> System Configuration palette.

snip.png

Message 4 of 4
(2,656 Views)