06-22-2014 10:52 PM - edited 06-22-2014 11:05 PM
Hi Guys,
I am quite a newbie using Labview and what I can ask may be easy.
I'd like to generate rectangular pulses for the bits I'm supposed to transmit.
The bits come from a string. In my file, I've converted the string into an int array to display it but I can't find the proper way to create rectangular pulses from the array. I've seen on the web the function rectpulse, but I don't know how to use it, there's no block rectpulse.
The results should be like this
Any help will be appreciated.
Cheers,
Felipe.
PS : when you use the file the string should be :
1
0
1
1
0
or whatever the bits.
Solved! Go to Solution.
06-23-2014 01:11 AM - edited 06-23-2014 01:11 AM
Ok, I found the spike function that suits me.
Cheers,
Felipe.
06-23-2014 03:23 AM
06-23-2014 04:02 AM
Hi,
Thanks for your answer !
Best regards,
Felipe.
06-23-2014 08:13 PM - edited 06-23-2014 08:15 PM
Hi GerdW,
Sorry to bother you one more time : I tried your vi but I must have done something wrong since it doesn't work for me.
I still have my first result : but I have to admit I don't understand where you create the pulse pattern in your vi.
With many thanks and best regards,
Felipe
06-24-2014 01:12 AM
06-24-2014 01:38 AM
Hi GerdW,
Got it 😉
The main point of this is to transmit bits so :
-Is there a general way to say to the transmiter I want a square signal ?
or - Is this mostly depending on my transmiter ?
Because the transmiter won't be a graph anymore 😉
I will surely need to use the DAQ Assistant, I'm still reading documentation on it.
With many thanks and best regards.
Felipe
06-24-2014 01:46 AM - edited 06-24-2014 01:46 AM
Hi Felipe,
it is just a matter of your transmitter. It's the source of your physical signal and so determines it's shape!
You don't need to stick with the DAQAssistent: the basic DAQmx functions are easy to use and well documented. LabVIEW comes with a lot of example VIs for each of their use cases…
06-24-2014 01:58 AM
Hi GerdW,
Thank you so much for your help.
Best regards,
Felipe