05-31-2011 08:44 AM
Hi!!! I am working with this system:
And I am trying to sacale a signal but I get something extrange. Anyone know what is happening?
06-01-2011 02:24 AM
no body know this problem???
06-01-2011 09:30 AM - edited 06-01-2011 09:33 AM
It is hard to tell from the picture you have shown. It appears like you are trying to scale by half, but that perhaps every other sample being returned is zero. Without knowing more about how you are trying to scale the data it is hard to guess as to why you are seeing this behavior.
The NI 5761 adapter module has a few different CLIPs: Single Sample, Multi-Sample and Low Speed. Which one are you using? Did you start with an example program such as "NI 5761 Getting Started"?
The Getting Started example uses the Multi-Sample CLIP, and packs two samples per cycle into a FIFO to pass back to the host.
The raw binary data is unpacked and scaled to volts in the host VI. Are you attempting additional scaling inside of the FPGA code or at the host? Are you working on two samples in parallel to scale both samples from the Multi-Sample CLIP? Check for the data types within your scaling algorithm (U16, U32, I16, I32 ?) to make sure you aren't inadvertently coercing the data to cause the problem. If you are still having difficulty, perhaps you could post the VI or a picture showing what you are doing, and also provide details on how you need to scale the data ( simple multiply/divide by power of 2, linear etc).
06-01-2011 10:23 AM
Hi Friend!!! Thanks for your reply Finally I solve the problem. My problem was in the Multiplier. I used a Saturation Multiplier to scale the Signal (http://zone.ni.com/devzone/cda/tut/p/id/3661) and this multiplier does not work properly. So you have to use a regular multiplier to do it!
Thanks