LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Linear stage and picoscope digitizer communication

Hello,

I have developed a program that performs the following tasks:

1. Initiates the linear stage.
2. Moves to a predefined position, waits, and continues moving in a stepwise manner until it reaches the stop position.
3. Whenever the stage moves, it generates a True Boolean output. I utilize this output to control the stage wait time and to move to the next position.
4. During the stage wait time, a True Boolean output triggers the start of Picosocpe data acquisition.

However, I am encountering an issue where the Picoscope runs only once, and then it gets stuck when the next position is reached. I am unsure if my loops and conditions are set up correctly.

The ultimate goal is to acquire a spectrum for each stage position. I've adapted parts of my previous programs and incorporated suggestions from online sources to create this code. Can someone assist me in resolving this issue? I have attached the program for your reference. MA2 is the main program.

 

Thank you.

0 Kudos
Message 1 of 2
(288 Views)

I am getting the attached error message. release buffer.vi. I feel in the next loop the buffer vi which holds the data is not releasing for some reason.

0 Kudos
Message 2 of 2
(262 Views)