Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple request http

HI, I need to use multiple request http but when the second block starts, the first block is stopped, I want to receive the picture but the same time I want to receive the distance, Can you help me?

0 Kudos
Message 1 of 10
(5,215 Views)
I'm posting by phone so I can't open the VI. You can attach an image. If you are requesting data from an instrument, you'll almost certainly have to do the reads sequentially.
0 Kudos
Message 2 of 10
(5,184 Views)

new photo.jpg

0 Kudos
Message 4 of 10
(5,169 Views)
Instead of two loops nested inside another, try two loops that are truly independent. Once one starts, the other cannot because the case statement would not be processed and one either starts, they cannot stop because the stop condition would not be read. Your understanding of dataflow is fundamentally flawed.
0 Kudos
Message 5 of 10
(5,140 Views)

Hi, I trying this form but is not possible, the second loop doesn´t respond. I want to know if this is possible with the HTTP protocol, but to try to TCP / IP protocol. Thanks.SEG.jpg

0 Kudos
Message 6 of 10
(5,130 Views)
You still don't understand DATAFLOW! It doesn't matter what you use if you make the second loop dependent on the first. Do NOT wire your stop button to the second loop. That wire means the bottom loop cannot start until the top one finishes. To get up and running, try using a local variable of the stop in the bottom loop.
0 Kudos
Message 7 of 10
(5,120 Views)

I followed his advice but now when the second request GET does start, the first request GET does stop and does start when the second request GET does close. but, How I do  for that receive the distance forever? because I need this data for the second request GET. Thanks.new form.jpg

0 Kudos
Message 8 of 10
(5,097 Views)
I'm not sure what is going on. It looks like the second get is set for a 45 second timeout. Does it take that long? I haven't used the get function enough to know if it it's reentrant or not and whether a long transfer will block a second instance.
0 Kudos
Message 9 of 10
(5,049 Views)

Hi, sending  the picture is a string bytes, LabVIEW receives photo every 45 seconds.

0 Kudos
Message 10 of 10
(5,031 Views)