I am writing a software such that I am reading the data using the ps3000_get_values by using a while loop. I then save the waveform for each loop. However, whenever it reaches track 78, the ps3000_get_values will not read and the program (labview) will just get stuck. Any help on this one? Is there a limitation on running the function?
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.
Best regards,
Michael
Michael - Tech Support
Pico Technology
Web Support Forum
Sorry for the trouble but I have one quick question. I am wondering what do you mean when you call Run Block function. Am I supposed to put the setup_data_collection in the while loop that I am running too?
No need to put the setup data collection in the loop. This would only slow down the converter. You would only need to call this section if you made any changes to the scope settings. Try to avoid this if you are looking for fast data transfer with minimal refresh time intervals.
Best regards,
Michael
Michael - Tech Support
Pico Technology
Web Support Forum