LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Code Modification

I have a Labview code (attached) which 'sends out a trigger and saves data from 4 channels every time we hit F8 or a button on the front panel. ('Triggering' in the Event structure) I would now like to modify the code as follows: 1) Press F8 and the very first time one of the channel signal crosses (yet to determine which channel) a user defined threshold, I would like to 'sends out a trigger and saves data from 4 channels' 2) I would like to make minimum modification to the structure of the code and use the event structure that already exists. I am working with somebody else's code and am not an expert in labiview. Any help will be highly appreciated .
0 Kudos
Message 1 of 6
(2,423 Views)

Stick to your original thread.

Message 2 of 6
(2,406 Views)

Hello Pnam,

 

Thank you for bringing this issue to the forums. Regarding your question, you should consider implementing an Analog Trigger which will trigger at some user defined threshold. Check out this example:

https://decibel.ni.com/content/docs/DOC-11764

 

Here is more information about Analog Triggering:

http://zone.ni.com/devzone/cda/tut/p/id/3017

http://zone.ni.com/devzone/cda/tut/p/id/2934

 

Also, your code is much large and it is missing some VIs that I do not have. If you could simplify this code and isolate just the part you want to change, I could help you further with this code.

 

Thank you,

Vimal Fernandez

 

 

Applications Engineer
National Instruments
0 Kudos
Message 3 of 6
(2,377 Views)

Thanks Vimal for the reply. I got some leads from this forum. I will try to see if we can apply it to my code. If I still run into problems, I will send a simpler version of the code.

 

-Priya

0 Kudos
Message 4 of 6
(2,363 Views)

Does this mean the "Perfect!" that you said in your other thread doesn't apply? Should a post be placed in the other thread to indicate the supposed solution is no longer a solution, and that you need to do what Vimal said?

 


See what happens when you create multiple threads for the same subject? Nobody knows what's been suggested and what's been found to work.

0 Kudos
Message 5 of 6
(2,344 Views)

First of all I apologise for posting it on 2 threads/ creating a new thread for uploading the main code. However I did stop using the new thread after I realized all the problems that were created.

 

My previous post just means that I have got some leads from the other thread ('perfect') and and am going working using that piece of infomation. I was just replying to Vimal's post on the new thread.

 

 

0 Kudos
Message 6 of 6
(2,321 Views)