LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read variable from NI 9149

Hello everyone, I'm acquiring data from NI9149 using shared variable read function see figure below. This cause delayed execution of the timed loop than my main while loop since I have two expansion chassis, total 16 slots. Is there any other function I can use to acquire data with NI9149?  I tried scanned variable read, it does not work. Thank you.

 

NI9149.JPG

0 Kudos
Message 1 of 6
(2,707 Views)

Hey Xiao@Gemini,

What speed do you desire your loop to run at?  Additionally, have you considered a producer consumer architecture?

Trevor H.
Technical Support Engineer
National Instruments
0 Kudos
Message 2 of 6
(2,675 Views)

My data acquisition loop is running at 40Hz, I'm using scanned variable read for my cRIO 9035 and shared variable node for expansion 9149. I'm using queue function for data communication. When I click run, about two and half minutes later, the dequeue element function transfer data to calibration while loop. I do not know why. 

0 Kudos
Message 3 of 6
(2,658 Views)

Interesting.  Could you try pinging the 9149 to see how many ms a connection takes?  The ping should provide insight into whether there are networking delays causing this.

Trevor H.
Technical Support Engineer
National Instruments
0 Kudos
Message 4 of 6
(2,649 Views)

I have no idea how to measure that, can you provide more details? Thank you.

0 Kudos
Message 5 of 6
(2,641 Views)

You can ping an address by opening the command prompt (hit the windows button and type cmd) then typing "ping" followed by the IP address of your target.  This should return information on how long it takes to communicate a basic connection to the device over the internet.

Trevor H.
Technical Support Engineer
National Instruments
0 Kudos
Message 6 of 6
(2,622 Views)