07-03-2014 12:57 PM
Hello, I am tryig to do a vi that can read PNRF files from perception and then it will analyze the data of the waveform, but I am having some problems with the reading of the data
After getting the waveform graph, I created an event of that waveform graph that would activate each time there is a cursor release, but it cannot work once the sequence reaches that point of the event. I am working step by step on this vi, and after being able of having refreshed data I will do the same with a second cursor. Also, I cannot find the way to separate the waveformgraph channels into different displayed waveforms, is it because it is a waveform graph and not a waveform chart?
I am attaching the used vi
07-03-2014 01:40 PM - edited 07-03-2014 01:41 PM
I have simplified your vi just slightly. You dont need two while loops, two event structures, event structure timeout, sequence structure (read up on data flow using error terminals). I dont have access to the file you are reading so I have disabled that section with a simulated waveform.
As you can see the cleanup has messed up your comments etc. sorry about that.
07-03-2014 03:16 PM
Thank you! it does work the way it was excpected and I can also add more cursors without any problems, but I still don't understand why the vi couldn't work. Was there some loop conflict because of the two while cycles or was it the even inside the event or...? I want to learn more about Labview and figure out what was my problem a while ago in the vi I created at first.
Also, I didn't know about reading the data flow using the error terminals, thanks for that! oh and the comments doesn't matter, they were just to guide through the code
After doing the analysis, the next step will be to read the data directly from a HBM Genesis DAQ with the Active X of Perception and store that data, instead of just loading the PNRF file, tho it should be reading data from six different sources 50 waveforms per each sample, not exactly at the same time but I guess it can still work the same way with the event handler right?
Thanks for the help!