LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using occurence to stop measurements but allow main program to peform analysis & printing of results

Hello,

 

I am trying to use a higher level VI to take resistance measurements from the HP34401A DMM and be able to stop the measurements without stoping the high level vi. I found out about using occurrences and am trying to implement that method though I'm not sure this is the best way to go. Should I be using notifiers? I have LabVIEW 2011 Base.

 

I would like to do the following:

 

1. Start program & take measurements to infinity (which stops at 512 I believe) - note I cannot use the trigger count as this will be n which is why I need to manually stop the measurement process.

2. After measurements are taken plot the histogram and peform calculations (I have this part written but stripped it from the VI I attached to simplify it).

3. Have the user choose to press the print button and print the data to a sub-VI.

4. Stop the program.

 

Please advise, I'm still a noob at this!

Download All
0 Kudos
Message 1 of 3
(2,504 Views)

I saved the files to version 8.6.

Download All
0 Kudos
Message 2 of 3
(2,489 Views)

Hi elements,

 

Here are some resources which you will probably find relevant for your application. I would suggest spending some time looking trough them and deciding which is best for your particular case.

 

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/programming/synchronizati...

 

https://forums.ni.com/t5/Example-Code/How-to-Stop-Parallel-Loops-Using-Occurrences/ta-p/3535869

 

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/programming/synchronizati...

 

https://www.ni.com/docs/en-US/bundle/labview/page/example-handling-notifier-operation-functions-in-w...

 

Regards,

 

Josh Brown

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