NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
G'ory88
Posts: 11
0 Kudos
Accepted Solution

call by reference and NI-DAQMX physical channel

Hi,

 

I'm calling a VI by reference and one of its inputs is a NI-DAQMX physical channel. 

 

Normally when I call the VI  (not by ref)  the NI-DAQMX physical channel control would populate itself with a list of detected device/channels.

 

Yet by reference it doesn't work since I am calling it over a VI server. It shows me the channels on the local machine instead of the remote machine.

 

How would you approach getting the list of NI-DAQMX physical channels on a remote machine?

Member
Charles_CLA
Posts: 188

Re: call by reference and NI-DAQMX physical channel

Here is a snippet of how I find my DAQ card by looking for all DAQ devices in the system then querying the types of channels that I want. Note this must run on the remote system. Perhaps you could run this on the remote system and use TCP/IP messaging to transfer the results?

 

Charles

Charles Chickering
Certified LabVIEW Architect

Architecture is art with rules.


...and the rules are more like guidelines
Active Participant
Himanshu_Goyal
Posts: 248
0 Kudos

Re: call by reference and NI-DAQMX physical channel

Hello G'ory,

 

As you well aware with getting all channel list in Local Machine. Now if you want to access all these details on Remote PC you have to write logic. Above example will work or give you the channel list for the directly connected Hardware not for remote. If you want to know channel list on remote use some communication technique like TCP/IP and based on request you can respond with channel list to the remote PC.

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page