LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pattern Generation USB 6341

Solved!
Go to solution

 I want to down-convert it back. How it could be done?

I have to use 1D Digital waveform for the VI example of Digital Output Continous (where write is set for 1D Digital waveform)

Vikrant_dhruva_0-1746621294197.png

Vikrant_dhruva_1-1746621445089.png

 

 

Download All
0 Kudos
Message 11 of 30
(465 Views)

I want to down-convert it back. How it could be done? Decimating the array doesn't seem applicable well here.

I have to use 1D Digital waveform for the VI example of Digital Output Continous (where write is set for 1D Digital waveform)

Vikrant_dhruva_0-1746691766954.png

 

Vikrant_dhruva_1-1746691766927.png

 

 

Download All
0 Kudos
Message 12 of 30
(491 Views)
Solution
Accepted by topic author Vikrant_dhruva

Hi Vikrant,

 


@Vikrant_dhruva wrote:

I want to down-convert it back. How it could be done?


Simple: do all steps in the backward order!

  1. Convert the digital waveform to a boolean array.
  2. Transpose the array.
  3. Get the first row.
  4. Convert 1D bool array to number

WHY do you want to convert it back???

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 30
(453 Views)

My end goal is to find the Bit error Rate, for that I need to do a comparison, for that I need Down-convert my 1D Digital Waveform (Pattern_Generation.vi).
I tried to do a read from Digital waveform (DownConversion.vi) but 1D Digital waveform is not downgrading, any method to do that? 

Download All
0 Kudos
Message 14 of 30
(436 Views)

Hi Vikrant,

 


@Vikrant_dhruva wrote:

(Pattern_Generation.vi).
(DownConversion.vi)


You forgot my initial comment from message #7. It is still valid!!!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 30
(416 Views)

Hi, GerdW

I down converted the VI versions and now I am sending multiple samples (N channel N samples) as I am using an user string input.

Download All
0 Kudos
Message 16 of 30
(425 Views)
Solution
Accepted by topic author Vikrant_dhruva

Hi Vikrant,

 

whatever you do you should not do it so complicated:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 17 of 30
(382 Views)

I am trying to few things to do in my VI-
1. View the data in gaph 
2. Find the total number of data collected in the elapsed time (basically when user stops)
3. Processing the collected data

I am using an external clock with 'x' kHz (varying), which inherently changes the sampling rate of the VI. I have two inputs of 'y' bits.
An example could be-
f = 10kHz and Input1 = 100,Input2 = 101
So, if user runs it for 5secs, we should have 10k*5 samples at the end

I am not able to display the values in graph, I didn't connect anything to the 'actual samples per channel', effectively making it read all the available samples.
I mean if I am running this for 'y'sec it should update every second, right?
Can someone tell me how to run this system for 5 secs and get all the data

0 Kudos
Message 18 of 30
(376 Views)

Hi Vikrant,

 

why don't you implement the simplifications I already suggested?

Why do you keep all those Rube-Goldbergs in your code?

 


@Vikrant_dhruva wrote:

I am not able to display the values in graph, I didn't connect anything to the 'actual samples per channel', effectively making it read all the available samples.
I mean if I am running this for 'y'sec it should update every second, right?
Can someone tell me how to run this system for 5 secs and get all the data


You need to implement your requirements - and keep the "THINK DATAFLOW!" mantra in mind!

  • Right now that "Stop System" button is read ONLY ONCE, and it is read RIGHT AFTER START of the VI! How should the user stop the VI later on when that button is read ONLY ONCE?
  • DO and DI tasks aren't syncronized (as it seems to me), so how do you plan to read the data that you output on your DO channels?

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 30
(354 Views)

Hello GerdW,
Thank you for always helping out. I didn't understand where I can reduce my code, the input string is the only thing that I implementd and since my input is a vaiable string which is then converted to the 1D Digital waveform. The input can be 1bit or 6bit, etc, so using U8,U16,U32 formats is not good.
And I already implemented the suggestions, If possible please let me know where and what exactly could be improved?


I edited the VI by including a digital trigger for synchronizing both as I am using an external clock on PFI02, I just used it on both.


0 Kudos
Message 20 of 30
(343 Views)