LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error messages

Example in LabVIEW 14

0 Kudos
Message 11 of 143
(1,674 Views)

Hi GerdW,

 

I have on the same VI, the function of send command and read answer I have on the same VI, so I can,t divide them. The error can be the message of Rearmar that appears in the subVI but how can I detect this and send to the state of errors?

 

Best regards

0 Kudos
Message 12 of 143
(1,673 Views)

Hi 99,

 


@labview99 wrote:

I have on the same VI, the function of send command and read answer I have on the same VI, so I can,t divide them.


Why can't you divide them into their own subVIs?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 143
(1,672 Views)

Hi GerdW,

I try to divide in different subVI but the cilinder doesn´t move

0 Kudos
Message 14 of 143
(1,664 Views)

Hi 99,

 

why is there a loop inside "recibir datos"?

When do you even handle the data you receive from your device?

Why is there no output from "recibir…" subVI?

Why do you still need to convert values from DBL to hex-formatted-string to U8 (well, U16) values in "mandar…"?

Why is there no error handling AT ALL?

 

Did you examine the state machine example project coming with LabVIEW?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 143
(1,659 Views)

Hi GerdW,

 

Every time I send a position I have to send to the subVi "recibir datos" and I have to receive the data.

I need to convert to hex-formatted because the manual of the cylinder specifies like this.

I have corrected the subVI "recibir datos".

But how I can send to the 3 position ? Because from the 1 position I send to the state "leer datos" and if it is okey I send to the next position, the position2. But when I send the 2 position to "leer datos" and if it is okey how can I send to the 3 posiiton and to the 4 to the 5....?

 

Best regards

Download All
0 Kudos
Message 16 of 143
(1,651 Views)

Hi 99,

 


@labview99 wrote:

I need to convert to hex-formatted because the manual of the cylinder specifies like this.


:facepalm:

 

 


@labview99 wrote:

But how I can send to the 3 position ? Because from the 1 position I send to the state "leer datos" and if it is okey I send to the next position, the position2. But when I send the 2 position to "leer datos" and if it is okey how can I send to the 3 posiiton and to the 4 to the 5....?


Did you draw your state machine on a sheet of paper? Did you visualize the states you need? Did you define the conditions when/how to change from one state to another one?

 

You need to define conditions when to change a state and you need to define conditions which state to call next…

 

Example:

check.png(blurred due to certain reasons)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 143
(1,647 Views)

Yes, I do it in a paper. I tryed a lot of different posibilities but I can´t do it, because when I have to solve a problem I need to use de "data receive" of the subVi to make changes and the subVI of send to a position, the input parameters depends on the pòsition and the speed, which changes with each position.

 

Best regards

0 Kudos
Message 18 of 143
(1,640 Views)

Hi 99,

 

can't you calculate the next position/speed parameter set in your statemachine?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 143
(1,634 Views)

The problem is that when I have to push one button of the phisical machine because the cylinder has been stopped in the middle of the way I need to change the "dta receive" of the first subVI, without sending again the subVI

 

Best regards

0 Kudos
Message 20 of 143
(1,626 Views)