06-17-2014 06:15 AM
Hi,
Labview 2013 is different from LV 2012, i cannot replace "numeric-control" to "string-control".
have anybody an idea about why this happen?
Regards,
SASA
06-17-2014 06:23 AM
Hey,
It is possible to replace them.
I guess, according to you previous posts, that something went totally wrong with your Labview installation. Maybe you mixed things up while relinking all you palettes.
Ever thought about a reinstall of LabVIEw (I know this is a time consuming procedure)?
Regards,
CMW
06-17-2014 07:07 AM
It is highly unlikely this is broken in LabVIEW 2013, it works fine for me, so there must be something specific about your situation. Are you using a particular numeric control? What goes wrong specifically? Does it disallow the replacement? Does it work but leave you with broken code (which I would expect)?
06-17-2014 08:10 AM
Hi all,
Thank you very much for your feedbacks,
please find attached the piece of code i'm working on, it's a serial rs 232 FPGA implementation on sbrio
what i want to change is the type of the "write char", i want to do a loopback to test the data transmission, typically i want to send for exemple "jwas12" and capture it in hyperterminal
Regards,
SASA
06-17-2014 08:37 AM
You are referring to the FPGA code. Strings are not allowed in FPGA. You can have a fixed size array. But I would recommend using a DMA FIFO for writing multiple characters to your FPGA that will then be outputted.
Remember that FPGA is not exactly software. You are defining hardware. Because of this, you can't have dynamically sized data types. A string, by definition, is a dynamically sized data type.
06-17-2014 08:51 AM
i had used FPGA FIFO to write elements,
you mean i cannot send caracters like "FO12BW" in FPGA to be then outpoutted.? how can i proceed?
06-17-2014 09:08 AM
06-17-2014 10:04 AM - edited 06-17-2014 10:05 AM
@SASA1 wrote:
i had used FPGA FIFO to write elements,
you mean i cannot send caracters like "FO12BW" in FPGA to be then outpoutted.? how can i proceed?
Instead of writing values to the FPGA front panel and then placing the values into a FIFO, use a DMA FIFO. That eliminates unneeded code and will therefore reduce your FPGA usage. By making a DMA FIFO, you can write to it directly from your RT code. This will eliminate your bottom two loops in your FPGA.
So change your Write FIFO to a "Host to Target" DMA FIFO. I would also chance your Read FIFO to a "Target to Host" DMA FIFO. This way your RT code can write directly to the Write FIFO for values to send out and can directly read the FIFO for data that comes back.
So after all of that, here is what your LVRT Serial Write should look like.
06-18-2014 04:21 AM
Thank you very much,
could you please do this if i send to you the code?
i'm a begginer in labview and i need it to work today, it's extremely urgent.
SASA
06-18-2014 07:30 AM
@SASA1 wrote:
Thank you very much,
could you please do this if i send to you the code?
i'm a begginer in labview and i need it to work today, it's extremely urgent.
SASA
Sorry, but no.
1. You don't pay me enough
2. I have more than enough work to do from my employer
3. You wouldn't learn anything that way
Now if you want to setup a project and pay us to do some or all of the work for you, then send me a PM.