12-16-2014 10:02 AM
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.
12-16-2014 10:19 PM
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.
12-16-2014 10:56 PM
@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.
12-16-2014 11:31 PM
@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.
12-17-2014 12:16 AM
@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.