LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am using an Equi-Ripple BandPass VI and it gives the error 20023???

I am using a Equi-Ripple BandPass VI and it gives the error  20023. when I change the values of sampling frequency and other required ones and save. it wont save. when I run the program again, it goes back to the previous values, so it displays the error again, so it doresnt display my waveform ???? I am using sampling frequency of 100. High pass 40. low pass 0.5. high stop 45 and low stop 0,25. 

0 Kudos
Message 1 of 6
(3,340 Views)

Well, that would be because you are converting the VISA session to an array of U8.  You are not using any data the you recieve from the sensor.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 6
(3,327 Views)

I need to seperate the 16 bytes, that i am getting from VISA read, into 4 different signals, If I dont use U8, how am i supposed to separate them later? 😕

I need to convert the string to byte arrays before doing the separation, or? 

 

0 Kudos
Message 3 of 6
(3,321 Views)

You need to convert the data read NOT the VISA Session.  the VISA session output from VISA Read contains information on how to address the device among many other things it does not contain the data received from the device.

 

Look at the shipping examples : Menu>Help>Find Examples search for Advanced serial read and write.

 

Don't be afraid to use the LabVIEW Help file either- there is a lot of basic information in it


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 6
(3,313 Views)

I am converting the data that i am getting from the read buffer of VISA read function and in the help its written : read buffer contains the data read from buffer.

could you please explain more. or tell me where exactly I am doing it wrong?

could you please check my conditions as well? the one that I have written for finding FFFF. I want to read new 16bytes from the resource when it finds the FFFF. do you think its correct?

0 Kudos
Message 5 of 6
(3,303 Views)

WTF.PNG

 

OK I see you fixed this with While.vi.  However you left the filter parameters unwired in that vi.

 

Let's speak of the operation: the while loop executes exactly once since both cases of the case structure pass F to the condition terminal.  This means that your U8 array will have 0 or 16 elements.  So, the build array outputs will either be a 1D arry of 2 elements or a 1D array of 0 elements (the reshape arrays do nothing) and the inputs to the filter have fewer elements that taps (default is 32).  Taps less than or equal to 2 is an error and so is samples less than taps.  You've created an error generator.


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 6
(3,282 Views)