LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggered Plotting and Holding of Results

Hey,
 
Sorry it's taken so long to get back to you.
 
I had a go myself and managed to actually impliment the functionality you wanted. This displays the pre and post measurements of the aquisition. (well mostly)
It's a good start!
 
See what you think?
 
AdamB
NI UK & Ireland
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 11 of 30
(1,049 Views)
Adam, could you please repost in 7.1.
 
 
Thanks very much Lynn and Adam for the assistance, you have been most helpful.
0 Kudos
Message 12 of 30
(1,043 Views)
Ta daaaaaaa!
 
(sorry.. started to assume everyone has the newest version!)
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 13 of 30
(1,042 Views)

Hello again Adam.

I have looked though your vi, and can follow most of what is going on.

I have a quick question, if you  don't mind.

What is the function of the trigger index?

 

Regards

Tom

 

0 Kudos
Message 14 of 30
(1,036 Views)
Hi Tom,
 
The Trigger Index actually doesn't have any use. I was using it while I debuged the code.
You can simply delete that and it will all work fine.
 
Many Thanx
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 15 of 30
(1,031 Views)
Adam.
 
I am sorry for annoying you again, you must have had enough of me at this stage!
 
I have wired up the channel, and can trigger the samples using a set threshold and width.
I can change the case to false.
However no data is plotted on the other channels.
 
I was wondering what I am doing wrong?
 
Best wishes
 
Tom.
0 Kudos
Message 16 of 30
(1,024 Views)

Tom,

All I sent you was a basic working vi that shows the principles behind the triggering you need (and pre post display)

have you set up all of your channels and wired them in etc?  What's not actually being plotted and where isn't it?

You may need to change the code to actually display and store the plotted data on your graphs/charts.

Maybe you would like to post what you have so far (code wise) and what you are seeing. I'll see if I can have another look at it for you?

Thanx

AdamB

Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 17 of 30
(1,022 Views)

Tom,

Another quick thing.

You did actually put a chart indicator on the front panel didn't you?  And connected it up directly to the output of the Read channels task?

(the graph I showed you simply displays the pre and post data and then holds that until another trigger is read)

AdamB

 

Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 18 of 30
(1,022 Views)
Right. Well I had another look at it all and it needs to be changed.. I actually sent you one of my earlier versions (sorry)
 
I have attached a diagram of the revised code.
This will hopefully help :Smiley Happy
 
You need a chart and to change the input that determins the start and end point of the graph displaying the triggered information.
Also note that you can change the history length of the chart being displayed, as well as the graph axis properties need to be adjusted to start at 0 and end at 0.002 seconds (or there abouts to show all the data needed)
 
I have managed to get it working but I can't attach the code because I'm having problems saving it!
 
(the vi's here are also different as I have copied across a LV 8 version.  All you need to change is the parts circled in red.
 
Thanx
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 19 of 30
(1,020 Views)
Hi.
 
I have made the changes you suggested.
 
Still no joy i'm afraid. I can display the continous data, and I can read the trigger, the case becomes false, but no data is plotted.
 
I have attached the file.
 
 
Tom.
0 Kudos
Message 20 of 30
(1,014 Views)