Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared variable to grab data from remote PC with DAQMX

All

I have a computer A where I've connected my DAQmx to gather data from my electronics. It's got MAX installed.
I am trying to get the data from A to my computer. I created 4 virtual global channels on A. I created 4 shared variables on B and bound them to the 4 channels.
Then I selected lookout OPC on server explorer. I can see the values streaming there but when I try to drop the shared variable in a VI and read it's value, I don't see anything. Can someone help me on this ?

I am trying this method since NI does not support RDA for DAQ MX 😞

Thanks
0 Kudos
Message 1 of 4
(3,761 Views)

Are you getting any errors back from the shared variable?

 

StuartG

0 Kudos
Message 2 of 4
(3,750 Views)
I fixed it. I assigned the shared variable as an array. I made it to a single variable and it worked fine. However, I am getting repeated values. I tried polling at 1 sec while loop but still there were some repeated values. Is shared variables for DAQ MX inherently slow or am I missin something ?
0 Kudos
Message 3 of 4
(3,747 Views)
When you connect (sometimes referred to as "bind") your shared variable in LabVIEW to a DAQmx global channel, you will notice an item called "Server Polling Rate" listed alongside the DAQmx global channels. This item controls how fast DAQmx will scan the hardware for new values. The default rate is 1 Hz, with a valid range of [0.001 Hz - 1000 Hz].

If you want to scan your hardware at a different rate, create a new shared variable, bind it to the 'Server Polling Rate" and send it the desired rate by wiring a new value into it in your LabVIEW program.


Rajesh Vaidya, Ph.D
National Instruments
0 Kudos
Message 4 of 4
(3,744 Views)