LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure Problems

Solved!
Go to solution

No, the most obvious approach is to get rid of the extraneous event structure and value-signaling property node which is just serving to confuse a LabVIEW noob and just use wires to preserve LabVIEW's basic data-flow paradigm but apparently you guys are intent on making this as difficult as possible for some reason.  Smiley Frustrated

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 21 of 25
(763 Views)

Niquist...

 

look...the original post/problem requested the use of an event structure and a value (signaling) approach. See here:

 


Im using the following code trying to obtain voltages and then use the peak voltage to trigger an event. My event structure doesn't seem to be working properly and I'm not sure what I need to do.

I've highlighted the relevent words for you.

 

If you have another solution to what little we know about the stepper motor and other functionality, go ahead, post something. We welcome your constructive input.

 

To put your mind at ease -  no, you don't need to use a State Machine. There are a variety of options on how one would approach the solution, with great dependence on how the rest of the program is to run. If there are stepper motor drivers/library provided (in LabVIEW) then there is a very simplistic approach. If not, I would probably consider an FGV initially and go from there.

0 Kudos
Message 22 of 25
(725 Views)

@David_NMRSA wrote:

Niquist...

 

look...the original post/problem requested the use of an event structure and a value (signaling) approach. See here:

 


Im using the following code trying to obtain voltages and then use the peak voltage to trigger an event. My event structure doesn't seem to be working properly and I'm not sure what I need to do.

I've highlighted the relevent words for you.

 

If you have another solution to what little we know about the stepper motor and other functionality, go ahead, post something. We welcome your constructive input.

 

To put your mind at ease -  no, you don't need to use a State Machine. There are a variety of options on how one would approach the solution, with great dependence on how the rest of the program is to run. If there are stepper motor drivers/library provided (in LabVIEW) then there is a very simplistic approach. If not, I would probably consider an FGV initially and go from there.


To be honest, I see nothing to indicate a preference for the event structure.  I see an indication that an event structure was used, but not that the solution needs to be anything but a fix.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 23 of 25
(714 Views)

@winterfresh wrote:
See im kind of experimenting here with an event structure, clearly doing it wrong though, I've never used one before, and I'm really only doing so becase I was having trouble getting the results I wanted with a case structure. When the volatge is at its peak, I want to trigger some code, when it's not I want it to wait and do nothing. When it hits peak again, I want to trigger the code again. I was having trouble passing this true statement from the while loop that it's in (so it can continuoulsy collect data) to a for loop ( a for loop because I want to control using the iteration how many times the code in the for loop is triggered). Ideally I would like this to be in a stacked sequence structure, so when the for loop is done iterating it goes to another sequence to do something else based upone the the peak voltage being true.

 

Tell me how you'd do this without using a State Machine with an Event Structure.

0 Kudos
Message 24 of 25
(705 Views)

@David_NMRSA wrote:

@winterfresh wrote:
See im kind of experimenting here with an event structure, clearly doing it wrong though, I've never used one before, and I'm really only doing so becase I was having trouble getting the results I wanted with a case structure. When the volatge is at its peak, I want to trigger some code, when it's not I want it to wait and do nothing. When it hits peak again, I want to trigger the code again. I was having trouble passing this true statement from the while loop that it's in (so it can continuoulsy collect data) to a for loop ( a for loop because I want to control using the iteration how many times the code in the for loop is triggered). Ideally I would like this to be in a stacked sequence structure, so when the for loop is done iterating it goes to another sequence to do something else based upone the the peak voltage being true.

 

Tell me how you'd do this without using a State Machine with an Event Structure.


End of conversation.  It's difficult to continue a discussion on a topic that keeps changing.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 25 of 25
(693 Views)