LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and MyRIO

--

0 Kudos
Message 11 of 22
(1,761 Views)

Hi haroumou,

 


@haroumou9 wrote:

I have created a myRIO file and wanted to see if my VI should work.


No, it will not work as expected right now (as far as I can tell from your image)…

 

Why do you need a "control and simulation" loop? Why do you need a huge formula node?

What have you learned about "THINK DATAFLOW!" after taking the basic "Training resources" as offered in the header of the LabVIEW board?

Why is "Output voltage" a control when you want to measure it using the myRIO?

(Why is there a frontpanel at all for a headless RIO device?)

 

 


@haroumou9 wrote:

However, currently with my Temperature VI, there is an issue, The issue is shown below.


This is not an "issue", but an error.

Did you read the help for the formula node? What does it say about the various type of brackets?

 

Edit:

Why do you think it is a good idea to create several threads for the same question? Please keep (related) things in one place!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 12 of 22
(1,759 Views)

Hi,

 

1) So I am using a control simulation loop to make sure that this LabVIEW program runs endlessly when the run button is clicked (With final time being inf). I thought I need a huge formula input node as there are a lot of inputs to the formula that is given in the manual. 

 

2) The fact that the output voltage is a control is a temporary thing that I am putting in as I am not currently connected to myRIO. When I will be connected to a myRIO, I will change that control input into an analog input from the myRIO. The analog input can be seen outside the control simulation loop. 

 

3) The reason why there is a front panel for a headless RIO device is because I am testing the logic now. After I get the logic fully completed, I will buy the thermistor and use a myRIO to test the actual thing. My main goal is to make sure that the logic for my code is feasible now. 

 

Looking forward to hearing from you

0 Kudos
Message 13 of 22
(1,751 Views)

Hi haroumou,

 


@haroumou9 wrote:

1) So I am using a control simulation loop to make sure that this LabVIEW program runs endlessly when the run button is clicked (With final time being inf).

2) The fact that the output voltage is a control is a temporary thing that I am putting in as I am not currently connected to myRIO.


1) The question was Why do you need a "control and simulation" loop? Why don't you use a plain While loop???

2) You were asking about your VI, but you didn't mention its preliminary state. So you should not wonder about getting comments on problems/errors due to its preliminary state…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 22
(1,744 Views)

Hi,

 

1) That is a good question, I was using a control simulation loop as I can easily set the end time to inf? Kindly request your suggestions regarding why it might be better to use a while loop?

 

2) Also, I really value your suggestions, so I definitely do not wonder about getting comments on problems/errors due to its preliminary state

 

3) Could you please give me your suggestion on why I am getting the error below.

 

Error.PNG

 

4) After I fix the error above, kindly request your suggestions on if my logic is feasible. Therefore, I can then start going to the lab to use a myRIO along with a thermistor. 

 

I am looking forward to hearing from you. 

0 Kudos
Message 15 of 22
(1,742 Views)

Hi haroumou,

 


@haroumou9 wrote:

1) That is a good question, I was using a control simulation loop as I can easily set the end time to inf? Kindly request your suggestions regarding why it might be better to use a while loop?

 

3) Could you please give me your suggestion on why I am getting the error below.

 

4) After I fix the error above, kindly request your suggestions on if my logic is feasible. Therefore, I can then start going to the lab to use a myRIO along with a thermistor. 


1) Set the While loop to never stop using a constant. This give the same effect of "end time = inf", with much less overhead…

3) I already gave suggestions in the previous message!

4) It's "feasible". I would not use a formula node, I prefer "plain" LabVIEW nodes over text in a thick-bordered box…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 22
(1,750 Views)

Hi, 

To avoid my initial error, I did this:

 

Front_Panel.PNGNew VI.PNG

 

Kindly request your suggestions if this logic is feasible. A lot of my other buddies were saying that the myRIO can only have current as an input. But in my case, I have voltage as the input (Currently it is a control input and in the future it will be changed to an analog input). Kindly request your suggestions regarding this.

 

The analog input in the future, through the myRIO, will be connected to V. Where V is shown below.

 

Circuit.PNG

0 Kudos
Message 17 of 22
(1,750 Views)

Hi haroumou,

 


@haroumou9 wrote:

To avoid my initial error, I did this:


So you replace a big text box (formula node) by another big text box (MathScript node)?

And you still use that unneeded control&simulation loop despite being told to use a plain while loop???

And you add one more frontpanel control despite being told the myRIO works headless? (And in contrast to your previous message to have that VI run forever?)

To summarize: you ask for suggestions, but you don't follow them!?

 


@haroumou9 wrote:

A lot of my other buddies were saying that the myRIO can only have current as an input. But in my case, I have voltage as the input (Currently it is a control input and in the future it will be changed to an analog input). Kindly request your suggestions regarding this.


Suggestion: Sit down with your "other buddies" and read the datasheet of the myRIO. There is a chapter "Specifications" with a summary of its abilities!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 22
(1,747 Views)

Hi,

 1) Why are you so much into using a while loop but the control simulation loop performs the same function?

 

2) By the way, when I attached the pictures above, it was when I was connected to a myRIO but not a thermistor

 

3) The reason why I added the halt simulation control is to stop the code whenever I want to stop. In other words, I want the program to run from the time I start it to until I press the halt button. 

0 Kudos
Message 19 of 22
(1,734 Views)

Hi haroumou,

 


@haroumou9 wrote:

1) Why are you so much into using a while loop but the control simulation loop performs the same function?

3) The reason why I added the halt simulation control is to stop the code whenever I want to stop. In other words, I want the program to run from the time I start it to until I press the halt button. 


1) Ever heard of KISS? Keep it simple, stupid! Why use a full-blown c&s loop when a simple While loop will reach the very same goal!?

3) Did you notice I mentioned the "headless myRIO" now for several times? Your myRIO does not provide capabilities to handle a frontpanel, so it makes no sense to place even more controls on the frontpanel!

 

Did you and your "other buddies" take the basic Training resources? Did you take the basic courses for Realtime systems from NI? Do you understand all the implications from using a RT system like your myRIO?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 22
(1,731 Views)