LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiler error: Code could not be generated

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
0 Kudos
Message 1 of 9
(3,951 Views)
hi,

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
0 Kudos
Message 2 of 9
(3,949 Views)
The VI compiles in LabVIEW 6.0.2. You are using version 6.0. Since the problem seems fixed, you should upgrade to 6.0.2.


LabVIEW, C'est LabVIEW

0 Kudos
Message 3 of 9
(3,949 Views)
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

n so on..

Help me in this regard.

Thanks in advance.
Regards
Rajesh
0 Kudos
Message 4 of 9
(3,949 Views)
Hi,

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



[Attachment Single to Binary.vi, see below]
0 Kudos
Message 5 of 9
(3,949 Views)
Hi!

I can't run LV, I get everytime thins error:

Compiler error. Report this problem to ni tech support.

copy cvt str/pict/tag, csrc=0x40
~~~~
Regards
Sarah

LV 7.1.1
0 Kudos
Message 6 of 9
(3,941 Views)
... 7.1
Maybe this will help
~~~~
Regards
Sarah

LV 7.1.1
0 Kudos
Message 7 of 9
(3,936 Views)
Hello –

What is your application about? Are you working with arrays? More specifically, are you working with the replace array subset function?

S Vences
Applications Engineer
National Instruments
0 Kudos
Message 8 of 9
(3,924 Views)
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.
~~~~
Regards
Sarah

LV 7.1.1
0 Kudos
Message 9 of 9
(3,913 Views)