LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Help abt LabVIEW MathScript

Hi Grant M Sir,
i cleared that error (error_1.jpg)
in script i did a small mistake.
if you have any VIs for digital mdolation please sent me
thanking you sir

Sreenivasulu.O

0 Kudos
Message 11 of 27
(5,668 Views)
Hello,

Unfortunately, I do not have any such VIs.  You can try browsing the NI Example Finder.  From LabVIEW, go to "Help >> Find Examples..."  There were some results for QPSK and FSK.  However, they all require the Modulation Toolkit for LabVIEW.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 12 of 27
(5,657 Views)
Hi Grant M.,

I am Sreenivasulu.now i cleared my problem some extent.for my application i am using ni 5640R IQ output example project.
i am able to get analog modulated(AM,FM i tried) signal.but i am unable to get digital modulated signls.for signal generation i am using LabVIEWMathscript node.

here i amattaching one image as well as my project please correct it me.


Thanking you so much


Regards
Sreenivasulu.O

Download All
0 Kudos
Message 13 of 27
(5,646 Views)
Hello Sreenivasulu,

I do not know what is happening with the VISA connection in your VI as my expertise is on the software side and specifically with LabVIEW MathScript.  You may have more luck posting your question in the regular LabVIEW forum or in one of the hardware forums.  If your LabVIEW came with a support contract, you can also try calling NI for support.  To do so, go to www.ni.com, click on Support, and follow the link for Ask an Engineer.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 14 of 27
(5,638 Views)
Hi Grant M.,
This is sreenivasulu.i have one issue regarding to mathscript function uses.
i am able work math functions in LabVIEW mathscript script editor.
but i am unable work in
LabVIEW mathscript script node.
Here i am attaching that VI,please correct me.
i am using function X= btgen(m).this function is encoding technic.i am passing characters as input.
one more doubt,for passing  characters to function i am using "m=input('Enter text','s');but it is asking input continousely,i am not yet using while loop also.

please go through my problem correct it.

Thanking you sir

Regads
Sreenivasulu.O


0 Kudos
Message 15 of 27
(5,600 Views)
Hello Sreenivasulu,

In LabVIEW 8.2, the MathScript node did not support automatic error handling.  Thus, even though no errors appear when running your VI, there are still a few problems.  You can help the situation by creating an error out indicator from the MathScript node.

The first error reported is that the range on line 8 is too large.  This is solved by giving some default (nonzero) values to fc and fb on the front panel.  Next you will see an error about m being an undefined variable.  Defining m will fix the problem.  Finally, you will see an error about bitgen being an unknown symbol.  To fix this, you can do one of two things.  You can place bitgen.m in your "My Documents\LabVIEW Data" directory.  This is the default search path for .m files.  Or, you can add the directory where your have your .m files to the MathScript search path.  You can modify the search path with the "path" and "addpath" commands.  If you plan to store the .m file next to the VI, a neat trick is to use the "Current VI's Path" primitive to obtain the path to the .m file.  I do not see the problem you mention when using the input function.  Could you modify the VI such that it exhibits the problem?

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 16 of 27
(5,595 Views)
Hi Grant M.,
Thanks for your replies.I have one more small doubt.i have to make Mathcript  VI as asmall block for  minimize the HOST.VI.
can i do like that or not? for clear infomation see my previouse post,in that project in HOST.VI for generating modulated signla i am using
mathscript node VI.i have to make that mathscript node VI into a small block. so that i can minimize the HOST.VI size(not in memory).

So please tell me how can i convert a big VI into a small block.


Thanking you sir

Sreenivasulu.O
0 Kudos
Message 17 of 27
(5,573 Views)
Hello Sreenivasulu,

In order to reduce the size of your block diagram, you can place the MathScript node in a subVI.  To do this, draw a selection box around the parts of your VI you wish to put in a subVI.  Then go to "Edit >> Create SubVI."  You can now double-click the subVI to open and save it.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 18 of 27
(5,561 Views)
Hi Grant M.,
Thanks for your help
very very thanks


Sreenivasulu.O
0 Kudos
Message 19 of 27
(5,550 Views)
Hi Grant M,
I am Sreenivasulu.i have one small issue on own bit stream generation.
i am using Modulation tool kit.i have to generate my own bit stream using some encoding technics.

For generating bit stream i am using Mathscript.using this i am encoded my data.
By using this encoded bits i have to do my modulation.For giving my bit stream to FSK modulation block, i am using MT generate bits.VI.
in user mode.But it is showing some error(
User Base Bit Pattern contains invalid values (only zeros and ones allowed)).here the problem is i am unable to provide correct data type.

Here i am sending my files and attaching error image also.
please go through this and correct me.
Sir i have one more issue also.here giving that link
if u have any idea plz tell me.URL:http://forums.ni.com/ni/board/message?board.id=ifrio&message.id=707&query.id=70058#M707

Thanking you sir
Sreenivasulu.O


Download All
0 Kudos
Message 20 of 27
(5,391 Views)