Example Code

Physical Channels to ListBox to Physical Channels

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

 

 

Overview
This small code example demonstrates techniques to convert from DAQmx Physical Channels to a ListBox and back again


Description
This is useful if you want to show the physical channels to the user in listbox format.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run VI

 

Additional Information or References
VI Block Diagram

 Block Diagram.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

Regards,
Chris (CLED, CLA, CTA)
Applications Engineering Specialist

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Kapur
Member
Member
on

First, thank you for posting the example. Could you please explain how to demo this example? Below is my sequence

*Click on Run
*Click on physical channels in
*Click on browse
*Select item(s) is empty, how do I populate (customise) this?

I notice you have used a Type Cast to do the conversion.

Chris_Jones_NIUK
Member
Member
on

Hi,

The list of phycisal channels will be the same as those within Measurement and Automation Explorer.

If you don't have any hardware present, this example will still work by manually typing physical channel names into the 'physical channels in'.

Chris

Regards,
Chris (CLED, CLA, CTA)
Applications Engineering Specialist