02-01-2011 04:29 AM
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.
02-01-2011 12:46 PM
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.
02-01-2011 12:59 PM
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?
02-01-2011 04:33 PM
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
02-02-2011 06:09 AM
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?
02-02-2011 10:29 AM
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.