LabVIEW-Open-Source / MQTT-Client

A LabVIEW-based client for MQTT
Other
27 stars 4 forks source link

Provide RT-compatible DropVI Examples #8

Open icaro600 opened 3 years ago

icaro600 commented 3 years ago

Hi, I have been tested the MQTT cliente on Labview 2017 in windows with no issues, it is great. But when I try it in a CRio 9031 or with MyRio with LAbview 2017 as astand alone application it doesn´t works. I try to connect to Mosquitto broker Could you help me please?

francois-normandin commented 3 years ago

Hi @icaro600 , can you give a bit more info about what you've tried? First, does your application run on cRIO directly from the LabVIEW IDE? (i.e is it only when you build it in rtexe that it fails you?)

I don't have a 9031 or myRIO handy, but it ran on a sbRIO 9637 I have. If you could share a zipped project file, perhaps I can see if it runs on my side.

icaro600 commented 3 years ago

Hi Francois, thanks for your super fast response. I have noted that I need to enable the embedded Gui in the CRio 9031, through MAX, to let the events work. In this case I used the "DropVI_SimpleClientSubscriber.vi" and it works flawlessly. I have a MyRio and also a SbRio9632, so I suppose I need to remove all no dynamic events to run these vi,s. I,m curious how you run these examples in aSbRio, could you send me some vi,s to have a good guide?

Best Regards

Domingo B

El lun, 5 abr 2021 a las 13:28, Francois Normandin (< @.***>) escribió:

Hi @icaro600 https://github.com/icaro600 , can you give a bit more info about what you've tried? First, does your application run on cRIO directly from the LabVIEW IDE? (i.e is it only when you build it in rtexe that it fails you?)

I don't have a 9031 or myRIO handy, but it ran on a sbRIO 9637 I have. If you could share a zipped project file, perhaps I can see if it runs on my side.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LabVIEW-Open-Source/MQTT-Client/issues/8#issuecomment-813348516, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRJLVBGTZITA5MFZU4QVT3THGNFZANCNFSM42MPTTTA .

francois-normandin commented 3 years ago

Hi Domingo, I'll rephrase (edit) the issue's title to provide RT-compatible examples. For RT in general, we need to leave out stuff like "Panel Close?" and user events such as "button pressed". I won't have time now, but I would like to keep an issue opened to rack this for next release.

icaro600 commented 3 years ago

Hi Francois, attached a subscriber for CRio, it works well also in MyRio, maybe it needs a bit of work to optimise In the SbRio9632 with VxWorks is not running. Appears the error 66 in the "Subscribe (Scalar).vi", I think the Labview OOP only works in Linux OS, in fact I remember I red something about this

I will keep going with this the next days, i let you know

Best regards Domingo

El mar, 6 abr 2021 a las 21:59, Francois Normandin (< @.***>) escribió:

Hi Domingo, I'll rephrase (edit) the issue's title to provide RT-compatible examples. For RT in general, we need to leave out stuff like "Panel Close?" and user events such as "button pressed". I won't have time now, but I would like to keep an issue opened to rack this for next release.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LabVIEW-Open-Source/MQTT-Client/issues/8#issuecomment-814401193, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRJLVEA5BRIVLL3ULFENPTTHNR3PANCNFSM42MPTTTA .

icaro600 commented 3 years ago

Sorry, forgot the file

El mar, 6 abr 2021 a las 22:20, Domingo Broch @.***>) escribió:

Hi Francois, attached a subscriber for CRio, it works well also in MyRio, maybe it needs a bit of work to optimise In the SbRio9632 with VxWorks is not running. Appears the error 66 in the "Subscribe (Scalar).vi", I think the Labview OOP only works in Linux OS, in fact I remember I red something about this

I will keep going with this the next days, i let you know

Best regards Domingo

El mar, 6 abr 2021 a las 21:59, Francois Normandin (< @.***>) escribió:

Hi Domingo, I'll rephrase (edit) the issue's title to provide RT-compatible examples. For RT in general, we need to leave out stuff like "Panel Close?" and user events such as "button pressed". I won't have time now, but I would like to keep an issue opened to rack this for next release.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LabVIEW-Open-Source/MQTT-Client/issues/8#issuecomment-814401193, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRJLVEA5BRIVLL3ULFENPTTHNR3PANCNFSM42MPTTTA .

francois-normandin commented 3 years ago

You'll need to use the web interface to edit your post. It won't embed a file from a email reply. No rush, but thanks for sharing.

icaro600 commented 3 years ago

Ok thanks!

El El mar, 6 abr 2021 a las 22:24, Francois Normandin < @.***> escribió:

You'll need to use the web interface to edit your post. It won't embed a file from a email reply. No rush, but thanks for sharing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LabVIEW-Open-Source/MQTT-Client/issues/8#issuecomment-814415417, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRJLVBHPKWZXESAF2XTXG3THNUXRANCNFSM42MPTTTA .

icaro600 commented 3 years ago

Attached the file which runs ok in CRio and MyRio

CRio_Susbcribe_NoEvents.zip

Mike-Geo-Dev commented 3 days ago

Hi!

When I run on cRIO 9024 (VxWorks) the MQTT Client cant publish, Appears the error 66. Similar to icaro600.

When I run o cRIO 9056/9053/9045 (NI Linux Real-Time) works fine.