LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connection of two terminals of different types

Hi everyone...

I get error when I try to  connect more than one terminal to niUSRP Write TX block, the error message is in the attachments below. may you help me with this issue 

0 Kudos
Message 1 of 7
(549 Views)

Hi Husam,

 


@HUSAM2324 wrote:

I get error when I try to  connect more than one terminal to niUSRP Write TX block,


You don't connect "more than one terminal", you try to connect the wrong datatype!

 

You need to provide the exact datatype expected by the USRP function…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(546 Views)

Hi GerdW 

Thank you for your assistance

I converted the type of data to the requested type as mentioned in the info of niUSRP Write Tx, but unfortunately  it does not work. I attached the related pictures below.

Do you have any suggestions about that ?

0 Kudos
Message 3 of 7
(518 Views)

Hi HUSAM,

 


@HUSAM2324 wrote:

I converted the type of data to the requested type as mentioned in the info of niUSRP Write Tx


No, you did not…

 

The help mentions a cluster of (DBL, DBL, [CDB]) - and you created a very different cluster!

Please read the LabVIEW help MORE CAREFULLY:

 

Basic LabVIEW knowledge:

  1. Create a constant from the "data" input terminal of USRPWrite
  2. Place BundleByName and wire the constant to the "input cluster" terminal (to define the cluster datatype)
  3. wire the inputs of BundleByName and wire the output to USRPWrite

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(512 Views)

Hi GerdW 

I think it is not possible to send more than on array using USRPWrite block. in the cluster of this block there are just 2 constant and one array. is there any way to send more than array ?

0 Kudos
Message 5 of 7
(477 Views)

Hi Husam,

 


@HUSAM2324 wrote:

I think it is not possible to send more than on array using USRPWrite block.

 

is there any way to send more than array ?


Yes, the function expects a single waveform (kind of).

 

When you want to send several "waveforms" then you can build an array of those "waveforms" and call the USRP function in a loop - as usual…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(470 Views)

@GerdW wrote:

Hi Husam,

 


@HUSAM2324 wrote:

I think it is not possible to send more than on array using USRPWrite block.

 

is there any way to send more than array ?


Yes, the function expects a single waveform (kind of).

 

When you want to send several "waveforms" then you can build an array of those "waveforms" and call the USRP function in a loop - as usual…


Are you sure you want to be using the complex double instance of the USRP Write data?  Just looking at all the BLUE wires I suspect that you actually have IQ interleaved data.  You can change the polymorphic instance by clicking on the bluish bordered banner under the vi.  That will change the datatype expected into the Write.vi to match the type of data you are generating in your code.


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 7
(434 Views)