Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use cDAQ-9184 connected to Phar Lap converted PC to perform real time control?

My task is to measure two channels, compute some simple math (one addition, one multiplication) and if condition is met, set digital pin high. The desired latency is 0.1 ms. For several reasons I can only operate with available hardware: chassis cDAQ-9184 with NI9223 and NI9401 installed.

The idea was to convert a desktop PC to Phar Lap real time OS and control the cDAQ-9184 from it, using a thrid PC for some inputs and monitoring. At the moment all components - 1. PharLap PC, 2. cDAQ-9184 and 3. Third PC with windows and Labview 2019 -  are connected to the switch hub.

I can see and use cDAQ-9184 on windows pc in NI-MAX. I can see and control PharLap PC in NI-MAX, but I cannot add the cDAQ-9184 to the devices of PharLap PC in NI-MAX. When I do "add new VISA TCP-IP device" to network devices of PharLap PC no devices are found. Though I can add manually a device by known IP adress but then it is present in the form of "TCPIP0::IP-adress::INSTR" with no functionality. I can then access the web interface of cDAQ-9184 in NI-MAX (see pictures).

Maybe I'm on the wrong way. I have no experience with Real Time Labview. When I try to toggle digital output of NI9401 with 1 ms delay by windows PC in usual Labview VI, I get approximately 30 Hz signal. So it is surely not real time.

So the question is - is it possible with given hardware?

If yes, can you give me some hints on setting this system up?

Download All
0 Kudos
Message 1 of 2
(2,412 Views)

Typically for ethernet based cDAQ systems, you will need to reserve the chassis first. I do not have a system to test this out, but here are some things that I would do.

 

1. Ensure that NI-DAQmx is installed on the Pharlaps PC, via NI-MAX.

Link: http://www.ni.com/getting-started/set-up-hardware/compactrio/controller-software

 

2. Ensure that you have reserved the chassis programmatically.

Link: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kFQVSA2&l=en-SG

 

3. Make sure that you have added your Pharlaps PC as a real-time target in the project, and code from there.

real-time.jpg

 

All the best!

-Hafiz

0 Kudos
Message 2 of 2
(1,974 Views)