LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DAQmx on cRIO on Host PC

Solved!
Go to solution

Hello Guys,
I currently have a cRIO connected to a PC via. ethernet.

The modules of the cRIO are configured as Real-Time (NI-DAQmx).

 

Is it possible to write the channels from the host PC?

 

When I create a VI (DAQmx.vi) inside the cRIO Target of the LV Project I can access and set the channels without any problem.

But on the VI (CRio Switching Panel.vi) on "My Computer" I do not see any of these channels.
Either I am not able to create a task for them in NI MAX for "My System"
 

Seau1_0-1737641087234.png

 

0 Kudos
Message 1 of 6
(303 Views)
Solution
Accepted by topic author Seau1

No. You cannot control the DAQmx tasks on the cRIO from the PC. From the project, you are configuring the cRIO application. Once that application is deployed, only it can access the DAQmx tasks.

 

If you really just want control from the PC, you should be using a cDAQ, not a cRIO.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(277 Views)
Solution
Accepted by topic author Seau1

Correct, but you also can send your running program on the cRIOthe desired channel as string via e.g. a shared variable.

Actor Framework
0 Kudos
Message 3 of 6
(268 Views)

You can use ni/grpc-device: gRPC server providing remote access to NI device driver APIs. if you want to access DAQ channels from Windows Host directly.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 4 of 6
(237 Views)

Yes!  This is what has been missing from the cRIO.  I imagine that most folks would want to use python on the windows side to remotely access cRIO DAQmx HW but it would be super cool to wrap the client side DAQmx to provide a 'remote' version of the native LabVIEW DAQmx driver.  

0 Kudos
Message 5 of 6
(24 Views)
0 Kudos
Message 6 of 6
(21 Views)