12-07-2010 08:42 AM
Hi
I looking for some information on extracting a data file from the solartron 1250 Analyser.The file bascially is a frequency sweep of 99 points. I am communicating with the Solartron via the NI GPIB/488.2 card.
I can successfully communicate between the Solartron and the GPIB using Labview and the default GPIB.vi template within Labview.Also using NI VISA interactive control allows me to communicate sucessfully.
Communication via the GPIB.vi or VISA enables me to read the first line/point of the data file created from the frequency sweep on the Solartron.I can output the results of first line/point of the frequency sweep to a txt file using the viReadtofile within VISA Interactive control.However I cannot output all of the points of the sweep to a txt file at once.
If I scroll to the next point/line on the solartron, I can read that point using the GPIB.vi and with VISA Interactive Control, write that to a txt file.
However as mentioned I cannot output all of the points of the sweep to a txt file at once.
Does VI need to be modified to read all of the points on the solartron. Can this be achieved easily? Is there VI solution for extracting all points from the solartron data file?
Thank you
Solved! Go to Solution.
12-07-2010 10:33 AM - edited 12-07-2010 10:35 AM
Just to clear up the grammar on the original post above, the question(s) being asked are:
Does the vi, (that is the GPIB.vi) need to be modified to read all of the points on the solartron data file or is there a vi solution that someone may have created for extracting all points from the solartron data file?Has anyone come across the issue of data extraction via Labview in the situation described?
There is no issue with communication ie EOI, Cr etc and all communication switches are correctly set and the buffer is loaded with data for extraction which leads to the conclusion, that there is way to extract all of the data at once.
12-07-2010 11:51 AM
12-07-2010 01:59 PM
Hi
Thank you for the Vi's
All the Vi's work great with the solartron, except the control vi.It writes the settings to the solartron through the vi with no errors but when it trys to read the data to apply it to the graphs , I keep getting a timeout error "timeout expired before operation completed" (VI_ERROR_TMO) .
I've increased the Timeout attribute with VISA but I still receive the error.
Any thoughts?
Thanks
12-07-2010 02:44 PM
12-07-2010 02:52 PM
Hi
The measurement finished ok I know that because I'm using Ni-spy to track the reads and writes and its indicating the error on the read as timeout expired.I 've also reduced the sweep right down so the data expected is low
Suggestion is; I can write and the solartron takes the settings but when I try to read, it fails on a timeout.
12-08-2010 10:48 AM
Hi Shionn,
Is it possible for you to upload your VI and NI-spy log for me to take a look at?
Thanks,
12-08-2010 11:21 AM - edited 12-08-2010 11:22 AM
Hi stephen
I got it up and running, the issue seemed to sit with memory, I cleared out anything the solartron was storing and ran the vi and the control.vi populated the graphs.
I can now read and write to the solartron. I can manipulate the control vi to get the information I need
Thanks
(Thanks to Albert for th originally vi's)
12-09-2010 03:44 PM
can you post the updates you made?
12-10-2010 08:32 AM
Hi
I'll post the updates and Vi, when its fully completed for others to use.
No problem.