Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Can NI845x I2C/SPI/GPIO driver import a script file?

Hi, 

I am trying to understand the NI845X driver and there seems to be two methodology Basic and Script based. I wanted to know if the Script portion of driver allows import of a script file(ex. XML)/batch file full of commands which can be executed. Thus, reducing the LabVIEW code work. 

 

Regards, 

Max

0 Kudos
Message 1 of 5
(3,117 Views)

You can parse xml files for use in LabVIEW by following the steps in the link below

 

http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/parsing_xml_files_in_lv/

0 Kudos
Message 2 of 5
(3,074 Views)

Hi SalazarJ,

 

Which function from the NI845x I2C/SPI/GPIO driver would allow me to import a string?

 

Regards,

Max

0 Kudos
Message 3 of 5
(3,052 Views)

The link I shared before shows the xml code being returned as a string. Would that string not work for you application?

0 Kudos
Message 4 of 5
(3,042 Views)

The NI-845x driver calls the actual batching or sequencing of operations a "script". There isn't a file format. If you wanted to have the scripts in an external file, you'd need to implement your own file format and parser (such as using LabVIEW's XML parsing that SalazarJ pointed out above).

——
Brandon Streiff
ni.com/compactdaq · ni.com/daq
0 Kudos
Message 5 of 5
(3,023 Views)