Test and Measurement Forum

Labview problem

Post general discussions on using our drivers to write your own software here

Labview problem

Postby Guest » Wed Jul 05, 2006 2:10 pm

Hi,

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?

p.s I am running the picoscope 3424.

Thanks
Jason
Guest
 

Postby Michael » Thu Jul 06, 2006 9:20 am

Hello,

This sounds like your loop iterations are not being saved correctly. Are you running out of file space?? Has anyone else seen this problem?

Please post your VI so we can have a look for you.

Any other LabVIEW users please offer your suggestions.

Best regards,
Michael
Michael - Tech Support
Pico Technology
Web Support Forum
Michael
Zen Master
Zen Master
 
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire

Postby jlamuda » Fri Jul 07, 2006 2:41 pm

here's the vi attached.
I dont think it's the loop problem. I checked it again and the program seems to be stuck at the ps3000_get_values

any help will be appreciated.

Thank you
Attachments
ps3000test2.vi
(171.21 KiB) Downloaded 390 times
jlamuda
User
User
 
Posts: 2
Joined: Thu Jun 22, 2006 3:47 pm

Postby Michael » Mon Jul 10, 2006 9:13 am

Hello Jason,

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.

Best regards,
Michael
Michael - Tech Support
Pico Technology
Web Support Forum
Michael
Zen Master
Zen Master
 
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire

Postby Guest » Mon Jul 10, 2006 1:30 pm

Hi,

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?

Thank you so much for the help
Jason
Guest
 

Postby Michael » Tue Jul 11, 2006 9:07 am

Hello Jason,

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
Michael
Zen Master
Zen Master
 
Posts: 656
Joined: Thu Jul 07, 2005 12:41 pm
Location: St Neots, Cambridgeshire


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 4 guests