Thank you for the VI.
OK. A couple of things here. I am guessing you are using the supplied example VI's as standard except a modified "Set_Channel" VI.
The problem appears to lie in the setup data collection portion of your main VI. The Scope is setup for data collection using our standard "setup_data_collection" VI. Then your VI moves on to the "get values" part to retrieve data from the scope. The data collection VI will be setup incorrectly for your application. You will need to cut and paste our VI to suit your main VI.
Do as the following order:
1: At the start of your main VI, open the ps3000(causes the longest wait).
2: Setup your channels and inputs.
3: Set the trigger to sync your test(you only need to call the ETS functions if you need them).
4: Set the sample interval and No of samples.
5: Call the Run Block function.
Now run your motion control side.
6: Call the "stop" function when motion cycle is complete
7: Now call the "get values" function and view the data as you wish.
8: When you have completed your tests, call the "ps3000 close".
During your test, loop steps 5-7.
I hope this helps.
Michael - Tech Support
Web Support Forum