LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using CLI to communicate with Azure IoT Hub

Hi,

I have been communicating with Azure System.exec.vi and CLI for Azure but I have hit a snag.

One command line i use is monitor-event. This is an infinity loop which I cannot seem to get out with programming. Only a physical ctrl-c will exit the loop. This of course also means loosing the data from the loop.

Does any one have a suggestion how to solve this?

 

 

0 Kudos
Message 1 of 6
(1,479 Views)

What is that command? normally Linux always has the solution to finish without control-C.

please set this as ANSWER or KUDO this post, if it help you.


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

I am not sure what you are suggesting?

My programming skills is rather limited to LabVIEW at the moment.

I simply need a better solution to get out of the loop.

 

Soren 🙂

0 Kudos
Message 3 of 6
(1,404 Views)

One command line i use is monitor-event. This is an infinity loop which I cannot seem to get out with programming

I want to know the command you use, I may give you another command that not need ctrl-C

 

please set this as ANSWER or KUDO this post, if it help you.


Message 4 of 6
(1,398 Views)

One thing which might help you is something like this JKI wrapper, which should give you access to stdin and stdout, which I assume will allow you to communicate with the process:

 

https://www.youtube.com/watch?v=4F2-Ml71z78


___________________
Try to take over the world!
0 Kudos
Message 5 of 6
(1,384 Views)

The ctrl-c in cmd is BREAK. This does not work.

To solve the problem, I currently use cmd write to a txt file ( > output.txt) then I kill the cmd processes.

 

0 Kudos
Message 6 of 6
(1,370 Views)