08-01-2018 08:54 AM
Hallo all,
I'm trying to Connect HAMEG Programmable LCR Bridge with labview, and i connect the instrument to the PCB to measure the impedance in deferent frequencies. I create an array of frequency but you as the VI attached i must convert it from (1D- of long 32 bit) to (long 32 bit) any easy idea to do that in simple way.
Thanks all
Solved! Go to Solution.
08-01-2018 09:00 AM
08-01-2018 09:50 AM
The log doesn't make much sense on an I32. You'll have to convert to double, do the log, and then (optionally) convert back to I32.
08-01-2018 10:13 AM
Are you trying to convert 1D Array of Long 32-bit (whatever that is -- can you describe it using LabVIEW Type names, such as "1D Array of I32", or "1D Array of Sgl", or "1D Array of U32", or something else) to log(32 bit), i.e a logarithm (what base, represented how?), or a long (32-bit), in which case what does this mean? Are you converting an Array into a Number? Array into Array? Is this a TypeCast question, an arithmetic question, or what?
The VI that you attached is not helpful. There are broken wires, missing functions (compress the Project's folder and attach the resulting .ZIP file), and I don't know where I'm supposed to be looking.
It is difficult to provide useful help when I don't understand the question/problem. Can't even guess ...
Bob Schor
P.S. -- quick way to estimate the log of an Integer (base 2) is to return the index of the most-significant bit. Well, maybe that wouldn't be so "quick", but it is certainly an easy concept ...
08-01-2018 11:11 AM
Hallo,
I connect the instrument using USB to the LabVIEW the instrument usually used to measure the impedance of resistor or capacitor..etc I have PCB and I need to measure the impedance of the PCB using different frequencies stating from 1KHz up to 20 KHz or more. I create an array of frequencies but the array is a 1D array of long integer 32 bit and I need to send these frequency one by one to the instrument cause the PCB working up to 2 GHz so I need to check every frequency alone.
I hope everything is clear for you now
Thanks
08-01-2018 11:21 AM
@SAED123 wrote: I need to send these frequency one by one to the instrument cause the PCB working up to 2 GHz so I need to check every frequency alone.
Sounds like you just need a FOR loop with an autoindexing tunnel.
08-02-2018 03:24 AM - edited 08-02-2018 03:27 AM
The main Problem was with output from the for loop is 1D array of long integer 32-bit but I need transfer it to long integer 32-bit.
I try the Auto-indexing tunnel but also it doesn't work.
08-02-2018 03:38 AM
08-02-2018 04:09 AM
I do it like this and it's work Now
08-02-2018 04:27 AM
@SAED123 wrote:
I do it like this and it's work Now
Then consider to Accept a Solution.
Still a few things on my mind:
+ Every wire (but 2 or 3) has unneeded bends. Why not straighten those wires?
+ Why not work from left to right (wire going to the config driver VI goes from right to left)?
+ Why convert a number to string, and then convert it back to number again?
+ Why not use the diagram label for commenting the For Loop (more convenient then a free label).
+ That for loop only returns the last Freq Range to the driver. Why not simply take the last value from the array (Delete From Array does that), and remove the for loop?
+ If you want to send each value to the hardware, the driver VI's need to be in the loop.
Of course we can't see the hole picture... Nor can we show you as we don't have the VI (just an image).