When I tried to run the example.VI (attached) there was an error: Compiler error. Report this problem to NI Tech support copy cvt, csrc = 0X40 bad mode in _GenCopyCOnvertNumCode xc = 0X40
It seems to runs fine in LV6.1.. What is your LV version?
Regards,
Wiebe.
"Intern" wrote in message news:506500000008000000A8CB0000-1079395200000@exchange.ni.com... > When I tried to run the example.VI (attached) there was an error: > Compiler error. Report this problem to NI Tech support > copy cvt, csrc = 0X40 > bad mode in _GenCopyCOnvertNumCode xc = 0X40 > > Could anyone help me in this regard., > > Thanks in advance > Rajesh
Hi Wiebe, I use LV6 and fortunately the VI runs after I changed array initialisation of the last 2 inputs. But there prevails a new problem in my example VI.
There are 2 more inputs which are in single precision mode. Say, N and M are the 2 inputs.
eg., N = 40 M = 5
I want the numerical conversion of those inputs as 7 bit binary value. N = 40 ---> 0101000 M = 5 ---> 0000101
I could convert the I/P into U8 or I8 type in which there prevails another zero at the MSB that is not interesting for my application. I have also attached the updated VI along with this email. You could see the inputs which are in single precision mode and the required output is a 24 bit word.
N --> 7 bit M --> 7 bit V --> 1 bit X --> 2 bit R --> 2 bit
If I understand correctly, all you want to do is to convert a single to a binary string.
The attached VI does this. It can be turned into a subvi very easily.
Regards,
Wiebe.
"Intern" wrote in message news:506500000005000000DD730100-1079395200000@exchange.ni.com... > Hi Wiebe, > I use LV6 and fortunately the VI runs after I changed array > initialisation of the last 2 inputs. But there prevails a new problem > in my example VI. > > There are 2 more inputs which are in single precision mode. Say, > N and M are the 2 inputs. > > eg., > N = 40 > M = 5 > > I want the numerical conversion of those inputs as 7 bit binary value. > N = 40 ---> 0101000 > M = 5 ---> 0000101 > > I could convert the I/P into U8 or I8 type in wh ich there prevails > another zero at the MSB that is not interesting for my application. I > have also attached the updated VI along with this email. You could see > the inputs which are in single precision mode and the required output > is a 24 bit word. > > N --> 7 bit > M --> 7 bit > V --> 1 bit > X --> 2 bit > R --> 2 bit > n so on.. > > Help me in this regard. > > Thanks in advance. > Regards > Rajesh
Hmm, ok, you can splitt my application like this: RS232 connections, ttl, tcp/ip, audio, arinc, synchro and some error messages. The problems appears with the RS232 section.
Here I like to send a value from one port to an other. The user must be able to choose till 12 ports. So I'm working with arrays, yes.