LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

export digital waveform+labview

Solved!
Go to solution
Solution
Accepted by mikephys8

Hi Mike,

 

I couldn't quite follow what you were saying. Is the problem that your result in Excel is cut off for the first series of waves? Then manually set your pk-pk full scale range to be bigger. I used 25 and it seemed to solve the problem. It seems like it was just cutting off the peaks when it digitized because of whatever the pk-pk is being selected.

 

Try using 25 and let me know if that works for you.

Jeff | LabVIEW Software Engineer
Message 11 of 20
(4,932 Views)

Hi mike,

 

I added a "Get Date/Time" to your main, hope this will fix your date problem.

For the second problem, post some feedback first for the solutions posted.

Regards,

António Veríssimo de Freitas
Universidade de Aveiro Student
0 Kudos
Message 12 of 20
(4,923 Views)

Thank you both for your help...

 

Well I've tried to do what you've told me JefL and although I go to "DWDT analog to digital.vi" properties and set the full-scale range (pk-pk) and the full-scale range (out)  from 2 to 25 as you told me...it doesn't keep the value even though i press "save all" before I push run again...I don't know why this is happening...I faced the same problem with x-axis when i tried to change its range...The program keeps some values an although it lets me change them, it doesn't save them at last. When I press run it shows the previous values that it had. And generally the program doesn't save some changes I do every time...For example I must every time that I open my .vi to set again the frequency and #of samples in the front panel because the values have changed to some defaults and not to those that I had changed last time I worked...Any ideas why???

 

As for you freitas thank you for your response, but did you send me my file back with the get date time component???because I don't see any attachments in your post...

 

Thank you for your time...

 

 

 

Michalis V.

Postgraduate Student

Department of Informatics and Telecommunications

National & Kapodistrian University of Athens   

0 Kudos
Message 13 of 20
(4,916 Views)

Hi mike:

 

Sorry, my brain is getting frozen sometimes.. :S

Here is the .vi! (attached)

One more thing, that problem with the parameters not beeing saved, you have to (at front panel) select it "left click", then "right click" on the variable go to Data Operations and Make Current Value Default.

Hope this helps.

Regards,

António Veríssimo de Freitas
Universidade de Aveiro Student
Message 14 of 20
(4,903 Views)

Thank you very much freitas for your quick response...Well you were very right about the procedure of making a value default...In combination with what JefL has told me I finally managed to export the wave right...As far as it concerns time, what you send me doesn't work...If you have noticed I have changed the fisrt file I have sent you a little in 10th message("my_main.vi").So I had to adjust the new circuit you sent me to mine...But this is not the problem...Even to the file that you sent me the component doesn't pass the time to the .txt file!!!!I really cannot understand what is happening...

 

 

 

Michalis V.

Postgraduate Student

Department of Informatics and Telecommunications

National & Kapodistrian University of Athens  

0 Kudos
Message 15 of 20
(4,896 Views)

Well i made a mistake...i pushed solution because I thought that was reffered to the specific answer and not ot the whole thread...If you can, fix it please...

 

 

 

 

 

Michalis V.

Postgraduate Student

Department of Informatics and Telecommunications

National & Kapodistrian University of Athens   

0 Kudos
Message 16 of 20
(4,891 Views)

Hi Michalis,

 

The reason is that when you write to file you've taken just the raw amplitudes out and not included the actual waveform (blue line instead of compound brown line).

 

With digital waveforms, you actually need to use special VIs to write to file (Store Digital, etc). The real question here, though, is why are you using digital waveforms? Just use analog waveforms! Then it is much simpler. You can just wire the analog waveform into write to file directly. Digital waveforms are meant for high speed DIO (TTL logic).

Jeff | LabVIEW Software Engineer
0 Kudos
Message 17 of 20
(4,853 Views)
Hi again to everyone...Sorry for my absence but i had to catch up with my courses...Thank you both for your answers...they were very helpfull...I'm answering to your last post JeffL why i use digital waveform, it is because i want to do signal processing after sometime in the project...
Now I'm sending you my last .vi file but instead of an arbitrary signal as input i have to connect a certain type of oscilloscope that we have in the lab...they have already created its drivers so I am sending the file with the components and I want you to tell me if you can what it takes to make them compatible...Also i want to ask you, because in a point i understand that I'm asking you the same thing but for different components, if there is a method or a way of searching that can show anyone what must use to solve incompatibility issues or is it just a matter of experience that somebody gets over the years with labview???

Thank you very much for your time...

 

Michalis V.

Postgraduate Student

Department of Informatics and Telecommunications

National & Kapodistrian University of Athens   
0 Kudos
Message 18 of 20
(4,645 Views)

Hi Mike,

 

It looks like your oscilloscope (which I don't have the driver for) outputs some sort of cluster. If you want to find the specific components of whatever it's sending you, you need to Unbundle it (or Unbundle by Name). I'm not sure what each of the components are coming out of your driver VIs, so I can't comment further.

 

I would definitely go through the LabVIEW Help. It is very detailed on most topics. Further, you can search through the KnowledgeBases and DevZones on the ni.com website. Otherwise, take a LabVIEW Core class if you get a chance (I'm not sure what they offer in Greece). Most of it is experience. Just keep at it!

Jeff | LabVIEW Software Engineer
0 Kudos
Message 19 of 20
(4,630 Views)

Thank you for your quick response. Sorry that i didn't send you all the information needed...Here it is...In the .zip file you'll find the driver at HP 54111D Graphed.vi

I want to connect that to the rest circuit that i had...Thanks for your information...I don't know either if there is a Labview seminar course in Greece, but i'll check it...I'm seeing and the unbundle component now but if you can, i would like you to give me some more help...Thanks again and i'll try to reach to the bottom of it as soon as possible so as not to bother you constantly, but still seems to me like a huge mountain to climb...it has uncountable components and information and i'm only at the beggining of it...

 

 

Michalis V.

Postgraduate Student

Department of Informatics and Telecommunications

National & Kapodistrian University of Athens   
 

0 Kudos
Message 20 of 20
(4,616 Views)