From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-06-2018 06:19 PM - edited 05-06-2018 06:21 PM
Hi everyone,
I am currently working on my final grade project using the USRP 2920.
I need to transmit a bit sequence and I am not able to find a solution. Let me explain:
The program that I am using (down below), transmits the bit sequence correctly, but does it repeatedly. I need the program to transmit the bits once and then stop the transmission.
Is there any way to accomplish this?
Thank you in advance!
05-07-2018 03:25 AM
You're executing the send in a while loop. So it executes until you press stop.
If you don't want that, you should either send the message once (e.g. if i=0, or use a shift register) and send 0's from there on, or simply stop the loop once it's send.
05-07-2018 08:16 AM
Do you want this to happen automatically or do you want to have the user push a button to send this data? If you want to send it automatically then you need to have what ever condition will trigger this set to trigger the transmission. You need to keep track of this by using a shift register or something so you know it has been transmitted. Once you see the transition to true and the data is sent you need to reset the transmit to false and wait for another trigger condition.
If you can do this with a push button then I would use an event structure and a mouse up event to trigger the transmission.
05-07-2018 11:53 AM
Any of those options would suit me, as long as the bit sequence is transmitted once.
I am new to Labview so I would thank if you provide me information about how I can do it.
05-07-2018 11:59 AM
I am fairly new to Labview, so I have very little knowledge. I took this example to start working on.
How can I stop the loop so it does not transmit the bits repeatedly?
Thank you!
05-07-2018 12:10 PM
Both of us did offer suggestions on how you can do this either way:
These a both pretty basic things to do. There are even examples if the help files built into LabVIEW. There is also online training that you can look through if the examples don't give you enough information.
05-08-2018 02:49 AM - edited 05-08-2018 02:52 AM
@Pdiazam wrote:How can I stop the loop so it does not transmit the bits repeatedly?
Remove the loop, if you don't want to loop. Then the message will be send only once.
Aeastet is right, you could use some (free) courses.
Note that this test VI is probably just the beginning of your program. You need more knowledge to proceed and succeed.